Zum Inhalt springen
GET /v1/search

Search the media library

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/nasa-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/nasa-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nasa-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nasa-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/nasa-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 12,
        "query": "apollo 11",
        "total": 1510,
        "results": [
            {
                "title": "Apollo 11 spacecraft pre-launch",
                "center": "JSC",
                "nasa_id": "jsc2007e034221",
                "keywords": [
                    "Apollo",
                    "Apollo 11",
                    "Launch"
                ],
                "thumbnail": "https://images-assets.nasa.gov/image/jsc2007e034221/jsc2007e034221~medium.jpg",
                "media_type": "image",
                "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 Demonstration Test. Photo filed 11 July 1969. ",
                "date_created": "1969-07-11T00:00:00Z",
                "photographer": null
            },
            {
                "title": "Apollo 11 50th Anniversary Celebration",
                "center": "HQ",
                "nasa_id": "NHQ201907190146",
                "keywords": [
                    "Apollo 11",
                    "Apollo 11 50th Anniversary",
                    "DC",
                    "Washington"
                ],
                "thumbnail": "https://images-assets.nasa.gov/image/NHQ201907190146/NHQ201907190146~medium.jpg",
                "media_type": "image",
                "description": "A visitor learns about circuits at the Apollo 11 50th Anniversary celebration on the National Mall, Friday, July 19, 2019 in Washington. Apollo 11 was the first mission to land astronauts on the Moon and launched on July 16, 1969 with astronauts Neil Armstrong, Michael Collins, and Buzz Aldrin. Photo Credit: (NASA/Aubrey Gemignani)",
                "date_created": "2019-07-19T00:00:00Z",
                "photographer": "NASA/Aubrey Gemignani"
            },
            {
                "title": "Apollo 11 50th Anniversary Celebration",
                "center": "HQ",
                "nasa_id": "NHQ201907180108",
                "keywords": [
                    "Apollo 11",
                    "Apollo 11 50th Anniversary",
                    "DC",
                    "National Mall",
                    "Washington"
                ],
                "thumbnail": "https://images-assets.nasa.gov/image/NHQ201907180108/NHQ201907180108~medium.jpg",
                "media_type": "image",
                "description": "A visitor explores the Journey to Tomorrow exhibit at the Apollo 11 50th Anniversary celebration on the National Mall, Thursday, July 18, 2019 in Washington. Apollo 11 was the first mission to land astronauts on the Moon and launched on July 16, 1969 with astronauts Neil Armstrong, Michael Collins, and Buzz Aldrin. Photo Credit: (NASA/Aubrey Gemignani)",
                "date_created": "2019-07-18T00:00:00Z",
                "photographer": "NASA/Aubrey Gemignani"
            },
            {
                "title": "Apollo 11 50th Anniversary Celeb
…