Sign Up

Log In

NasaAPI

FREE
By dimas
Updated a month ago
Science
8.8/10
Popularity Score
555ms
Latency
100%
Success Rate

NasaAPI API Documentation

Get NASA's collection of asteroids and space pictures.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTgetAsteroidStats
POSTgetAsteroids
POSTgetClosestAsteroids
POSTgetEONETCategories
POSTgetEONETEvents
POSTgetEONETLayers
POSTgetEPICEarthImagery
POSTgetEarthAssets
POSTgetEarthImagery
POSTgetMarsRoverPhotos
POSTgetPictureOfTheDay
POSTgetSingleAsteroid
POSTgetAsteroidStats

Get the Near Earth Object data set totals.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
apiKeySTRING
OPTIONALYour ApiKey obtained from NASA for expanded usage. You do not need to authenticate in order to explore the NASA data. However, if you will be intensively using the APIs to, say, support a mobile application, then you should sign up for a NASA developer key.
Request Snippet
unirest.post("https://NasaAPIdimasV1.p.rapidapi.com/getAsteroidStats")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("apiKey=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://NasaAPIdimasV1.p.rapidapi.com/getAsteroidStats")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("apiKey=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