DEMO_KEY Rate Limits ---> In documentation examples, the special DEMO_KEY api key is used. This API key can be used for initially exploring APIs prior to signing up, but it has much lower rate limits, so you’re encouraged to signup for your own API key if you plan to use the API (signup is quick and easy). The rate limits for the DEMO_KEY are: ----> Hourly Limit: 30 requests per IP address per hour Daily Limit: 50 requests per IP address per day: ----> 1.Fetches the Astronomy Picture of the Day.

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 { "date": "2023-06-01", "explanation": "This is the Astronomy Picture of the Day explanation.", "hdurl": "https://apod.nasa.gov/apod/image/2306/AstronomyPicture.jpg", "title": "Astronomy Picture of the Day", "url": "https://apod.nasa.gov/apod/image/2306/AstronomyPicture.jpg" },

Fetches Near Earth Object data for a specified date range.

https://api.nasa.gov/neo/rest/v1/feed?start_date={start_date}&end_date={end_date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 { "near_earth_objects": { "2023-06-01": [ { "id": "3729835", "name": "2015 JU", "nasa_jpl_url": "http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=3729835", "absolute_magnitude_h": 24.5, "estimated_diameter": { "kilometers": { "estimated_diameter_min": 0.037, "estimated_diameter_max": 0.082 } }, "is_potentially_hazardous_asteroid": false, "close_approach_data": [ { "close_approach_date": "2023-06-01", "relative_velocity": { "kilometers_per_hour": "45332.9028132998" }, "miss_distance": { "astronomical": "0.1013487645" } } ] } ] } },

Fetches photos taken by Mars rovers on a specific sol (Martian day) and camera.

https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?sol={sol}&camera={camera}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "photos": [ { "id": 102693, "sol": 1000, "camera": { "id": 20, "name": "FHAZ", "rover_id": 5, "full_name": "Front Hazard Avoidance Camera" }, "img_src": "http://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FRB_493237144EDR_F0501338FHAZ00323M_.JPG", "earth_date": "2015-05-30", "rover": { "id": 5, "name": "Curiosity", "landing_date": "2012-08-06", "launch_date": "2011-11-26", "status": "active" } } ] },

Fetches the latest weather data from Mars.

https://api.nasa.gov/insight_weather/?api_key=DEMO_KEY&feedtype=json&ver=1.0

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 { "sol_keys": [ "1000", "1001", "1002" ], "1000": { "AT": { "av": -60.5, "ct": 243, "mn": -83.1, "mx": -18.1 }, "PRE": { "av": 732.5, "ct": 243, "mn": 699.2, "mx": 765.8 }, "WD": { "most_common": { "compass_degrees": 247.6, "compass_point": "WSW", "compass_right": 0.55, "compass_up": 0.83 } } } },

Fetches satellite imagery for a specific location and date.

https://api.nasa.gov/planetary/earth/imagery?lon={longitude}&lat={latitude}&date={date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 { "date": "2023-06-01", "url": "https://earth.nasa.gov/api/v1/satellite-imagery?lon=100.75&lat=1.5&date=2023-06-01" }, "des": "Fetches satellite imagery for a specific location and date." },

Fetches available assets for a specific location and date range.

https://api.nasa.gov/planetary/earth/assets?lon={longitude}&lat={latitude}&begin={begin}&end={end}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 11 12 { "results": [ { "id": "LC8_L1TP_001002_20170612_20170616_01_T1", "acquisition_date": "2017-06-12" }, { "id": "LC8_L1TP_001002_20170527_20170603_01_T1", "acquisition_date": "2017-05-27" } ] },

Fetches Coronal Mass Ejections (CMEs) data.

https://api.nasa.gov/DONKI/CME?startDate={start_date}&endDate={end_date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 { "activityID": "2023-06-01", "catalog": "M2M_CATALOG", "startTime": "2023-06-01T02:18Z", "sourceLocation": "N20W30", "activeRegionNum": "12345", "link": "https://kauai.ccmc.gsfc.nasa.gov/DONKI/view/CME/17338/-1" },

Fetches Solar Flare data.

https://api.nasa.gov/DONKI/FLR?startDate={start_date}&endDate={end_date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "flrID": "2023-06-01", "instruments": [ { "displayName": "GOES" } ], "beginTime": "2023-06-01T00:00Z", "peakTime": "2023-06-01T00:10Z", "endTime": "2023-06-01T00:20Z", "classType": "C1.0", "sourceLocation": "N10W10", "activeRegionNum": "12345", "link": "https://kauai.ccmc.gsfc.nasa.gov/DONKI/view/FLR/17338/-1" },

Fetches Solar Energetic Particle (SEP) data.

https://api.nasa.gov/DONKI/SEP?startDate={start_date}&endDate={end_date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 6 7 8 9 10 { "sepID": "2023-06-01", "instruments": [ { "displayName": "GOES" } ], "eventTime": "2023-06-01T00:00Z", "link": "https://kauai.ccmc.gsfc.nasa.gov/DONKI/view/SEP/17338/-1" }

Fetches Geomagnetic Storm data.

https://api.nasa.gov/DONKI/GST?startDate={start_date}&endDate={end_date}&api_key=DEMO_KEY

Example-> JSON data

1 2 3 4 5 { "gstID": "2023-06-01", "startTime": "2023-06-01T00:00Z", "link": "https://kauai.ccmc.gsfc.nasa.gov/DONKI/view/GST/17338/-1" },