Piloterr

Thansen Search

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

GET
/v2/thansen/search

Car parts and accessories on thansen.dk. query is a parts keyword such as oliefilter, 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

Parts keyword or a thansen.dk search URL. Example: oliefilter

Default"oliefilter"
page?number

Page number, starting at 1. Example: 1

return_page_source?boolean

Return the page HTML instead of the parsed parts. Example: 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

Response Body

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/thansen/search?query=oliefilter'
Example Response
{
  "results": [
    {
      "sku": "999605901389",
      "url": "https://www.thansen.dk/bil/reservedele/oliefilter/oliefilter/n-241938308/pn-241184421",
      "name": "Oliefilter",
      "brand": "Bosch",
      "image": "https://dyncdn.thg.dk/img/999605901389_0_2_170_236.jpg",
      "price": 99.95,
      "currency": "DKK",
      "price_display": "Kr. 99,95"
    }
  ],
  "pagination": {
    "next": "https://www.thansen.dk/search?query=oliefilter&page=2",
    "page": 1,
    "per_page": 44,
    "total_pages": 23
  }
}