Gumtree similar ads API
The ads Gumtree recommends on an ad’s page.
GET /v1/gumtree/products/similar2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/gumtree/products/similar?product_id=1804696895",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "product_id": "1804696895", "similar": [ { "id": "1805399583", "url": "https://www.gumtree.com/p/road-bikes/2011-yamaha-xvs950-midnigha-star/1805399583" }, { "id": "1805400024", "url": "https://www.gumtree.com/p/road-bikes/mountain-bike-/1805400024" }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
product_idquery | string | Ad number. Example: 1804696895. |
urlquery | string | Or the ad URL. |
Response fields
200 with a GumtreeSimilar, in the labels Gumtree’s own listing and ad pages show.
| Field | Type | Description |
|---|---|---|
product_id | string | |
similar | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Similar ads. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, category or location does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Gumtree is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Gumtree is a trademark of Gumtree.com Limited. We are not affiliated with or endorsed by Gumtree.