KnowSci
Home
NASA (NEO) API
This web application leverages NASA's Near-Earth Object (NEO) API to retrieve and display information about asteroids that have passed near Earth on a specified date. Users can input a date in the format YYYY-MM-DD, and the page will fetch data from NASA's API to present the top 5 largest objects by absolute magnitude.
The project is built using HTML, CSS, and JavaScript, with Bootstrap for responsive design. The page dynamically fetches and processes data using JavaScript's fetch() API and organizes it with array manipulation and sorting algorithms.
The goal of this project is to provide an interactive way for users to explore near-Earth objects. The application presents key data such as object name, ID, magnitude, estimated diameter, and whether the object is potentially hazardous.
Data is retrieved from NASA's NEO API using the endpoint: https://api.nasa.gov/neo/rest/v1/feed?start_date=${input}&end_date=${input}&api_key=YOUR_API_KEY, ensuring accurate and up-to-date asteroid information.
Near Earth Objects:
Enter date "(E.g. 2023-12-13)"
Submit
Biggest Object
Object Name:
ID:
Object Magnitude:
Estimated Diameter km:
Potential danger?:
2nd
3rd
4th
5th