Gumtree ad API
One Gumtree ad with price, description, attributes, images, seller and location.
GET /v1/gumtree/products2 credits per callRefunded on failureimport 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
| Name | Type | Description |
|---|---|---|
product_idquery | string | Ad number. Example: 1804696895. |
urlquery | string | Or the ad URL. |
Response fields
200 with a GumtreeAd, in the labels Gumtree’s own listing and ad pages show.
| Field | Type | Description |
|---|---|---|
product_id | string | |
url | string | |
title | string | |
price | string | null | |
description | string | null | |
location | string | null | |
posted | string | null | |
attributes | object | |
images | string[] | |
seller | object | |
categories | object[] | |
similar | object[] | |
structured_data | object | null |
Status codes
| Status | Meaning |
|---|---|
200 | The ad. |
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.