Gumtree seller listings API
The ads a Gumtree seller lists on their profile.
GET /v1/gumtree/sellers/listings2 credits per callRefunded on failureimport 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
| Name | Type | Description |
|---|---|---|
seller_idquery | string | Seller id or profile URL. |
public_idquery | string | The 32-character public id. Example: 02637342fe651ba4b11b087826267c4c. |
account_idquery | string | Alias of public_id. |
pagequery | integer |
Response fields
200 with a GumtreeSellerListings, in the labels Gumtree’s own listing and ad pages show.
| Field | Type | Description |
|---|---|---|
public_id | string | |
listings | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | The seller’s 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.