# AccuWeather List Cities API

> List all provinces or major administrative divisions within a country by its ISO 2-letter code. Searches across regional browse pages to find the country.

Source: https://www.sandbase.ai/apis/accuweather/list-cities
API reference: https://www.sandbase.ai/apis/accuweather/list-cities/docs

## Facts

- Provider: AccuWeather
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/accuweather/list-cities`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, accuweather, web scraping
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/accuweather/list-cities` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `country_code` | string | yes |  |

## FAQ

### How do I use the AccuWeather List Cities API?

Send a POST request to https://api.sandbase.ai/v1/api/accuweather/list-cities with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the AccuWeather List Cities API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the AccuWeather List Cities API accept?

Required: country_code (string). The Parameters table and the Playground on this page list every field.

### What does the AccuWeather List Cities API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

### Do I need a AccuWeather developer account or API key?

No. AccuWeather List Cities runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for AccuWeather API access separately.

## README

### AccuWeather List Cities

List all provinces or major administrative divisions within a country by its ISO 2-letter code. Searches across regional browse pages to find the country.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "accuweather/list-cities", "country_code": "US"}'
```

This API runs asynchronously. `/v1/run` returns a task `id` with status `pending`; poll `GET https://api.sandbase.ai/v1/run/{id}` until `status` is `completed` and read the result from `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `country_code` | string | Yes | ISO 2-letter country code, case-insensitive (e.g., 'tr', 'us', 'gb') |

#### Pricing

Flat price per call. Failed calls are not charged.
