GroundsocialDocs

API · Gumtree

GET /gumtree/search

Search Gumtree ads by keyword, category and location with filters.

RequestGET /v1/gumtree/search
Operation idgumtree.search.all
Cost2 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search Gumtree ads by keyword, category and location with filters.

Query parameters

NameTypeRequiredDescription
querystringnoSearch words. Example: bike.
urlstringnoOr a gumtree.com search URL to read as is.
pageintegerno
sort_by"relevance" | "newest" | "price_low" | "price_high"noOne of relevance, newest, price_low, price_high.
category_idstringno
location_idstringno
distance"0" | "1" | "3" | "5" | "10" | "15" | "30" | "50" | "75" | "100" | "150" | "250" | "500" | "nationwide"noOne of 0, 1, 3, 5, 10, 15, 30, 50, 75, 100, 150, 250, 500, nationwide.
min_priceinteger | nullno
max_priceinteger | nullno
seller_type"private" | "trade"noOne of private, trade.
attributesstringnoExtra Gumtree URL parameters, k=v&k=v.

Responses

StatusMeaningSchema
200A page of ads.GumtreeSearch
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The ad, category or location does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Gumtree is temporarily unavailable. Retryable; nothing was charged.Error

GumtreeSearch fields

FieldTypeDescription
urlstring
pagenumber
totalnumber | null
next_pagenumber | null
listingsobject[]
breadcrumbobject[]

Errors use one shape everywhere; see Errors for every code and what to do.