Skip to main content

Hypertext Protocol (HTTP): 3. NASA Astronomy Picture of the Day

Hypertext Protocol (HTTP)
3. NASA Astronomy Picture of the Day
  • Show the following:

    Annotations
    Resources
  • Adjust appearance:

    Font
    Font style
    Color Scheme
    Light
    Dark
    Annotation contrast
    Low
    High
    Margins
  • Search within:
    • Notifications
    • Privacy
  • Project HomeTools and Techniques in Software Engineering
  • Projects
  • Learn more about Manifold

Notes

table of contents
  1. Client-Server Communication
  2. Introduction to Hypertext Protocol (HTTP)
  3. 1. Specifications
  4. 2. Build an API Client
  5. 3. NASA Astronomy Picture of the Day
  6. 4. Python Flask
  7. 5. Bibliography

Example: NASA API

NASA has several APIs to allow people from all over the world to access data from their databases. This enables people to create apps that can grab data directly from NASA's servers. The APIs are listed at NASA's website: https://api.nasa.gov/

Do you have to sign up for an API Key? No, if you’re staying within the DEMOKEY rate limits listed here `https://api.nasa.gov/api.html#demokey-rate-limits`

Tip: You can use a JSON viewer to read contents of an HTTP Request

Raw JSON

The screenshots on the following pages are from using https://jsoneditoronline.org/ to prettify the HTTP Response.

Click to format

Formatted more nicely

Json Editor: Formatted JSON on the right

Reading the server response

Text goes here.

Annotate

Next Chapter
5. Bibliography
PreviousNext
Web Technology
Powered by Manifold Scholarship. Learn more at
Opens in new tab or windowmanifoldapp.org