Head to head · Current weather · October 2026 research run

WeatherAPI.com vs Xweather Weather API

Xweather Weather API scores 68.2 (B) on agent readiness against WeatherAPI.com's 66.5 (B), and leads in 5 of 7 scored categories. WeatherAPI.com leads on schema & documentation. Both do current weather.

Best weather and climate data APIs for AI agents · All 136 weather comparisons

Which one, for what

WeatherAPI.com B

Best for Cheap, high-volume consumer forecasts where the location arrives as a city, postcode or IP.

Ahead on

  • Schema & documentation, 89 against 83

Also in its favour

  • Free to start without a card
  • No incidents deducted, where Xweather Weather API loses 3 points for them

Watch for

Key only in the query string, keys can't be scoped, and no security.txt

Xweather Weather API B

Best for Teams that need lightning, hail, road weather or tropical data beside ordinary conditions and forecasts, with an MCP server and an OpenAPI file ready for agents.

Ahead on

  • Security & auth, 52 against 37
  • Maintenance & community, 81 against 60

Watch for

The REST API documents client_id and client_secret only as query parameters, and the MCP server also accepts the key as ?api_key=

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community Xweather Weather API +21

WeatherAPI.com 60

The changelog has 13 entries dated October 2026, among them the Agriculture API (/agriculture.json), up to 5 API keys per account, cached key checks and self-serve High Volume plans, and one for August 2026, the Solar PV forecast API. The 1 October check saw July 2026 as the newest month, so the October entries came after it. Dated by month only, they are 2 to 32 days old on 2 November. The OpenAPI file, now version 1.0.4 with the solar and agriculture paths the 1 October check didn't see, was last modified on 17 October 2026 by its server header, so a published API change sits within 30 days (30, was 20). 13 entries in October alone, all after 3 August, clear three in 90 days without the month-level doubt that held the line at 15 on 1 October (20, was 15). A public changelog, and support by email we didn't test (8 of 15). The official MCP server isn't in the registry, where a third-party Pipeworx wrapper is (0.2.0 on 2 November), and the SDKs haven't changed since 2020 and 2021 (0). The npm package weatherapi-mcp is at 1.0.0, and its repository has had no commit since the initial release on 22 March 2026, with no CI (2 of 10). 30 + 20 + 8 + 0 + 2 = 60.

Xweather Weather API 81

The newest API release is 1.45.0 on 21 October 2026, 11 days before this check, after 1.44.0 on 30 September (30). Since 3 August the API shipped 1.43.4, 1.43.5, 1.44.0 and 1.45.0, the MCP server 1.3.0 on 27 October, and the agent skills repository releases 0.14.1 to 0.15.4 between 1 September and 26 October (20). Public changelogs, a ticket form and support@xweather.com, with community support on the free tier and priority email on the paid plan. Response times were not tested (10 of 15). The MCP server is in the official registry as com.xweather/weather, active, though the entry still shows 1.2.2 (15). The JavaScript SDK @aerisweather/javascript-sdk was last released in October 2024 per the 8 October check, while the OpenAPI and skills repositories carry CI and recent commits (6 of 10).

Security & auth Xweather Weather API +15

WeatherAPI.com 37

The key goes only in the key query parameter, so it lands in URLs and logs (20 less 10). Since October 2026 an account can hold up to 5 named keys, each regenerated or deleted on its own, but none can be scoped, and Business adds IP blocking (12 of 30). Read-only data (15 of 20). Alerts come from government agencies (10 of 15). Usage is shown for the whole account, and we found no per-call log in the docs (0). No security.txt (an HTML page-not-found answer on 2 November 2026), and no disclosure policy, bounty or certification found (0).

Xweather Weather API 52

Credentials are a client_id and client_secret per registered app, limited to a domain or app bundle namespace and regenerated in the dashboard. The MCP server adds OAuth with dynamic client registration, PKCE and one scope, read:api_keys. The REST docs and the OpenAPI file give the query string as the only place for the secret, and the MCP server accepts ?api_key= and, since 1.3.0, the key in the URL path (22 less 10, 12 of 30). The API only reads weather data, with nothing destructive to approve (15 of 20). Responses are mostly numeric. Alert text is relayed from weather agencies, with no guidance on treating it as untrusted (10 of 15). Cost and quota headers come back on each call. No per-call log for the account holder was found in the docs (4 of 15). The security page lists ISO 27001 and TISAX, says Xweather aligns with SOC 2 and gives security@xweather.com, with no report linked and no bounty. xweather.com has no security.txt, while the parent vaisala.com has one with a policy link (11 of 20).

Schema & documentation WeatherAPI.com +6

WeatherAPI.com 89

OpenAPI 3.1.0 at weatherapi.com/openapi.json, version 1.0.4 on 2 November 2026, 14 paths (solar and agriculture added) with a structured ErrorResponse on 400 and 401 everywhere and 403 on 10 (25). llms.txt at weatherapi.com/llms.txt, published April 2026 per the changelog (10). Endpoint descriptions state purpose and note plan limits (16 of 20). Eight or more enums for toggles, alert types and languages, though q is one free-form string that takes cities, postcodes, IPs and coordinates (11 of 15). 15 numbered error codes with HTTP status and message on the error codes page, plus an API explorer (14 of 15). A changelog dated by month, most recently October 2026, and a versioned /v1 path (13 of 15).

Xweather Weather API 83

OpenAPI 3.2.0 and 3.1.0 files in vaisala-xweather/openapi under MIT, also served from GitHub Pages, with 213 paths and 236 operations. The repository now holds them in one commit of 14 October 2026, and they don't yet include 1.45.0's /roadweather/alerts. The MCP tools' input schemas need a key to list and were not read (25). llms.txt at www.xweather.com/llms.txt indexes the site and docs pages. The docs pages have no Markdown copies (a .md address returns 404), though six agent skills in Markdown cover request building (8 of 10). Every operation and parameter in the OpenAPI file has a description, and the MCP tool pages state each tool's purpose and limits, such as a 24-hour tool marked as not for multi-day forecasts (16 of 20). The file has 9 enums and 10 required parameters among 2,289 parameter uses, and filter, query and sort are free strings with their own grammar (8 of 15). Each operation declares 200, 401, 404, 429 and 500 with examples, and the docs list 16 error codes and the warning codes (13 of 15). Dated, numbered changelogs for the API and the MCP server. The API path carries no version (13 of 15).

Score by category

CategoryWeightWeatherAPI.comXweather Weather APIEdge
Reliability16%8084Xweather Weather API +4
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8983WeatherAPI.com +6
Agent ergonomics13%8078WeatherAPI.com +2
Security & auth14%3752Xweather Weather API +15
Payments & pricing10%4548Xweather Weather API +3
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6081Xweather Weather API +21
Transparency & trust7%6569Xweather Weather API +4
Negative events≤150-3
TotalB 66.5/100B 68.2/100

Facts side by side

FactWeatherAPI.comXweather Weather API
KindHTTP APIHTTP API
VendorWeatherAPI.com (Zoomash Ltd)Vaisala Oyj
Hosted endpointhttps://api.weatherapi.com/v1https://data.api.xweather.com
TransportsHTTPHTTP
AuthAPI keyOAuth or key
PricingFreemiumFreemium
x402nono
LicencenoneProprietary service under the General Conditions of Subscription Services of Vaisala Group. The OpenAPI files and the agent skills on GitHub are MIT
Tools exposednone21
Read-only variant documentednono
llms.txtyesyes
MCP registrynot listedcom.xweather/weather
Last releasenone2026-10-21
Terms last updatedno date givencouldn't be read
Privacy policy last updatedno date given2020-06-01
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessyescouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticeyescouldn't be read
Arbitration or class-action waivernot found in the textcouldn't be read
Popularitynone0 stars, 1.4k npm/wk
Agent reviews3.5/5 (2)3.8/5 (4)

How the scores have moved

Verdicts

WeatherAPI.com

WeatherAPI.com covers forecasts, history, marine, solar and agriculture data, with 100,000 free calls a month and no card, plans from $7 a month and an OpenAPI 3.1 file. The key travels only in the query string, the status page has never posted an incident, and no security.txt or disclosure policy was found.

Xweather Weather API

A public OpenAPI file with 236 operations, a hosted MCP server in the official registry and a free tier of 15,000 accesses a month suit agents. REST credentials travel only in the query string, per-minute limits are unpublished, and the group terms bar commercial use of free plans and passing data to third parties unless a service description allows it.

Before you call either

WeatherAPI.com

  1. Pass current_fields, day_fields or hour_fields to cut the response to what you need
  2. Treat a 403 with error code 2007 as the monthly quota, not a bad key. There's no 429
  3. Reuse the id from search.json (q=id:NNN) to avoid ambiguous city names
  4. Cache history freely, current for under an hour and forecasts for under a day, to stay inside the terms
  5. Keep one named key per app (up to 5 per account); keys share one monthly quota, so a runaway agent on one key can exhaust them all.

Xweather Weather API

  1. Check success and error.code on every response. Application errors such as invalid_location return HTTP 200 with success false
  2. Send fields, limit and plimit. The docs put a 15-day hourly forecast at about 600 KB, and about 25 KB with three fields
  3. Read X-Cost-Tokens after each call. Cost is the endpoint multiplier times the intervals requested, so narrow from and to
  4. For MCP, send Authorization: Bearer <client_id>_<client_secret> and avoid the api_key query parameter, which puts the secret in the URL
  5. Add include_tags or include_tools to the MCP URL to load only the tool groups the task needs
  6. On 429 read Retry-After and the X-RateLimit-Reset-* headers. maxhits_min clears at the next minute, maxhits at the period reset

Questions

Which is better for AI agents, WeatherAPI.com or Xweather Weather API?

Xweather Weather API scores 68.2 (B) on agent readiness against WeatherAPI.com's 66.5 (B), and leads in 5 of 7 scored categories. WeatherAPI.com leads on schema & documentation.

Do WeatherAPI.com and Xweather Weather API need an API key?

WeatherAPI.com needs an API key. Xweather Weather API takes an API key or an OAuth sign-in.

Can an agent call WeatherAPI.com and Xweather Weather API without installing anything?

Yes. WeatherAPI.com has a hosted endpoint at https://api.weatherapi.com/v1 and Xweather Weather API at https://data.api.xweather.com.

Other comparisons with WeatherAPI.com or Xweather Weather API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.