API · Gumtree
GET /gumtree/products/similar
The ads Gumtree recommends with an ad.
| Request | GET /v1/gumtree/products/similar |
| Operation id | gumtree.product.similar |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The ads Gumtree recommends with an ad.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
product_id | string | no | Ad number. Example: 1804696895. |
url | string | no | Or the ad URL. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Similar ads. | GumtreeSimilar |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, category or location does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Gumtree is temporarily unavailable. Retryable; nothing was charged. | Error |
GumtreeSimilar fields
| Field | Type | Description |
|---|---|---|
product_id | string | |
similar | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.