Skip to main content
GET
Location Autocomplete
Resolve a place name or postcode prefix to the locations Gumtree knows, each with its coordinates. Pass a result’s name (a town) or a postcode as location to /search. Credits: 1

Authorization

string
required
Your ScrapeBadger API key.

Query Parameters

string
required
Town, area or postcode prefix — at least 2 characters, e.g. manch, leed or SW1A.

Response

string
Echo of the requested prefix.
integer
Number of locations.
LocationSuggestion[]
Matching locations.

Example

Response
/search also takes a full UK postcode directly as location (location=SW1A 1AA&distance=2), so you only need this endpoint to resolve partial input or to show the user a choice.

Errors