Skip to content

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/searchSearch the NASA Image and Video Library for photos, videos and audio.
GET/nasaimages/assetThe files of one NASA item (image sizes, video or audio), by its NASA id.
GET/nasaimages/albumThe items of one curated NASA album, such as Apollo_11, 100 per page.
GET/nasaimages/metadataThe link to the full metadata file of one NASA item, with its camera and file details.
GET/nasaimages/captionsThe link to the captions file (WebVTT) of one NASA video.

asset

GET/v1/nasaimages/asset

The files of one NASA item (image sizes, video or audio), by its NASA id.

scope social:read1 unitcached 24 h

Parameters

nasaId
string
required
NASA id of the item, such as as11-40-5874.
e.g. as11-40-5874
tunnel
string
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.
proxy
string
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.
profileId
string
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
filesFile[]
urlstring
nasaIdstring
curl "https://api.hoshime.com/v1/nasaimages/asset?nasaId=as11-40-5874" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/album

The items of one curated NASA album, such as Apollo_11, 100 per page.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Album name as NASA writes it, such as Apollo_11.
e.g. Apollo_11
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
centerstring
createdAtstring
descriptionstring
keywordsLabel[]
namestring
mediaTypestring
nasaIdstring
thumbnailUrlstring
titlestring
curl "https://api.hoshime.com/v1/nasaimages/album?name=Apollo_11" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/metadata

The link to the full metadata file of one NASA item, with its camera and file details.

scope social:read1 unitcached 24 h

Parameters

nasaId
string
required
NASA id of the item, such as as11-40-5874.
e.g. as11-40-5874
tunnel
string
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.
proxy
string
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.
profileId
string
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
nasaIdstring
urlstring
curl "https://api.hoshime.com/v1/nasaimages/metadata?nasaId=as11-40-5874" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/captions

The link to the captions file (WebVTT) of one NASA video.

scope social:read1 unitcached 24 h

Parameters

nasaId
string
required
NASA id of a video, such as ksc_080504_apollo.
e.g. ksc_080504_apollo
tunnel
string
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.
proxy
string
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.
profileId
string
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
nasaIdstring
urlstring
curl "https://api.hoshime.com/v1/nasaimages/captions?nasaId=ksc_080504_apollo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open