Dba

get/dba/search

Request

  • Base URL: https://scrappa.co/api
  • URL: https://scrappa.co/api/dba/search
  • Auth: API key in header X-API-KEY

Query parameters

querystring nullable

Search text, e.g. cykel. Optional when a category is set. Maximum 200 characters.

categorystring nullable

DBA category id: 0.x top level, 1.x.y sub category, 2.x.y.z product category. Read the ids from the facets.category field of a search response. Example: 0.93.

price_frominteger nullable

Minimum price in DKK (whole kroner).

price_tointeger nullable

Maximum price in DKK. Must be greater than or equal to price_from.

sort'RELEVANCE' | 'PUBLISHED_DESC' | 'PUBLISHED_ASC' | 'PRICE_ASC' | 'PRICE_DESC' | 'null' nullable

Sort order: RELEVANCE (default), PUBLISHED_DESC, PUBLISHED_ASC, PRICE_ASC or PRICE_DESC.

pageinteger

1-based page number, 1 to 50. Each page holds up to 53 ads. Defaults to 1.

locationstring nullable

DBA region id from facets.location, e.g. 0.200009 (Fyn).

condition[]integer[]

Condition filter 1 to 5 (1 brand new, 2 like new). Repeat the parameter for several values: condition[]=1&condition[]=2.

dealer_segment'1' | '3' | 'null' nullable

1 for private sellers, 3 for dealers.

trade_type'1' | '2' | '3' | 'null' nullable

1 for sale, 2 for give away, 3 for wanted.

shipping_types'0' | '1' | 'null' nullable

0 for ads that offer DBA shipping, 1 for ads with free shipping.

published'1' | 'null' nullable

Set to 1 to return only ads published today.

Response

string required

Changes

No recorded changes to this operation across all 3 revisions of this API.