API Documentation

Build powerful weather applications with our comprehensive REST API

Quick Start

Get started with the Rutuganit API in minutes. No authentication required for basic requests.

https://api.rutuganit.com/weather/current?latitude=51.5074&longitude=-0.1278

Base URL

https://api.rutuganit.com

Endpoints

GET/api/weather/current

Get current weather data for a specific location

Parameters

latitudenumberrequired

Latitude of the location

longitudenumberrequired

Longitude of the location

Request

GET /api/weather/current?latitude=51.5074&longitude=-0.1278

Response

{
  "temperature": 15.2,
  "weather_code": 2,
  "wind_speed": 12.5,
  "humidity": 65,
  "pressure": 1013
}
GET/api/weather/forecast

Get weather forecast for the next 7 days

Parameters

latitudenumberrequired

Latitude of the location

longitudenumberrequired

Longitude of the location

daysnumber

Number of days (1-7, default: 7)

Request

GET /api/weather/forecast?latitude=51.5074&longitude=-0.1278&days=7

Response

{
  "daily": {
    "time": [
      "2025-10-30",
      "2025-10-31"
    ],
    "temperature_max": [
      16,
      14
    ],
    "temperature_min": [
      10,
      8
    ],
    "weather_code": [
      2,
      3
    ]
  }
}
GET/api/satellite/imagery

Get satellite imagery data for a location

Parameters

latitudenumberrequired

Latitude of the location

longitudenumberrequired

Longitude of the location

layerstring

Layer type: clouds, temperature, precipitation

Request

GET /api/satellite/imagery?latitude=51.5074&longitude=-0.1278&layer=clouds

Response

{
  "layer": "clouds",
  "coverage": 65,
  "timestamp": "2025-10-30T12:00:00Z"
}

Code Examples

JavaScript

const response = await fetch( 'https://api.rutuganit.com/weather/current?latitude=51.5074&longitude=-0.1278' ); const data = await response.json(); console.log(data.temperature);

Python

import requests response = requests.get( 'https://api.rutuganit.com/weather/current', params={'latitude': 51.5074, 'longitude': -0.1278} ) data = response.json() print(data['temperature'])

cURL

curl -X GET \ 'https://api.rutuganit.com/weather/current?latitude=51.5074&longitude=-0.1278' \ -H 'Accept: application/json'

HTTP Status Codes

200

Success - Request completed successfully

400

Bad Request - Invalid parameters provided

401

Unauthorized - Authentication required

404

Not Found - Endpoint does not exist

429

Too Many Requests - Rate limit exceeded

500

Server Error - Internal server error

Rate Limiting

API requests are rate limited to ensure fair usage and service stability.

Free Tier

1,000 requests/day

Pro Tier

100,000 requests/day

Error Handling

{
  "error": {
    "code": "INVALID_COORDINATES",
    "message": "Latitude must be between -90 and 90",
    "status": 400
  }
}
Built with v0