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

Gumtree ad API

One Gumtree ad with price, description, attributes, images, seller and location.

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

res = requests.get(
    "https://api.groundsocial.dev/v1/gumtree/products?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",
"url": "https://www.gumtree.com/p/-/-/1804696895",
"title": "Trek Road Bike - Black, Good Condition",
"price": "£650",
"description": "Trek Domane SL5 3 years old road bike in good condition, well-maintained and ready to ride. Has been serviced by Trek an…",
"location": "Gloucester Road, Bristol",
"posted": "12 mins ago",
"attributes": {},
"images": [
"https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/d8852061414140519c_49ada1c050b5/86",
"https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/2ecfad23120a4fb38c_ab62884a1d96/86",
"… 10 more"
],
"seller": {
"name": "Tariq",
"profile_url": "https://www.gumtree.com/profile/account/02637342fe651ba4b11b087826267c4c?userId=101895670&publicUserId=02637342fe651ba4b…",
"type": null
},
"categories": [
{
"name": "For Sale",
"url": "https://www.gumtree.com/for-sale/uk/gloucester-road"
},
{
"name": "Sports, Leisure & Travel",
"url": "https://www.gumtree.com/for-sale/sports-leisure-travel/uk/gloucester-road"
},
"… 3 more"
],
"similar": [
{
"id": "1805332146",
"url": "https://www.gumtree.com/p/road-bikes/-pendleton-initial-road-bike-48cm-small-%C2%A3180/1805332146"
},
{
"id": "1805331297",
"url": "https://www.gumtree.com/p/road-bikes/specialized-dolce-road-bike-bicycle-18-frame-black/1805331297"
},
"… 8 more"
],
"structured_data": {
"@context": "https://schema.org",
"@type": "Product",
"sku": "1804696895",
"name": "Trek Road Bike - Black, Good Condition",
"description": "Trek Domane SL5 3 years old road bike in good condition, well-maintained and ready to ride. Has been serviced by Trek an…",
"category": [
{
"@type": "CategoryCode",
"inCodeSet": "https://www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt",
"codeValue": "Sporting Goods > Outdoor Recreation > Cycling > Bicycles"
}
],
"offers": {
"@type": "Offer",
"priceCurrency": "GBP",
"price": "650.00",
"availableAtOrFrom": "Gloucester Road, Bristol",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/UsedCondition",
"validFrom": "2026-11-07T15:59:39.957Z",
"validThrough": "2027-02-05T00:00:00.000Z",
"priceValidUntil": "2027-02-05T00:00:00.000Z",
"url": "https://www.gumtree.com/p/road-bikes/trek-road-bike-black-good-condition/1804696895",
"offeredBy": {
"@id": "https://www.gumtree.com/sellerads/1804696895?userId=101895670&publicUserId=02637342fe651ba4b11b087826267c4c"
}
},
"image": [
"https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/d8852061414140519c_49ada1c050b5/86",
"https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/2ecfad23120a4fb38c_ab62884a1d96/86"
]
}
}

Parameters

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

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

FieldTypeDescription
product_idstring
urlstring
titlestring
pricestring | null
descriptionstring | null
locationstring | null
postedstring | null
attributesobject
imagesstring[]
sellerobject
categoriesobject[]
similarobject[]
structured_dataobject | null
Status codes
StatusMeaning
200The ad.
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.