Coder Social home page Coder Social logo

localhost-nasa-api's Introduction

Nasa API request from localhost

This app consists of two nodejs scripts. both setup a localhost in the router it can be accessed from any device typing the ip address followed by the port [mars rovers: 8080], [pic-of-day:3000] as long as its connected to the same wifi network as the computer its deployed on. the api key is hidden in a .env file, you must sign up in NASA open APIs and then save that key inside a .env file as API_KEY . I'm using raw node js, but you can use express or other framework to enhance it, if you enhance this contribute to this project, I will be updating this soon adding new feautures such as adding color to the photographs using AI trained
with images of deserts. Happy Coding! ๐Ÿ‘จโ€๐Ÿ’ป


My Skills

API Reference

Get all items

  GET path: `mars-photos/api/v1/rovers/curiosity/photos?api_key=`

Rover Cameras

Abbreviation Camera Curiosity Opportunity Spirit
FHAZFront Hazard Avoidance Cameraโœ”โœ”โœ”
RHAZRear Hazard Avoidance Cameraโœ”โœ”โœ”
MASTMast Cameraโœ”
CHEMCAMChemistry and Camera Complexโœ”
MAHLIMars Hand Lens Imagerโœ”
MARDIMars Descent Imagerโœ”
NAVCAMNavigation Cameraโœ”โœ”โœ”
PANCAMPanoramic Cameraโœ”โœ”
MINITESMiniature Thermal Emission Spectrometer (Mini-TES)โœ”โœ”

Querying by Martian sol

Parameter Type Default Description
solintnonesol (ranges from 0 to max found in endpoint)
camerastringallsee table above for abbreviations
pageint125 items per page returned
api_keystringDEMO_KEYapi.nasa.gov key for expanded usage

Picture of the day

HTTP Request

GET https://api.nasa.gov/planetary/apod

Query Parameters

Parameter Type Default Description
date YYYY-MM-DD today The date of the APOD image to retrieve
start_date YYYY-MM-DD none The start of a date range, when requesting date for a range of dates. Cannot be used with date.
end_date YYYY-MM-DD today The end of the date range, when used with start_date.
count int none If this is specified then count randomly chosen images will be returned. Cannot be used with date or start_date and end_date.
thumbs bool False Return the URL of video thumbnail. If an APOD is not a video, this parameter is ignored.
api_key string DEMO_KEY api.nasa.gov key for expanded usage

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

API_KEY

Authors

โ—‰ @markkdamm markkdamm markkdamm markkdamm

Feedback

If you have any feedback, please reach out to us at [email protected]

localhost-nasa-api's People

Contributors

markkdamm avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.