Sign Up

Log In

Darksky

FREE
By zakutynsky
Updated a month ago
Weather
7.8/10
Popularity Score
81ms
Latency
100%
Success Rate

Darksky API Documentation

Weather forecasting and visualization.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTgetForecastRequest
POSTgetTimeMachineRequest
POSTgetForecastRequest

A Forecast Request returns the current weather conditions, a minute-by-minute forecast for the next hour (where available), an hour-by-hour forecast for the next 48 hours, and a day-by-day forecast for the next week.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDYour Dark Sky secret key. (Your secret key must be kept secret; in particular, do not embed it in JavaScript source code that you transmit to clients.)
coordinatesMAP
REQUIREDLocation
Optional Parameters
excludeLIST
OPTIONALExclude some number of data blocks from the API response. This is useful for reducing latency and saving cache space. The value blocks should be a comma-delimeted list (without spaces) of any of the following: currently, minutely, hourly, daily, alerts, flags
unitsSELECT
OPTIONALReturn weather conditions in the requested units. [units] should be one of the following: auto, ca, uk2, us, si
hourlyBOOLEAN
OPTIONALWhen present, return hour-by-hour data for the next 168 hours, instead of the next 48.
langSTRING
OPTIONALReturn summary properties in the desired language. (Note that units in the summary will be set according to the units parameter, so be sure to set both parameters appropriately.). See at https://darksky.net/dev/docs/forecast for details
Request Snippet
unirest.post("https://DarkskyzakutynskyV1.p.rapidapi.com/getForecastRequest")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("exclude=undefined")
.send("units=undefined")
.send("hourly=undefined")
.send("lang=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.post("https://DarkskyzakutynskyV1.p.rapidapi.com/getForecastRequest")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("exclude=undefined")
.send("units=undefined")
.send("hourly=undefined")
.send("lang=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