Sign Up

Log In

Weather

FREEMIUM
By weatherbit
Updated 8 days ago
Data
9.4/10
Popularity Score
59ms
Latency
97%
Success Rate

Weather API Documentation

Current weather data API, and Weather forecast API - Basic access to the Weatherbit.io Weather API.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
GETCurrent Weather Data of a location.
GET5 day Forecast
GETSevere Weather Alerts
GET48 Hour Forecast
GET16 Day Forecast
GETCurrent Weather Data of a location.

Returns the current (most recent) weather observation of a given location

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
lonNUMBER
REQUIREDLongitude
latNUMBER
REQUIREDLatitude
Optional Parameters
unitsSTRING
OPTIONALI = Imperial, S = Scientific, M = Metric (Default)
langENUM
OPTIONALLanguage
Request Snippet
unirest.get("https://weatherbit-v1-mashape.p.rapidapi.com/current?units=undefined&lang=undefined&lon=<required>&lat=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://weatherbit-v1-mashape.p.rapidapi.com/current?units=undefined&lang=undefined&lon=<required>&lat=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard