Contact Us
Company
  • Proven Superior Accuracy
  • About AccuWeather
  • Digital Advertising
  • Careers
  • Press
  • Privacy
  • Terms of Use
  • Brand Guidelines
Products & Services
  • For Business
  • For Partners
  • For Advertising
  • AccuWeather Enterprise APIs
  • AccuWeather Connect
  • Personal Weather Stations
Subscription Services
  • AccuWeather Premium
  • AccuWeather Professional
Apps & Downloads
  • iPhone App
  • Android App
  • See all Apps & Downloads

© 2025 AccuWeather, Inc.

xXfacebookFacebookinstagramInstagram
  • Home
  • Documentation
  • Core Weather API
  • MinuteCast™ API
  • Pricing
  • FAQ
Quick-start guides
    Core weatherMinuteCast™
General
    AccuWeather APIsAuthenticationBest practicesAPI flow diagramData display formatsLanguages and localizationsUnit typesWeather iconsHTTP status codesGlossarySystem statusTerms of useBrand guidelines
Locations
    General informationLocation keysAdministrative areasRegions and countriesPoint-of-interest typesAutocomplete
Indices
    Index listDaily Index Categories and Level Values
Alerts
    Last actions
Alarms
    Thresholds
Locations

Location keys

A location key is a unique identifier for a precise geographic location. Use one of the Locations API endpoints to find a location key. It is required for most API endpoints, including:

  • Current conditions
  • Forecasts
  • Alerts
  • Indices
  • Alarms
  • Imagery maps

Find a location key

To get a location key, use one of the Location search endpoints. Below are some examples:

Use caseEndpoint
City name search/locations/v1/cities/search
Postal code search/locations/v1/postalcodes/search
Points of interest search/locations/v1/poi/search
Cities by latitude/longitude/locations/v1/cities/geoposition/search
IP-based auto-detect/locations/v1/cities/ipaddress

Try a city search to get started:

Code
GET /locations/v1/cities/search?q=San Francisco

Response:

Code
[ { "Version": 1, "Key": "347629", "Type": "City", "Rank": 35, "LocalizedName": "San Francisco", "EnglishName": "San Francisco", "PrimaryPostalCode": "94103", ... } ]

➡️ 347629 is the location key for San Francisco, CA, US.

Use a location key

Use the location key we just found in other API endpoints:

Code
GET /currentconditions/v1/347629

This returns the current conditions for San Francisco, CA.

Last modified on November 25, 2025
General informationAdministrative areas
On this page
  • Find a location key
  • Use a location key
JSON