Piloterr

Joybuy Search

GET
/v2/joybuy/search

Search Joybuy product cards from a keyword or a search URL. Returns the SKU, URL, price, currency, brand, stock, rating and pagination.

Credit cost: 1 credit per call

Autorización

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parámetros de consulta

query*string

Keyword, or a full Joybuy search URL (/s?k=). A product URL returns 400. A keyword is searched on region (default fr). A full URL selects its own host and region is ignored. URL-encode this value when it contains ? or &, or send it in a POST JSON body. Unencoded, everything after the first & is dropped.

page?number

Page number, from 1. Overrides a page already present in the search URL. Omit it to keep the URL page, or to request page 1 for a keyword.

region?string

Storefront for a keyword: fr (default), de, nl, be, lu, uk or gb. be and lu both use www.joybuy.nl. gb is the same storefront as uk. Ignored when query is a full URL. Any other value returns 400.

return_page_source?boolean

When true, returns { "result": "" } instead of the parsed JSON. Default false.

fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Cuerpo de la respuesta

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/joybuy/search?query=string'
Example Response
{  "results": [    {      "id": "100732399",      "url": "https://www.joybuy.fr/dp/100732399",      "brand": "LATTAFA",      "image": "https://images4.joy-sourcing.com/product/jfsintlpro-000-product/t1/4294967296/7667712/101615961128623/767016/698d3d5dEfc4c8c8f/42b10752b5083d5e.png",      "price": 28,      "title": "Lattafa Khamrah Dukhan Eau de Parfum Spray 100 ml",      "labels": [        "Livraison d'ici demain",        "Emballage cadeau"      ],      "rating": 4.8,      "seller": "Joybuy",      "currency": "EUR",      "in_stock": true,      "sales_text": "500+ vendus",      "discount_text": "53% de réduction",      "compare_at_price": 59.9    },    {      "id": "100593736",      "url": "https://www.joybuy.fr/dp/100593736",      "brand": "Paco Rabanne",      "image": "https://images4.joy-sourcing.com/product/jfsintlpro-000-product/t1/4294967296/6488064/6207370107303/228320/6a9e5d0fE05f49b6a/42b10752b5083d5e.jpg",      "price": 50.37,      "title": "Paco Rabanne Invictus Victory Elixir Eau de Parfum Intense Vaporisateur 50 ml",      "labels": [        "Livraison d'ici demain"      ],      "rating": 4.8,      "seller": "Joybuy",      "currency": "EUR",      "in_stock": true,      "sales_text": "100+ vendus",      "discount_text": null,      "compare_at_price": null    }  ],  "pagination": {    "next": "https://www.joybuy.fr/s?k=parfum&page=2",    "page": 1,    "per_page": 20,    "total_pages": 36,    "total_results": 706  }}