NASA Image and Video Library

Number of APIs: 4

NASA Image and Video Library

API to access the NASA Image and Video Library site at images.nasa.gov

Use this API to access the NASA Image and Video Library site at images.nasa.gov.

For the latest documentation, please go here.The images.nasa.gov API is organized around REST, has predictable/resource­-oriented URLs and uses HTTP response codes to indicate API errors. This API uses built-­in HTTP features such as HTTP authentication and HTTP verbs, which are understood by many off-­the-­shelf HTTP clients. Please note that JSON is returned by all API responses, including errors. Each of the endpoints described below also contains example snippets which use the curl command­-line tool, Unix pipelines, and the python command­-line tool to output API responses in an easy­ to ­read format.

Available Endpoints

The images API contains 4 endpoints

GET https://images-api.nasa.gov

Endpoints

EndpointDescription
GET /search?q={q}Performing a search
GET /asset/{nasa_id}Retrieving a media asset’s manifest
GET /metadata/{nasa_id}Retrieving a media asset’s metadata location
GET /captions/{nasa_id}Retrieving a video asset’s captions location

For complete usage information and detailed examples, please visit the NASA Image and Video Library API documentation .

  1. Search GET https://images-api.nasa.gov/search?q=mars

  2. Asset GET https://images-api.nasa.gov/asset/as11-40-5874

  3. Metadata GET https://images-api.nasa.gov/metadata/as11-40-5874

  4. Captions GET https://images-api.nasa.gov/captions/as11-40-5874