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.
We'll cover the following...
Asteroids are large space rocks that have been floating in space since the
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 |
| String | Required | The API key used to validate the request |
The code below shows us ...