locations
Search Locations
Search for cities and places by name. When popular=true is passed without q, returns the most-populous cities globally for empty-state UIs. Results cached for 7 days. Public endpoint, no auth required.
get/locations/search
Request
- Base URL: https://api.aiapplyd.com/api/v1
- URL: https://api.aiapplyd.com/api/v1/locations/search
- Auth: HTTP bearer
Query parameters
limitinteger
Maximum number of results to return (max 50)
Example:10
qstring
Search query (2-100 characters). Omit when popular=true. Capped so an over-long query is a clean 400, never an oversized D1/KV cache key (512-byte limit) that 500s.
Example:San Francisco
Response
Location search results
Example response
{
"data": [
{
"adminName1": "California",
"country": "United States",
"countryCode": "US",
"flagEmoji": "🇺🇸",
"lat": 37.7749,
"lng": -122.4194,
"name": "San Francisco",
"population": 884363,
"stateCode": "CA",
"type": "city"
}
],
"meta": {
"duration": 150,
"requestId": "req_abc123",
"timestamp": "2026-10-13T10:27:20.268Z",
"version": "v1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.