API · Gumtree
GET /gumtree/search
Search Gumtree ads by keyword, category and location with filters.
| Request | GET /v1/gumtree/search |
| Operation id | gumtree.search.all |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Gumtree ads by keyword, category and location with filters.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Search words. Example: bike. |
url | string | no | Or a gumtree.com search URL to read as is. |
page | integer | no | |
sort_by | "relevance" | "newest" | "price_low" | "price_high" | no | One of relevance, newest, price_low, price_high. |
category_id | string | no | |
location_id | string | no | |
distance | "0" | "1" | "3" | "5" | "10" | "15" | "30" | "50" | "75" | "100" | "150" | "250" | "500" | "nationwide" | no | One of 0, 1, 3, 5, 10, 15, 30, 50, 75, 100, 150, 250, 500, nationwide. |
min_price | integer | null | no | |
max_price | integer | null | no | |
seller_type | "private" | "trade" | no | One of private, trade. |
attributes | string | no | Extra Gumtree URL parameters, k=v&k=v. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of ads. | GumtreeSearch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, category or location does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Gumtree is temporarily unavailable. Retryable; nothing was charged. | Error |
GumtreeSearch fields
| Field | Type | Description |
|---|---|---|
url | string | |
page | number | |
total | number | null | |
next_page | number | null | |
listings | object[] | |
breadcrumb | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.