Piloterr

Oscaro Search

Usar em massa com o DataflowExecute este endpoint sobre um arquivo ou uma lista, uma vez ou com agendamento.

GET
/v2/oscaro/search

Oscaro Search API. Search auto parts by keyword, search URL or category listing on oscaro.com, oscaro.es and oscaro.pt. Returns prices and pagination via browser rendering.

Credit cost: 2 credits per call

Autorização

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

Search keyword, search URL, or category listing URL (*-{id}-g).

Examples:

moteur ai
https://www.oscaro.com/fr/search?q=moteur+ai
https://www.oscaro.com/huile-moteur-1862-g

Use Oscaro Product on any result url for full PDP data.

region?string

Target shop when query is a keyword (default: com).

Examples: com, fr, es, pt

Ignored when query is a full Oscaro URL.

page?number

1-based page number override for category listing URLs (default: read from URL or 1). Uses ?page=2 on *-g pages.

Range1 <= value <= 500
return_page_source?boolean

When true, return the raw HTML page source as {"result": "..."} instead of structured JSON. Defaults to 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

Corpo da resposta

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/oscaro/search?query=string'
Example Response
{
  "results": [
    {
      "url": "https://www.oscaro.com/moteur-electrique-pulseur-dair-habitacle-magneti-marelli-069412247010-13361124-793-p",
      "price": 91.79,
      "title": "Moteur électrique, pulseur d'air habitacle MAGNETI MARELLI - 069412247010",
      "currency": "EUR",
      "image_url": "https://oscaro.media/catalog/images/jpg/normal/95/mt_mte247ax-wr.jpg",
      "product_id": "13361124-793"
    },
    {
      "url": "https://www.oscaro.com/moteur-electrique-pulseur-dair-habitacle-magneti-marelli-069412215010-13485530-793-p",
      "price": 47.6,
      "title": "Moteur électrique, pulseur d'air habitacle MAGNETI MARELLI - 069412215010",
      "currency": "EUR",
      "image_url": "https://oscaro.media/catalog/images/jpg/normal/95/mt_mte215ax_wr.jpg",
      "product_id": "13485530-793"
    }
  ],
  "pagination": {
    "next": null,
    "page": 1,
    "per_page": 50,
    "total_pages": null,
    "total_results": null
  }
}