# Gumtree Locations Nearest API (https://www.socialcrawl.dev/platforms/gumtree/locations-nearest) > Returns the Gumtree location closest to a latitude,longitude pair: location id, name, type (LOCATION or POSTCODE), and coordinates. Feed the id into GET /v1/gumtree/search as location_id. TL;DR: `GET /v1/gumtree/locations/nearest` 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 | | --- | --- | --- | | `latitude` | no | Latitude. Use with longitude when you do not pass location_coordinate. | | `longitude` | no | Longitude. Requires latitude. | | `location_coordinate` | no | Latitude,longitude pair, for example 51.5074,-0.1278. | ## Code example ```bash curl -G "https://www.socialcrawl.dev/v1/gumtree/locations/nearest" \ --data-urlencode "location_coordinate=51.5074,-0.1278" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### What does the Gumtree Locations Nearest API return? Returns the Gumtree location closest to a latitude,longitude pair. 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 Nearest endpoint? Use it when you have coordinates and need a location_id for search. ### How much does the Gumtree Locations Nearest 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 Nearest API need? Identify the target with one of location_coordinate, latitude. It also accepts 3 optional parameters, all listed on this page. ### How do I call the Gumtree Locations Nearest API? Send a GET request to https://www.socialcrawl.dev/v1/gumtree/locations/nearest?location_coordinate=51.5074%2C-0.1278 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 Nearest API return? - How do I get Gumtree Locations Nearest data with the SocialCrawl API?