---
title: "Gumtree API: Search | Perceptlayer"
description: "Search from Gumtree as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/gumtree/search
---

[APIs](https://perceptlayer.com/apis) / [Gumtree](https://perceptlayer.com/apis/gumtree) / Search

# Gumtree: Search

Search from Gumtree as JSON. 1 credit per successful call.

GET `/v1/gumtree/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 200 characters |
| `category_id` | string | Optional | Any |
| `page` | integer | Optional | Any |
| `size` | integer | Optional | Any |
| `min_price` | integer | Optional | Any |
| `max_price` | integer | Optional | Any |
| `location_id` | string | Optional | Any |
| `location_type` | string | Optional | LOCATION, POSTCODE |
| `distance` | string | Optional | NATIONWIDE, ZERO, ONE, THREE, FIVE, TEN, FIFTEEN, THIRTY, FIFTY, SEVENTY\_FIVE, HUNDRED, HUNDRED\_FIFTY, TWO\_HUNDRED\_FIFTY, FIVE\_HUNDRED |
| `sort` | string | Optional | DATE\_DESCENDING, PRICE\_ASCENDING, PRICE\_DESCENDING, RELEVANCE\_DESCENDING |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/gumtree/search?query=bike&category_id=86" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/gumtree?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.
