Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to AccuWeather

Scalekit connector
Open markdown

The AccuWeather connector lets your AI agent act in each user's AccuWeather account. Each user connects their own AccuWeather access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 30 tools.

Tools
30
What they doRead · write · destructive
30 · 0 · 030 read0 write0 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the AccuWeather connection

    In AgentKit > Connections, create an AccuWeather connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'accuweather'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize AccuWeather:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'accuweather_get_top_cities_current_conditions',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their AccuWeather credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • accuweather_autocomplete_citiesSuggest AccuWeather cities that match partial text, for type-ahead search.Read-only

    Autocomplete Cities

    Suggest AccuWeather cities that match partial text, for type-ahead search. Returns up to 10 cities ranked by relevance, each with its location key, name, administrative area and country (a shortened record). Use this for incomplete names as a user types. Use accuweather_search_cities for a full city name with filters and paging, and accuweather_autocomplete_locations to include points of interest.

    Inputs

    qstringrequired
    Partial city name to complete. Example: San Fr
    country_codestring
    Two-letter ISO 3166-1 country code that restricts results to one country. Example: US
    include_aliasesboolean
    Set to true to include alias (alternative) place names in the matches. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
  • accuweather_autocomplete_locationsSuggest AccuWeather cities and points of interest that match partial text, for type-ahead search.Read-only

    Autocomplete Locations

    Suggest AccuWeather cities and points of interest that match partial text, for type-ahead search. Returns up to 10 matches ranked by relevance, each with its location key, type, name, administrative area and country (a shortened record). Use this when the user may be typing a landmark as well as a city. Use accuweather_autocomplete_cities for cities only.

    Inputs

    qstringrequired
    Partial city or point-of-interest name to complete. Example: Golden Ga
    country_codestring
    Two-letter ISO 3166-1 country code that restricts results to one country. Example: US
    include_aliasesboolean
    Set to true to include alias (alternative) place names in the matches. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
  • accuweather_get_current_conditionsGet the current observed weather for one AccuWeather location.Read-only

    Get Current Conditions

    Get the current observed weather for one AccuWeather location. Returns the observation time, weather text and icon, temperature, RealFeel temperature, whether it is day, and precipitation flags; with details=true it adds humidity, wind, UV index, visibility, cloud cover, pressure and past-24-hour summaries. Use this for weather right now. Use accuweather_get_historical_conditions for the past 24 hours and accuweather_get_hourly_forecast for the coming hours. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    get_photosboolean
    Set to true to include photos that represent the location and the current weather. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
  • accuweather_get_daily_forecastGet the daily weather forecast for one AccuWeather location for 1, 5, 7, 10 or 15 days.Read-only

    Get Daily Forecast

    Get the daily weather forecast for one AccuWeather location for 1, 5, 7, 10 or 15 days. Returns a headline plus one entry per day with minimum and maximum temperature and day and night weather text and icons; with details=true it adds RealFeel, wind, precipitation amounts and probability, sun and moon times, air quality and hours of sun. Use this for day-by-day outlooks. Use accuweather_get_hourly_forecast for hour-by-hour detail and accuweather_get_current_conditions for weather right now. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
    metricboolean
    Set to true to return metric units (Celsius, km/h, millimeters). False or omitted returns imperial units (Fahrenheit, mph, inches).
    periodstring
    Number of forecast days to return. One of 1day, 5day, 7day, 10day, 15day. Defaults to 5day. Longer periods need a higher AccuWeather plan; a key whose plan does not include the period gets a 403 error. Example: 5dayone of 1day5day7day10day15daydefault 5day
  • accuweather_get_daily_indexGet one AccuWeather daily lifestyle or health index for one location over 1, 5, 10 or 15 days.Read-only

    Get Daily Index

    Get one AccuWeather daily lifestyle or health index for one location over 1, 5, 10 or 15 days. Returns one entry per day with the index name, value, category (for example Good or Poor) and a short text. Use this for a single index such as Running (1) or Arthritis Pain (21). Use accuweather_get_daily_indices for all indices and accuweather_list_indices to find index ids. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    index_idstringrequired
    Id of the index, as returned in the ID field of accuweather_list_indices. Some ids are negative, such as -10 for Air Quality. Example: 1 (Running)
    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
    periodstring
    Number of days of index values to return. One of 1day, 5day, 10day, 15day. Defaults to 1day. Longer periods need a higher AccuWeather plan; a key whose plan does not include the period gets a 403 error. Example: 1dayone of 1day5day10day15daydefault 1day
  • accuweather_get_daily_index_groupGet one group of related AccuWeather daily indices for one location over 1, 5, 10 or 15 days.Read-only

    Get Daily Index Group

    Get one group of related AccuWeather daily indices for one location over 1, 5, 10 or 15 days. Returns one entry per index per day for every index in the group, with the index name, value, category and a short text. Use this for a theme such as allergies or outdoor sports. Use accuweather_list_index_groups to find group ids and accuweather_get_daily_index for a single index. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    group_idstringrequired
    Id of the index group, as returned in the ID field of accuweather_list_index_groups. Example: 1
    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
    periodstring
    Number of days of index values to return. One of 1day, 5day, 10day, 15day. Defaults to 1day. Longer periods need a higher AccuWeather plan; a key whose plan does not include the period gets a 403 error. Example: 1dayone of 1day5day10day15daydefault 1day
  • accuweather_get_daily_indicesGet every AccuWeather daily lifestyle and health index for one location over 1, 5, 10 or 15 days.Read-only

    Get Daily Indices

    Get every AccuWeather daily lifestyle and health index for one location over 1, 5, 10 or 15 days. Returns one entry per index per day with the index name and id, value, category (for example Good or Poor) and a short text; indices cover activities like running and golf, health like arthritis and allergies, and travel like flight delays. Use this to see all indices at once. Use accuweather_get_daily_index for a single index and accuweather_get_daily_index_group for one group of related indices. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr
    periodstring
    Number of days of index values to return. One of 1day, 5day, 10day, 15day. Defaults to 1day. Longer periods need a higher AccuWeather plan; a key whose plan does not include the period gets a 403 error. Example: 1dayone of 1day5day10day15daydefault 1day
  • accuweather_get_historical_conditionsGet the hourly observed weather for one AccuWeather location over the past 24 hours.Read-only

    Get Historical Conditions

    Get the hourly observed weather for one AccuWeather location over the past 24 hours. Returns one observation per hour with time, weather text and icon, temperature and precipitation flags; with details=true each observation adds humidity, wind, UV index, visibility, pressure and more. Use this for recent past weather. Use accuweather_get_current_conditions for the latest observation only. Requires a location key from a location search tool such as accuweather_search_cities.

    Inputs

    location_keystringrequired
    AccuWeather location key for the place. Get it from the Key field returned by accuweather_search_cities, accuweather_search_by_postal_code, accuweather_search_by_geoposition or accuweather_autocomplete_cities. Example: 349727 (New York, NY).
    detailsboolean
    Set to true to include extended information in each result. Defaults to false.
    get_photosboolean
    Set to true to include photos that represent the location and the current weather. Defaults to false.
    languagestring
    Language for text in the response, as a language code. Defaults to en-us. accuweather_list_languages lists the supported codes. Example: fr-fr