# Gumtree Locations API (https://www.socialcrawl.dev/platforms/gumtree/locations) > Returns Gumtree location matches for a place name, postcode, or outcode, each with location id, name, type, and coordinates. Feed the id into GET /v1/gumtree/search as location_id. TL;DR: `GET /v1/gumtree/locations` costs 5 credits per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `query` | yes | Place name, postcode, or outcode, for example london or B92. | | `location_type` | no | Optional filter: LOCATION, OUTCODE, or POSTCODE. (LOCATION \| OUTCODE \| POSTCODE) | ## Code example ```bash curl -G "https://www.socialcrawl.dev/v1/gumtree/locations" \ --data-urlencode "query=london" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### What does the Gumtree Locations API return? Returns Gumtree location matches for a place name or postcode, each with location id and coordinates. The response uses the same JSON envelope as every SocialCrawl endpoint, with the data, credits_used and request_id fields. ### When should I use the Gumtree Locations endpoint? Use it to resolve a place name into a location_id for search. ### How much does the Gumtree Locations API cost? Each call costs 5 credits, so the 100 free credits every new account gets cover 20 calls. Credits for failed or empty calls are refunded automatically, and there is no subscription. ### What parameters does the Gumtree Locations API need? The one required parameter is query (place name, postcode, or outcode, for example london or B92). It also accepts 1 optional parameter, listed on this page. ### How do I call the Gumtree Locations API? Send a GET request to https://www.socialcrawl.dev/v1/gumtree/locations?query=london with your API key in the x-api-key header. An Authorization: Bearer header works too. See the full Gumtree API: https://www.socialcrawl.dev/platforms/gumtree ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - What does the SocialCrawl Gumtree Locations API return? - How do I get Gumtree Locations data with the SocialCrawl API?