Piloterr

GOAT Search

GET
/v2/goat/search

Search GOAT products.

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

Search text, for example jordan.

return_page_source?boolean

Return the suggestion JSON instead of the parsed cards.

Defaultfalse
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/goat/search?query=string'
Example Response
{  "results": [    {      "id": "1403298",      "url": "https://www.goat.com/en-us/sneakers/air-jordan-1",      "name": "Air Jordan 1",      "slug": "air-jordan-1",      "image": "https://image.goat.com/air-jordan.png",      "category": "shoes"    }  ],  "pagination": {    "next": null,    "page": 1,    "per_page": 8,    "total_pages": 1,    "total_results": 8  }}