{"openapi":"3.1.0","info":{"title":"US City Geo & Weather Metadata API","version":"1.0.0","summary":"Comprehensive US city database with coordinates, population, timezone, and FIPS codes from NOAA sources.","description":"A clean, indexed list of US cities with geographic and demographic metadata. Includes latitude, longitude, population, timezone, and FIPS codes derived from NOAA storm report data. Ideal for mapping applications, weather widgets, and location-based services needing reliable city lookups. Data is public domain US government work.\n\nPrepaid keys only (30 days or a year; no free tier, no trial): https://bestpaid.app/api/us-city-geo-weather/\nTiers: Enterprise: $990/30 days, 60/minute, 2400/hour, 20000/day, 3 server addresses; Business: $390/30 days, 30/minute, 900/hour, 8000/day, 2 server addresses; Pro: $149/30 days, 10/minute, 200/hour, 1500/day, 2 server addresses. Server to server only (no CORS), key in the X-API-Key header.\n\nTerms: Paid access only: no free plan, no trial, no free calls. Use the results in your own product or workflow; do not resell or redistribute the raw feed or share your key. Data come from the public sources named in the documentation and are provided as is, without any guarantee; nothing in them is legal, medical, financial or immigration advice. Support: support@bestpaid.app.","contact":{"email":"support@bestpaid.app"}},"servers":[{"url":"https://api.bestpaid.app/us-city-geo-weather/v1"}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"ApiKey":[]}],"externalDocs":{"url":"https://api.bestpaid.app/us-city-geo-weather/v1/","description":"Documentation"},"tags":[{"name":"cities"},{"name":"geo"},{"name":"weather"},{"name":"us"},{"name":"noaa"},{"name":"fips"},{"name":"timezone"},{"name":"population"},{"name":"coordinates"},{"name":"lookup"}],"paths":{"/cities":{"get":{"operationId":"cities","summary":"Search US City Geo & Weather Metadata API.","description":"Search US City Geo & Weather Metadata API.","parameters":[{"name":"q","in":"query","required":false,"description":"Search by city name","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Filter by state code (e.g., CA)","schema":{"type":"string"}},{"name":"min_pop","in":"query","required":false,"description":"Minimum population","schema":{"type":"integer"}},{"name":"tz","in":"query","required":false,"description":"Filter by timezone string (e.g., America/New_York)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"generated":"2026-11-30T02:36:08Z","items":[{"id":"5128581","name":"New York City","state":"NY","lat":40.7143,"lng":-74.006,"pop":8804190,"fips":"","tz":"America/New_York","slug":"new-york-city"},{"id":"5368361","name":"Los Angeles","state":"CA","lat":34.0522,"lng":-118.2437,"pop":3820914,"fips":"06037","tz":"America/Los_Angeles","slug":"los-angeles"},{"id":"5110302","name":"Brooklyn","state":"NY","lat":40.6501,"lng":-73.9496,"pop":2736074,"fips":"36047","tz":"America/New_York","slug":"brooklyn"}]}}}},"304":{"description":"Not modified (send the ETag back as If-None-Match)"},"400":{"description":"unknown_parameter, bad_parameter, missing_parameter or key_in_header_only"},"401":{"description":"invalid_or_expired_key"},"403":{"description":"server_to_server_only, ip_not_allowed or key_blocked"},"429":{"description":"rate_limited (window, limit, Retry-After)"}}}},"/city":{"get":{"operationId":"city","summary":"One record by id.","description":"One record by id.","parameters":[{"name":"id","in":"query","required":true,"description":"","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"generated":"2026-11-30T02:36:08Z","item":{"id":"5128581","name":"New York City","state":"NY","lat":40.7143,"lng":-74.006,"pop":8804190,"fips":"","tz":"America/New_York","slug":"new-york-city"}}}}},"304":{"description":"Not modified (send the ETag back as If-None-Match)"},"404":{"description":"not_found"},"400":{"description":"unknown_parameter, bad_parameter, missing_parameter or key_in_header_only"},"401":{"description":"invalid_or_expired_key"},"403":{"description":"server_to_server_only, ip_not_allowed or key_blocked"},"429":{"description":"rate_limited (window, limit, Retry-After)"}}}},"/key":{"get":{"operationId":"key_info","summary":"Your key: tier, expiry, limits, use so far and server addresses","responses":{"200":{"description":"Key information"},"400":{"description":"unknown_parameter, bad_parameter, missing_parameter or key_in_header_only"},"401":{"description":"invalid_or_expired_key"},"403":{"description":"server_to_server_only, ip_not_allowed or key_blocked"},"429":{"description":"rate_limited (window, limit, Retry-After)"}}}},"/key/reset-ips":{"post":{"operationId":"key_reset_ips","summary":"Move the key to the server that sends this request (once every 7 days)","responses":{"200":{"description":"Done"},"429":{"description":"reset_too_soon"}}}}}}