menu

Home

search

Weather

Introduction

The Ambee weather API delivers real-time, hyper-local weather data including humidity, cloud cover, precipitation intensity, UV index, wind attributes and much more, for locations worldwide. It provides comprehensive global coverage across over 150 countries with a high spatial resolution of 500 meters (0.3 miles).

Replace the ‘icon_name’ in the URL with following icon values, which are provided as part of API response.

Icon values: a. cloudy b. partly-cloudy c. clear d. snow e. rain f. fog.

Weather latest

Provides real-time weather data for over 150 countries with a specified resolution of 500 meters (0.3 miles).

Latest - Geospatial search

Retrieve weather data using geographic coordinates (latitude/longitude).

Try Playgroundarr
GET
https://api.ambeedata.com/weather/latest/by-lat-lng
Details
Request
Response

Headers

x-api-key

string
required
Unique key obtained after signup.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Content-type

string
optional
Default Value:
application/JSON

Accept-Language

string
optional
Specify your language with English as the default language.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Query Parameters

lat

number
required
Latitude of the search location.
Allowed Value:
Latitude must be between -90 and 90

lng

number
required
Longitude of the search location.
Allowed Value:
Longitude must be between -180 and 180

units

string
optional
Returns the weather parameters in SI units if 'si' is passed in the query parameter.
SAMPLE URL
https://api.ambeedata.com/weather/latest/by-lat-lng?lat=12&lng=77
SAMPLE REQUEST
const http = require("https"); const options = { "method": "GET", "hostname": "api.ambeedata.com", "port": null, "path": "/weather/latest/by-lat-lng?lat=12.9889055&lng=77.574044", "headers": { "x-api-key": "API_KEY", "Content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();

Weather historical

Access historical weather data for your selected timeframe across the supported regions.

Access 30+ years of historical weather data Download historical data.

Historical - Geospatial search

Get historical weather data using geographic coordinates (latitude/longitude).

Try Playgroundarr
GET
https://api.ambeedata.com/weather/history/by-lat-lng
Details
Request
Response

Headers

x-api-key

string
required
Unique key obtained after signup.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Content-type

string
optional
Default Value:
application/JSON

Accept-Language

string
optional
Specify your language with English as the default language.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Query Parameters

lat

number
required
Latitude of the search location.
Allowed Value:
Latitude must be between -90 and 90

lng

number
required
Longitude of the search location.
Allowed Value:
Longitude must be between -180 and 180

from

date
required
Starting timestamp of the search period.
Format:
YYYY-MM-DD hh:mm:ss

to

date
required
Ending timestamp of the search period.
Format:
YYYY-MM-DD hh:mm:ss

units

string
optional
Returns the weather parameters in SI units if 'si' is passed in the query parameter.
SAMPLE URL
https://api.ambeedata.com/weather/history/by-lat-lng?lat=12&lng=73&from=2020-07-13 12:16:44&to=2020-07-18 08:16:44
SAMPLE REQUEST
const http = require("https"); const options = { "method": "GET", "hostname": "api.ambeedata.com", "port": null, "path": "/weather/history/by-lat-lng?lat=12.9889055&lng=77.574044&from=2020-07-13 12:16:44&to=2020-07-14 12:16:44", "headers": { "x-api-key": "API_KEY", "Content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();

Weather forecast

Provides a forecast for weather parameters for the next 72 hours.

To get data beyond 72 hours, reach out to us.Get in touch.

Forecast - Geospatial Search

Retrieve forecast weather data using geographic coordinates (latitude/longitude).

Try Playgroundarr
GET
https://api.ambeedata.com/weather/forecast/by-lat-lng
Details
Request
Response

Headers

x-api-key

string
required
Unique key obtained after signup.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Content-type

string
optional
Default Value:
application/JSON

Accept-Language

string
optional
Specify your language with English as the default language.
Allowed Value:
LANGUAGE_CODE
Default Value:
English

Query Parameters

lat

number
required
Latitude of the search location.
Allowed Value:
Latitude must be between -90 and 90

lng

number
required
Longitude of the search location.
Allowed Value:
Longitude must be between -180 and 180

units

string
optional
Returns the weather parameters in SI units if 'si' is passed in the query parameter.
SAMPLE URL
https://api.ambeedata.com/weather/forecast/by-lat-lng?lat=12&lng=73
SAMPLE REQUEST
const http = require("https"); const options = { "method": "GET", "hostname": "api.ambeedata.com", "port": null, "path": "/weather/forecast/by-lat-lng?lat=12.9889055&lng=77.574044", "headers": { "x-api-key": "API_KEY", "Content-type": "application/json" } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();

Was this page helpful?
happy-emoji

Yes

sad-emoji

No