# Accuweather — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Get real-time weather conditions, multi-day forecasts, and health alerts for any location worldwide. Search cities and access detailed data including allergen information and air quality to plan your activities with confidence.

**Category:** Weather | **Website:** [accuweather.com/](https://accuweather.com/) | **Docs:** [parse.bot/marketplace/d84777ff-9570-4ba2-8393-45d2c406862e/accuweather-com-api](https://parse.bot/marketplace/d84777ff-9570-4ba2-8393-45d2c406862e/accuweather-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-accuweather-com-api-d84777ff/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_weather

Get comprehensive weather data for a city including current conditions, daily and hourly forecasts, alerts, allergens, and radar metadata. Resolves city name to a location key internally, then fetches multiple data sources. Returns temperature in Fahrenheit, wind speed in mph.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | Yes | City name to get weather for (e.g., 'Istanbul', 'New York', 'London') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accuweather-com-api-d84777ff/get_weather \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>"}'
```

### 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. Returns names and browse URLs for each province or state.

**Estimated cost:** Metered

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

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accuweather-com-api-d84777ff/list_cities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>"}'
```

### search_locations

Search for location keys and metadata by query string. Returns matching cities with their AccuWeather location keys, geographic coordinates, timezone information, and available datasets. Use the Key field from results as input to other endpoints that require a location key.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Location name or query to search for (e.g., 'Istanbul', 'London', 'New York') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accuweather-com-api-d84777ff/search_locations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
