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

Gumtree seller listings API

The ads a Gumtree seller lists on their profile.

GET /v1/gumtree/sellers/listings2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/gumtree/sellers/listings?public_id=02637342fe651ba4b11b087826267c4c",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"public_id": "02637342fe651ba4b11b087826267c4c",
"listings": [
{
"id": "1804696895",
"title": "Trek Road Bike - Black, Good Condition",
"url": "https://www.gumtree.com/p/road-bikes/trek-road-bike-black-good-condition/1804696895",
"image": "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/d8852061414140519c_49ada1c050b5/86",
"price": "£650",
"location": "Gloucester Road, Bristol",
"attributes": [],
"badges": []
}
]
}

Parameters

NameTypeDescription
seller_idquerystringSeller id or profile URL.
public_idquerystringThe 32-character public id. Example: 02637342fe651ba4b11b087826267c4c.
account_idquerystringAlias of public_id.
pagequeryinteger
Response fields

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

FieldTypeDescription
public_idstring
listingsobject[]
Status codes
StatusMeaning
200The seller’s 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.