公
NASA Image and Video Library API
5 endpointsGovernment & Open DataUSsocial:read5 real examples
Returns NASA photos, videos and audio from search, albums, asset files, metadata links and captions.
View as Markdown| GET | /nasaimages/search | Search the NASA Image and Video Library for photos, videos and audio. |
| GET | /nasaimages/asset | The files of one NASA item (image sizes, video or audio), by its NASA id. |
| GET | /nasaimages/album | The items of one curated NASA album, such as Apollo_11, 100 per page. |
| GET | /nasaimages/metadata | The link to the full metadata file of one NASA item, with its camera and file details. |
| GET | /nasaimages/captions | The link to the captions file (WebVTT) of one NASA video. |
search
GET
/v1/nasaimages/searchSearch the NASA Image and Video Library for photos, videos and audio.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Words to search for, such as apollo 11. e.g. apollo 11 |
mediaTypestring | Only this kind of media: image, video or audio.imagevideoaudioe.g. image |
limitinteger | Items per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
center | string |
createdAt | string |
description | string |
keywords | Label[] |
name | string |
mediaType | string |
nasaId | string |
thumbnailUrl | string |
title | string |
curl "https://api.hoshime.com/v1/nasaimages/search?query=apollo+11&mediaType=image" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nasaimages/search?query=apollo+11&mediaType=image", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nasaimages/search?query=apollo+11&mediaType=image", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "center": "JSC", "createdAt": "1969-07-11T00:00:00Z", "description": "Personnel atop the 402-ft. Mobile Service Structure look back at the Apollo 11 spacecraft as the tower is moved away during a Countdown Demo…", "keywords": [ { "name": "Apollo" }, { "name": "Apollo 11" } ], "mediaType": "image", "nasaId": "jsc2007e034221", "thumbnailUrl": "https://images-assets.nasa.gov/image/jsc2007e034221/jsc2007e034221~thumb.jpg", "title": "Apollo 11 spacecraft pre-launch" }, { "center": "HQ", "createdAt": "2019-07-19T00:00:00Z", "description": "A small rover is driven over a visitor at the Apollo 11 50th Anniversary celebration on the National Mall, Friday, July 19, 2019 in Washingt…", "keywords": [ { "name": "Apollo 11" }, { "name": "Apollo 11 50th Anniversary" } ], "mediaType": "image", "nasaId": "NHQ201907190151", "thumbnailUrl": "https://images-assets.nasa.gov/image/NHQ201907190151/NHQ201907190151~thumb.jpg", "title": "Apollo 11 50th Anniversary Celebration" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "nasaimages", "requestId": "req_2Xb9kQ…", "units": 1 } }
asset
GET
/v1/nasaimages/assetThe files of one NASA item (image sizes, video or audio), by its NASA id.
scope social:read1 unitcached 24 h
Parameters
nasaIdstring required | NASA id of the item, such as as11-40-5874. e.g. as11-40-5874 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
files | File[] |
url | string |
nasaId | string |
curl "https://api.hoshime.com/v1/nasaimages/asset?nasaId=as11-40-5874" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nasaimages/asset?nasaId=as11-40-5874", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nasaimages/asset?nasaId=as11-40-5874", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "files": [ { "url": "https://images-assets.nasa.gov/image/as11-40-5874/as11-40-5874~orig.jpg" }, { "url": "https://images-assets.nasa.gov/image/as11-40-5874/as11-40-5874~large.jpg" } ], "nasaId": "as11-40-5874" }, "meta": { "cached": false, "endpoint": "asset", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nasaimages", "requestId": "req_2Xb9kQ…", "units": 1 } }
album
GET
/v1/nasaimages/albumThe items of one curated NASA album, such as Apollo_11, 100 per page.
scope social:read1 unitcached 1 hpaginated
Parameters
namestring required | Album name as NASA writes it, such as Apollo_11. e.g. Apollo_11 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
center | string |
createdAt | string |
description | string |
keywords | Label[] |
name | string |
mediaType | string |
nasaId | string |
thumbnailUrl | string |
title | string |
curl "https://api.hoshime.com/v1/nasaimages/album?name=Apollo_11" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nasaimages/album?name=Apollo_11", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nasaimages/album?name=Apollo_11", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "center": "KSC", "createdAt": "2004-08-06T00:00:00Z", "description": "On July 20, 1969, the world watched in awe as humans made history on the Moon. Thirty-five years ago, Apollo 11 proved to the world that hum…", "keywords": [ { "name": "Apollo" }, { "name": "Apollo_11" } ], "mediaType": "video", "nasaId": "ksc_080504_apollo", "thumbnailUrl": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo~thumb.jpg", "title": "KSC-04-S-00294" }, { "center": "KSC", "createdAt": "2004-08-04T00:00:00Z", "description": "NASA's Lunar Sample Laboratory Facility is home to the most cherished -- and scientifically important -- relics of the Apollo program. Now, …", "keywords": [ { "name": "research" }, { "name": "lunar_soil" } ], "mediaType": "video", "nasaId": "ksc_073004_lunar_rocks", "thumbnailUrl": "https://images-assets.nasa.gov/video/ksc_073004_lunar_rocks/ksc_073004_lunar_rocks~thumb.jpg", "title": "KSC-04-S-00284" } ], "meta": { "cached": false, "endpoint": "album", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "nasaimages", "requestId": "req_2Xb9kQ…", "units": 1 } }
metadata
GET
/v1/nasaimages/metadataThe link to the full metadata file of one NASA item, with its camera and file details.
scope social:read1 unitcached 24 h
Parameters
nasaIdstring required | NASA id of the item, such as as11-40-5874. e.g. as11-40-5874 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
nasaId | string |
url | string |
curl "https://api.hoshime.com/v1/nasaimages/metadata?nasaId=as11-40-5874" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nasaimages/metadata?nasaId=as11-40-5874", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nasaimages/metadata?nasaId=as11-40-5874", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "nasaId": "as11-40-5874", "url": "https://images-assets.nasa.gov/image/as11-40-5874/metadata.json" }, "meta": { "cached": false, "endpoint": "metadata", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nasaimages", "requestId": "req_2Xb9kQ…", "units": 1 } }
captions
GET
/v1/nasaimages/captionsThe link to the captions file (WebVTT) of one NASA video.
scope social:read1 unitcached 24 h
Parameters
nasaIdstring required | NASA id of a video, such as ksc_080504_apollo. e.g. ksc_080504_apollo |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
nasaId | string |
url | string |
curl "https://api.hoshime.com/v1/nasaimages/captions?nasaId=ksc_080504_apollo" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nasaimages/captions?nasaId=ksc_080504_apollo", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nasaimages/captions?nasaId=ksc_080504_apollo", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "nasaId": "ksc_080504_apollo", "url": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo.vtt" }, "meta": { "cached": false, "endpoint": "captions", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nasaimages", "requestId": "req_2Xb9kQ…", "units": 1 } }