Get an API Key from NASA

You must specify an API key every time you invoke a NASA REST API. You can get this key from NASA.

  1. Go to https://api.nasa.gov.
  2. Enter your First Name, Last Name, and Email, then click Signup.
  3. Copy the response and save it to a text file. The response is similar to this example:
    Your API key for me@example.com is:
    YbbMNWeWX2BqxoPKXEiWWcKMgNlUHhHXgqWG5XBt
    
    You can start using this key to make web service requests. Simply pass your key in the URL when making a web request. Here's an example:
    
    https://api.nasa.gov/planetary/apod?api_key=YbbMNWeWX2BqxoPKXEiWWcKMgNlUHhHXgqWG5XBt
    
    For additional support, please contact us. When contacting us, please tell us what API you're accessing and provide the following account details so we can quickly find you:
    
    Account Email: me@example.com
    Account ID: b4345628-22cd-4a1d-b610-3d9ec5ba95fd

    You need your API key to run the Integration Procedure.

  4. (Optional) To see the types of data you can retrieve from NASA, click Browse APIs.