Sign Up

Log In

Weather

FREE
By weatherbit
Updated 6 hours ago
Data
8.4/10
Popularity Score
68ms
Latency
95%
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
GETCurrent Weather Data of a location.

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

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
latSTRING
REQUIRED
lonSTRING
REQUIRED
Optional Parameters
unitsSTRING
OPTIONALI = Imperial, S = Scientific, M = Metric (Default)
Request Snippet
unirest.get("https://weatherbit-v1-mashape.p.rapidapi.com/current?lat={lat}&lon={lon}?units=undefined")
.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?lat={lat}&lon={lon}?units=undefined")
.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 freeto 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