This page provides examples of how to use our weather API. The API allows you to fetch weather data from various sources and integrate it into your applications.

Example Request

Here's a simple example of a GET request to the weather API:

GET /weather?location=New York&units=metric

This request would return the current weather in New York using the metric system.

Example Response

The API response will be in JSON format:

{
  "location": "New York",
  "current": {
    "temp": 15,
    "weather": "Sunny",
    "description": "It is currently sunny with a temperature of 15°C."
  }
}

Features

  • Real-time weather data
  • Multiple weather sources
  • Customizable units (metric or imperial)

Weather Forecast

For more information on how to use the weather API, please visit our API Documentation.