Piloterr

BrickLink Search

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

GET
/v2/bricklink/search

Search the BrickLink catalog.

Credit cost: 1 credit 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

Keyword or a BrickLink search URL.

item_type?string

set, part, minifig, book, gear, instruction, or box.

page?number

Page number, starting at 1.

Default"1"
return_page_source?boolean

Return the fetched body instead of the parsed listing.

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

Response Body

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/bricklink/search?query=string'
Example Response
{
  "results": [
    {
      "url": "https://www.bricklink.com/v2/catalog/catalogitem.page?S=75192-1",
      "name": "Millennium Falcon - UCS {2nd edition}",
      "image": "https://img.bricklink.com/ItemImage/SN/0/75192-1.png",
      "price": 615.79,
      "item_id": 157691,
      "item_no": "75192-1",
      "currency": "EUR",
      "item_type": "set",
      "new_min_price": 615.79,
      "price_display": "615,79 €",
      "used_min_price": 332.52
    }
  ],
  "pagination": {
    "next": null,
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_results": 18
  }
}