APIs / Marketplaces / Gumtree

1 credit per call5 endpoints14 datapointsChecked working 6 Dec 2026

Gumtree API

Gumtree API for classified-ad search with price, location and distance filters, listings, categories and locations as JSON. 5 endpoints, 1 credit per call.

Gumtree
GET/v1/gumtree/search?query=bike&category_id=86
{
  "success": true,
  "data": {
    "results": [
      {
        "id": "1804477751",
        "title": "Assist electric bike as new condition cost £600 bargain only £260",
        "url": "https://www.gumtree.com/p/x/x/1804477751",
        "location": "South Shields",
        "price": {
          "amount": 260,
          "currency": "GBP"
        },
        "price_text": "£260",
        "description": "Assist electric bike as new condition comes with charger - two keys and a few accessories including a set of front and rear LED lights - removable rear bag.. bicycle helmet and lock with two keys  …the bike has 3 speed modes including wal…",
        "is_featured": true,
        "category_id": "86",
        "category": "Other Bikes",
        "seller_type": "Private",
        "image_count": 7,
        "images": [
          "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/0cff402565df4e6889_f2c3834f0a95/257"
        ],
        "position": 1
      },
      {
        "id": "1468548379",
        "title": "Bristol UpCycles workshop Used BIKE SALE 🚲 Fishponds BS16",
        "url": "https://www.gumtree.com/p/x/x/1468548379",
        "location": "Fishponds",
        "price": {
          "amount": 95,
          "currency": "GBP"
        },
        "price_text": "£95",
        "description": "⭐Bristols LARGEST selection of serviced used cycles for sale⭐   All tested and ready to ride away at Bristol  UpCycles Bicycle workshop  Over 130 bikes in stock Thursday to Saturday 10-4pm  Parking in Morrisons car park (90 mins) Coffee van…",
        "is_featured": true,
        "category_id": "86",
        "category": "Other Bikes",
        "seller_type": "Private",
        "image_count": 20,
        "images": [
          "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/0a481683-06bf-428d-d4fa-d21c3ccac100/257"
        ],
        "position": 2
      },
      {
        "id": "1804885982",
        "title": "79 bike falcon pro",
        "url": "https://www.gumtree.com/p/x/x/1804885982",
        "location": "Acton",
        "price": {
          "amount": 2699,
          "currency": "GBP"
        },
        "price_text": "£2,699",
        "description": "🔥 79BIKE FALCON PRO – ONLY 763 MILES – £2,699 🔥 Looking for a fantastic 79Bike Falcon Pro? Here's your opportunity to own a great-looking bike with very low mileage and some quality extras! I'm selling my 79Bike Falcon Pro, showing just 7…",
        "category_id": "86",
        "category": "Other Bikes",
        "seller_type": "Private",
        "image_count": 4,
        "images": [
          "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/656d96cbf67b47c6b2_61e807799be0/257"
        ],
        "position": 3
      }
    ],
    "total": 7063,
    "page": 1,
    "size": 20,
    "has_more": true,
    "next_page": 2
  },
  "meta": {
    "endpoint_family": "search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#idstringtitlestringurlurllocationstringpriceobjectprice_textstringdescriptionstringis_featuredbooleancategory_idstringcategorystringseller_typestringimage_countintegerimagesstring[]positioninteger
11804477751Assist electric bike as new condition cost £600 bargain only £260https://www.gumtree.com/p/x/x/1804477751South Shields{2 fields}£260Assist electric bike as new condition comes with charger - two keys and a few accessories including a set of front and rear LED lights - removable rear bag.. bicycle helmet and lock with two keys …the bike has 3 speed modes including wal…true86Other BikesPrivate7[1 item]1
21468548379Bristol UpCycles workshop Used BIKE SALE 🚲 Fishponds BS16https://www.gumtree.com/p/x/x/1468548379Fishponds{2 fields}£95⭐Bristols LARGEST selection of serviced used cycles for sale⭐ All tested and ready to ride away at Bristol UpCycles Bicycle workshop Over 130 bikes in stock Thursday to Saturday 10-4pm Parking in Morrisons car park (90 mins) Coffee van…true86Other BikesPrivate20[1 item]2
3180488598279 bike falcon prohttps://www.gumtree.com/p/x/x/1804885982Acton{2 fields}£2,699🔥 79BIKE FALCON PRO – ONLY 763 MILES – £2,699 🔥 Looking for a fantastic 79Bike Falcon Pro? Here's your opportunity to own a great-looking bike with very low mileage and some quality extras! I'm selling my 79Bike Falcon Pro, showing just 7…—86Other BikesPrivate4[1 item]3

Recorded 12 Nov 2026 · 3 items shown · 14 datapoints per itemGET /v1/gumtree/search?query=bike&category_id=86

14 datapoints

Identity

  • idstring
  • titlestring
  • category_idstring
  • categorystring

Contact

  • urlurl
  • seller_typestring

Location

  • locationstring

Reputation

  • image_countinteger
  • imagesstring[]

Price

  • priceobject
  • price_textstring

Other

  • descriptionstring
  • is_featuredboolean
  • positioninteger

Playground

Run this API

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

Gumtree · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/gumtree/autocomplete
query
termcategory
1 credit
GET/v1/gumtree/categories
none
categories
1 credit
GET/v1/gumtree/listing
id
listing
1 credit
GET/v1/gumtree/location
latitudelongitude
location
1 credit
GET/v1/gumtree/search
none+10 optional
idtitleurllocationpriceprice_text+8 more
1 credit

Overview

About the Gumtree API

What you can get

The Gumtree API returns Gumtree classified-ad data as JSON through 5 endpoints.

  • Search: search takes a query, category_id, min_price, max_price, location_id, location_type (LOCATION or POSTCODE), distance and sort (DATE_DESCENDING, PRICE_ASCENDING, PRICE_DESCENDING or RELEVANCE_DESCENDING), with page and size. All of them are optional.
  • Distance: distance takes NATIONWIDE, ZERO, ONE, THREE, FIVE, TEN, FIFTEEN, THIRTY, FIFTY, SEVENTY_FIVE, HUNDRED, HUNDRED_FIFTY, TWO_HUNDRED_FIFTY or FIVE_HUNDRED.
  • Listings: listing takes a listing id.
  • Categories: categories takes no parameters.
  • Locations: location takes a latitude and longitude; autocomplete takes a query of up to 100 characters.

How a call works

search filters by category_id and location_id; categories, location and autocomplete are the lookup endpoints, though no recorded response shows which IDs they return. Search for an item: GET /v1/gumtree/search?query=bike&sort=DATE_DESCENDING with your key in the X-API-Key header. Page with page and size. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Track asking prices for an item type within a distance of a postcode

Use the Gumtree API to track asking prices for an item type within a distance of a postcode

Watch a category for new ads with sort=DATE_DESCENDING

Use the Gumtree API to watch a category for new ads with sort=DATE_DESCENDING

Compare price ranges between areas with `min_price`, `max_price` and `location_id`

Use the Gumtree API to compare price ranges between areas with `min_price`, `max_price` and `location_id`

Collect listings in a category for resale market research

Use the Gumtree API to collect listings in a category for resale market research

FAQ

Questions

Do I need a Gumtree API key?

No. You call this Gumtree API with your Perceptlayer key in the `X-API-Key` header, with no Gumtree account.

Can I search Gumtree by postcode?

`search` takes a `location_type` of LOCATION or POSTCODE alongside `location_id` and `distance`.

How much does the Gumtree API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Gumtree API?

No. Perceptlayer is an independent service and is not affiliated with Gumtree. It returns Gumtree data as JSON with a Perceptlayer key, so there is no Gumtree developer account, app review or partner approval to get first. It only reads data: if Gumtree has an official API and you need to act on your own Gumtree account, such as posting, managing orders or reading private data, use that one.

Should I build a Gumtree scraper instead?

You can, but a Gumtree scraper is code you maintain: page changes break it, requests get blocked, and Gumtree's terms govern how you collect data. The Gumtree API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Gumtree API with 100 free credits

No credit card. Failed calls are never billed.