Piloterr

Coolshop Search

Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.

GET
/v2/coolshop/search

Product search on www.coolshop.is, the Iceland shop. query is keywords such as lego, or a full search URL. page starts at 1.

Credit cost: 2 credits per call

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Query Parameters

query*string

Product keywords or a coolshop.is search URL. Example: lego

page?number

Page number, starting at 1. The shop returns the first screen. Example: 1

return_page_source?boolean

Return the page HTML instead of the parsed listing

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

Response Body

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/coolshop/search?query=string'
Example Response
{
  "results": [
    {
      "sku": "23T87K",
      "url": "https://www.coolshop.is/vara/lego-lego-iconic-festive-gingerbread-house-40809/23T87K/",
      "name": "LEGO - LEGO Iconic - Festive Gingerbread House (40809)",
      "image": "https://scale.coolshop-cdn.com/product-media.coolshop-cdn.com/23T87K/e8ad38e1f52246faa8908c3a2ee5bb31.png/f/lego-lego-iconic-festive-gingerbread-house-40809.png",
      "price": 9999,
      "currency": "ISK",
      "price_display": "9999 kr"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total_pages": 54,
    "total_results": 1076
  }
}