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
Current Conditions
    Location Key
      Current conditions by location keyget
    Top Cities
      Current conditions for top citiesget
    Historical
      Historical current conditions for past 24 hours by location keygetHistorical current conditions for past 6 hours by location keyget
Daily Forecasts
    Location Key
      1 day by location keyget5 days by location key get7 days by location key get10 days by location key get15 days by location key get
Hourly Forecasts
    Location Key
      1 hour by location key get12 hours by location key get24 hours by location key get72 hours by location keyget120 hours by location key get
Alerts
    Location Key
      Goverment-issued alerts by location keyget
Locations
    Location Key
      Neighboring location data by location keygetLocation search by location keyget
    List
      Top 50 cities listgetTop 100 cities listgetTop 150 cities listgetTop cities list by regiongetCountries list by region codegetCountries listgetRegion listgetCountry by region code and country codegetAdministrative area list by country codegetAdministrative area list get
    Autocomplete
      Autocomplete by country codegetAutocomplete for cities and points of interest getAutocomplete for points of interest by country codegetAutocomplete for points of interestgetAutocomplete for cities by country codegetAutocomplete for citiesget
    Text Search
      City search by country code and administrative codegetCity search by country codegetCity searchgetLocation search by country code and administrative codegetLocation search by country codegetLocation searchgetPostal code search by country codegetPostal code searchgetPoint of interest by country code and administrative codegetPoint of interest by country codegetPoint of interest searchgetRegion searchgetAdministrative area search by country code and text stringgetAdministrative area search by text stringgetAdministrative area search by country code and administrative area codeget
    Geoposition
      Cities search by geopositiongetLocation search by geopositiongetPoint of interest by latitude, longitudeget
    IP Address
      Cities search by IP addressget
Indices
    1 Day
      1 day by location key and group Idget1 day by location keyget1 day by location key and index Idget
    5 Days
      5 days by location key and group id get5 days by location keyget5 days by location key and index id get
    10 Days
      10 days by location key and group idget10 days by location keyget10 days by location key and index idget
    15 Days
      15 days by location key and group idget15 days by location keyget15 days by location key and index idget
    Metadata
      Index groupsgetIndex metadata by group idgetIndex metadatagetIndex metadata by index Idget
Tropical
    Active
      Active government-issued storms by basin and government IdgetActive government-issued stormsgetActive government-issued storms by basinget
    Search
      Government-issued storms by year, basin, and government IdgetGovernment-issued storms by yeargetGovernment-issued storms by year and basingetStatuses for government-issued stormsgetStatuses for government-issued storms by basinget
    Position
      Current position of government-issued storm by year, basin, and government IdgetPositions of government-issued storm by year, basin, and government Idget
    Forecast
      Forecasts of government-issued storm by year, basin, and government Idget
Alarms
    Location Key
      1 day by location keyget5 days by location keyget10 days by location keyget15 days by location keyget
Imagery Maps
    Location Key
      480x480 radar and satellite images by location keyget640x480 radar and satellite images by location keyget1024x1024 radar and satellite images by location keyget
Translations
    Groups
      Translations by group idgetTranslation groupsget
    Languages
      Supported languagesgetLanguage id by language codegetLanguage code by language idget
Schemas
Core Weather

IP Address

Endpoint:https://dataservice.accuweather.com

Cities search by IP address

GET
https://dataservice.accuweather.com
/locations/v1/cities/ipaddress

Uses the device's Internet protocol address to return current location data.

Cities search by IP address › query Parameters

  • qstring · required

    A string that indicates an ip address to search by.

    Example: 38.103.173.150
  • languagestring

    A string that indicates the language in which to return the response. More information can be found here.

    Default: en-us
  • detailsboolean

    A boolean value that specifies whether or not to include extended information.

    Default: false
  • formatstring

    A string value that specifies what type of format to provide the response.

    Default: json

Cities search by IP address › Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate using your API key. Format is Bearer YOUR_API_KEY.

Cities search by IP address › Responses

OK

  • PrimaryPostalCodestring · minLength: 1 · required

    Official postal code provided by our main location data provider for the requested location

  • Regionrequired

    The object containing the region details

  • TimeZonerequired

    The object containing the timezone details

  • GeoPositionrequired

    The object containing the geoposition details

  • IsAliasboolean · required

    “True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location

  • SupplementalAdminAreasobject[] · required

    The object containing a list of administrative area details

  • DataSetsstring[] · required

    Array of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.

  • EnglishNamestring · minLength: 1 · required

    Location name as displayed in English

  • Versioninteger · int32 · required

    Current version of the API

  • Keystring · minLength: 1 · required

    Unique ID to search a location

  • Typestring · minLength: 1 · required

    Location type such as City, PostalCode, POI or LatLong

  • Rankinteger · int32 · required

    Number applied to locations set by factors such as population, political importance, and geographic size

  • LocalizedNamestring · minLength: 1 · required

    Display name in local dialect set with language code in URL. Default is US English (us-en)

  • Countryrequired

    THe object containing the country details

  • AdministrativeArearequired

    The object containing the amdministrative area details

  • ParentCity | null

    The object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.

  • Details | null

    AccuWeather related details about the specific location

GET /locations/v1/cities/ipaddress

Geoposition1 Day