Search⌘ K

Near-Earth Asteroids

Explore how to use NASA's NeoWs API to fetch comprehensive data on near-Earth asteroids. Understand endpoints for retrieving grouped data by dates and details on specific asteroids. This lesson provides hands-on JavaScript examples to help you access and interpret real asteroid data from NASA archives.

Asteroids are large space rocks that have been floating in space since the Big BangAccording to many scientific theories, Big Bang is the event of the expansion of matter from a highly dense singularity and it marks the beginning of the universe.. Some of those asteroids are hovering close to our planet. NASA has data on more than 90% of the asteroids floating close to Earth. In this lesson, we’ll look at the Asteroids NeoWS API that provides access to this information.

All asteroid data

The base URL https://api.nasa.gov/neo/rest/v1/neo/browse is used to get all the available information about near-Earth asteroids from the NASA archives.

This endpoint has only one query parameter, shown in the following table:

Request Parameters

Query Parameters

Type

Category

Description

api_key

String

Required

The API key used to validate the request

The code below shows us ...