100 free credits. No credit card required. Get a key

Gumtree similar ads API

The ads Gumtree recommends on an ad’s page.

GET /v1/gumtree/products/similar2 credits per callRefunded on failure
import 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

NameTypeDescription
product_idquerystringAd number. Example: 1804696895.
urlquerystringOr the ad URL.
Response fields

200 with a GumtreeSimilar, in the labels Gumtree’s own listing and ad pages show.

FieldTypeDescription
product_idstring
similarobject[]
Status codes
StatusMeaning
200Similar ads.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The ad, category or location does not exist.
429Too many requests. Wait for Retry-After seconds.
503Gumtree 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.