Overview

APIXU (now rebranded as Weatherstack) is a weather data API that provides current conditions, forecasts, and historical weather for locations around the world. You call the API with your key and a city name or coordinates to receive structured JSON weather data. It is beginner-friendly thanks to its simple query format and clear documentation.

Beginner Tip

APIXU has been rebranded to Weatherstack, so new sign-ups and active keys are managed at weatherstack.com. Use the same endpoint structure with your Weatherstack access_key to continue accessing weather data.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

temperature
weather conditions
humidity
wind speed
forecast data
Use case: Integrate weather data into web and mobile applications

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "location": "Tokyo",
  "temperature": {
    "current": 22,
    "feels_like": 24,
    "min": 18,
    "max": 26
  },
  "condition": "Partly Cloudy",
  "humidity": 65,
  "wind": {
    "speed": 12,
    "direction": "NE"
  },
  "forecast": [
    {
      "date": "2025-01-16",
      "high": 25,
      "low": 17,
      "condition": "Sunny"
    }
  ]
}

Field Reference

location.name Resolved location name matching your query input.
current.temperature Current air temperature in Celsius at the queried location.
current.weather_descriptions Array of text descriptions of current weather conditions.
current.wind_speed Wind speed in km/h at the current location.
current.humidity Relative humidity percentage at the current location.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.apixu.com/doc/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

101 invalid_access_key Using an old APIXU key that is no longer valid after the rebranding.
Sign up or log in at weatherstack.com to get a new access key and use the updated API endpoint.
615 no results for location The city name or coordinates do not match any known location.
Try a different spelling, use a nearby major city, or switch to latitude/longitude coordinates for precise lookup.
105 https_access_restricted HTTPS is not available on the free tier of Weatherstack.
Use http:// in your request URL or upgrade your subscription to unlock HTTPS access.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Weather
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →