WeatherAPI.com API: endpoints, pricing model and alternatives

A JSON/XML API with location search and current, forecast, history and astronomy endpoints.

When WeatherAPI.com fits

An app accepting city names, postal codes or coordinates and needing a compact location-and-forecast response.

Check before integrating

Forecast length and historical access change by plan. Validate the requested horizon against the plan rather than the largest number mentioned in the documentation.

Provider endpoint reference

This is WeatherAPI.com's documented interface. Its credentials and response format are separate from an All Them APIs account.

WeatherAPI.com endpoint
GET https://api.weatherapi.com/v1/forecast.json

Authentication: API key in key
Inputs: key, q, days; optional aqi and alerts
Output: JSON location, current conditions and forecast.forecastday entries.
WeatherAPI.com: integration details
CapabilityWhat to expect
Forecast interfaceDedicated forecast endpoint with a days parameter
Historical workflowHistory endpoint; lookback depends on plan
Location inputCity, postal code, coordinates and other q formats
Response shapeJSON or XML; location/current/forecast objects
Production accessCall allowance and feature tier
Cost driverMonthly request allowance

Pricing model and production access

Monthly plans with call allowances. The pricing page lists a $7/month Starter plan with 3 million calls and a seven-day forecast; other capabilities remain plan-specific. Checked October 28, 2026.

For 10,000 location-day lookups, record the requested variables and hourly/daily resolution first. A plan counting calls and a plan counting returned weather records can charge different amounts for the same HTTP request count.

Migration notes

Resolve ambiguous city names before comparing results. Convert forecastday/hour objects and local timestamps to your application's canonical hourly schema.

Keep provider-specific authentication and response mapping inside an adapter. Preserve source timestamps and identifiers so changing a provider does not silently change the meaning of stored records.

WeatherAPI.com alternatives

Other providers in this category
AlternativeWhen to evaluate it
WeatherAPI.com vs OpenWeatherAn application combining current weather, forecast intervals and alerts through a documented product family.
WeatherAPI.com vs Open-MeteoA team choosing explicit weather variables or comparing model output rather than consuming a fixed weather-card payload.
WeatherAPI.com vs Tomorrow.ioA workflow connecting weather fields to operating decisions, where the required fields and forecast intervals can be specified in advance.
WeatherAPI.com vs Visual CrossingHistorical weather joins, reporting and backfills that benefit from a consistent date-range interface.
WeatherAPI.com vs WeatherbitAn integration with a fixed daily forecast schema that may later need air-quality, agriculture or energy data.

A fair evaluation

  1. Fix ten coordinates across your actual service area. Use the same UTC issue time, units and hourly window for every provider.
  2. Save the forecast before the event. Compare later against an agreed observation source; a successful HTTP response does not establish forecast accuracy.
  3. Check missing values, elevation, timezone boundaries and precipitation accumulation periods before calculating an error statistic.
  4. Measure p50/p95 request latency, throttling and billed units separately from forecast error. Repeat across several weather conditions.
  5. Confirm caching, attribution, redistribution and commercial-use terms for the exact plan. A keyless endpoint is not automatically a commercial entitlement.

A common integration contract

All Them APIs · Weather APIsPOST /api/v1/weather/forecast

Review the request contract and tell us the coverage you need. Access requires enablement; this endpoint does not execute or bill requests yet.

View endpoint and request access

Sources and review dates

Documentation reviewed October 28, 2026. These are integration and plan comparisons, not measured speed or accuracy rankings. Availability, licensing and prices should be confirmed for the chosen plan.

Corrections: email faizank@docsalot.dev with an official source.