APOD
nasa · Media
This endpoint structures the APOD imagery and associated metadata so that it can be repurposed for other applications. In addition, if the concept_tags parameter is set to True, then keywords derived from the image explanation are returned. These keywords could be used as auto-generated hashtags for twitter or instagram feeds; but generally help with discoverability of relevant imagery
Authentication
Sample Requests
Returns the picture of the day
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod?hd=true&date=2026-06-02"
import requests
params = {
"hd": "true",
"date": "2026-06-02"
}
response = requests.get(
"https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod');
url.searchParams.set('hd', 'true');
url.searchParams.set('date', '2026-06-02');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod")
q := baseURL.Query()
q.Set("hd", "true")
q.Set("date", "2026-06-02")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod")
uri.query = URI.encode_www_form({
"hd" => "true",
"date" => "2026-06-02"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/apod?" . http_build_query([
"hd" => "true",
"date" => "2026-06-02"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with APOD?
APOD is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. APOD is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?