Skip to main content
GET
Gumtree Locations
Resolve a town or postcode prefix into a Gumtree UK autocomplete window. Query must contain 2–200 characters. location_type filters that fetched window and does not widen the search. Coordinates are null if unavailable. No pagination. One uncached successful request costs 5 SocialQuery credits. Cache hits and failed requests cost zero. Initial provider verification shares a fixed 200-credit allowance; an exhausted allowance prevents further upstream calls. Unknown values remain null.

Authorizations

x-api-key
string
header
required

Headers

Cache-Control
string
Idempotency-Key
string
X-Max-Credits
integer

Optional nonnegative integer cap on the maximum request hold. A live request whose hold exceeds this cap returns 422 CREDIT_BUDGET_EXCEEDED before spending. Metered holds use the requested limit; cache hits and successful idempotent replays cost zero.

Required range: x >= 0

Query Parameters

query
string
required
Required string length: 2 - 200
location_type
enum<string>
Available options:
LOCATION,
OUTCODE,
POSTCODE

Response

Resolve a town or postcode prefix into a Gumtree UK autocomplete window. Query must contain 2–200 characters. location_type filters that fetched window and does not widen the search. Coordinates are null if unavailable. No pagination.

success
boolean
required
platform
string
required
endpoint
string
required
credits_used
integer
required
Required range: x >= 0
credits_remaining
integer | null
required
request_id
string
required
cached
boolean
required
data
object
required

The selected operation determines the resource fields in this object. Source data can omit a metric or report it as null.