{
 "openapi": "3.1.0",
 "info": {
  "title": "Space Radar",
  "version": "1.0.0",
  "description": "Read-only access to what Space Radar publishes, with sources. No key."
 },
 "servers": [
  {
   "url": "https://mcp.spaceradar.ai"
  }
 ],
 "paths": {
  "/api/v1/sr_search": {
   "post": {
    "operationId": "sr_search",
    "summary": "Search Space Radar",
    "description": "Find anything Space Radar publishes: objects in the sky, guided trips, Lab simulators, articles, 3D models, films, games, sky events and pages. Start here: it returns the ids the other tools take, and links.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "What to look for, in plain words or a name."
         },
         "kinds": {
          "type": "array",
          "items": {
           "type": "string",
           "enum": [
            "object",
            "trip",
            "lab",
            "article",
            "model",
            "video",
            "game",
            "event",
            "country",
            "launch-year",
            "page"
           ]
          },
          "minItems": 1,
          "maxItems": 11,
          "description": "Only these kinds."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 8,
          "description": "How many results, 8 by default."
         },
         "cursor": {
          "type": "string",
          "maxLength": 80,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "next_cursor of the previous answer, with the same other arguments."
         }
        },
        "required": [
         "query"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_search_get",
    "summary": "Search Space Radar",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": true,
      "description": "What to look for, in plain words or a name.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "kinds",
      "in": "query",
      "required": false,
      "description": "Only these kinds.",
      "schema": {
       "type": "array",
       "items": {
        "type": "string",
        "enum": [
         "object",
         "trip",
         "lab",
         "article",
         "model",
         "video",
         "game",
         "event",
         "country",
         "launch-year",
         "page"
        ]
       },
       "minItems": 1,
       "maxItems": 11
      },
      "style": "form",
      "explode": false
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 8 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor of the previous answer, with the same other arguments.",
      "schema": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_object": {
   "post": {
    "operationId": "sr_object",
    "summary": "Get one record",
    "description": "Everything published about one thing: what it is, its facts with their sources, what is measured, modelled or illustrative, and its link on the live 3D map.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string",
          "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
          "maxLength": 112,
          "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
         }
        },
        "required": [
         "id"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_object_get",
    "summary": "Get one record",
    "parameters": [
     {
      "name": "id",
      "in": "query",
      "required": true,
      "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_compare": {
   "post": {
    "operationId": "sr_compare",
    "summary": "Compare records",
    "description": "Put the published facts of two to four things side by side. Facts one of them does not have stay empty.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "ids": {
          "type": "array",
          "items": {
           "type": "string",
           "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
           "maxLength": 112,
           "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
          },
          "minItems": 2,
          "maxItems": 4
         }
        },
        "required": [
         "ids"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_compare_get",
    "summary": "Compare records",
    "parameters": [
     {
      "name": "ids",
      "in": "query",
      "required": true,
      "schema": {
       "type": "array",
       "items": {
        "type": "string",
        "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
        "maxLength": 112,
        "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
       },
       "minItems": 2,
       "maxItems": 4
      },
      "style": "form",
      "explode": false
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_trips": {
   "post": {
    "operationId": "sr_trips",
    "summary": "Find guided trips",
    "description": "Guided trips through the 3D map, by topic. Each opens in a browser with no account.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "topic": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A subject, a place or a mission. All trips when left out."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 10,
          "description": "How many results, 10 by default."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_trips_get",
    "summary": "Find guided trips",
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "A subject, a place or a mission. All trips when left out.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 10 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_lab": {
   "post": {
    "operationId": "sr_lab",
    "summary": "Find Lab simulators",
    "description": "Small interactive physics and astronomy simulators, by topic.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "topic": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A subject, such as tides, orbits or black holes. All when left out."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 10,
          "description": "How many results, 10 by default."
         },
         "cursor": {
          "type": "string",
          "maxLength": 80,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "next_cursor of the previous answer, with the same other arguments."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_lab_get",
    "summary": "Find Lab simulators",
    "parameters": [
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "description": "A subject, such as tides, orbits or black holes. All when left out.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 10 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 10
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor of the previous answer, with the same other arguments.",
      "schema": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_articles": {
   "post": {
    "operationId": "sr_articles",
    "summary": "Find articles",
    "description": "Journal articles and long reads, by subject. Scheduled posts are never listed before their day.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A subject. The newest when left out."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "default": 5,
          "description": "How many results, 5 by default."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_articles_get",
    "summary": "Find articles",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": false,
      "description": "A subject. The newest when left out.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 5 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_models": {
   "post": {
    "operationId": "sr_models",
    "summary": "Find 3D models",
    "description": "Free 3D spacecraft models (glTF, MIT licence) with their viewer, file, size and credit line.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A spacecraft, a class or a mission. All when left out."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 8,
          "description": "How many results, 8 by default."
         },
         "cursor": {
          "type": "string",
          "maxLength": 80,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "next_cursor of the previous answer, with the same other arguments."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_models_get",
    "summary": "Find 3D models",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": false,
      "description": "A spacecraft, a class or a mission. All when left out.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 8 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "description": "next_cursor of the previous answer, with the same other arguments.",
      "schema": {
       "type": "string",
       "maxLength": 80,
       "pattern": "^[A-Za-z0-9_-]+$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_videos": {
   "post": {
    "operationId": "sr_videos",
    "summary": "Find films",
    "description": "Films with their chapters, by subject. Films with a later release date are never listed.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A subject. All when left out."
         },
         "kids": {
          "type": "boolean",
          "description": "Only films made for children."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "default": 5,
          "description": "How many results, 5 by default."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_videos_get",
    "summary": "Find films",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": false,
      "description": "A subject. All when left out.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "kids",
      "in": "query",
      "required": false,
      "description": "Only films made for children.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 5 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_games": {
   "post": {
    "operationId": "sr_games",
    "summary": "List games",
    "description": "The Space Radar games and where each one stands.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_games_get",
    "summary": "List games",
    "parameters": [],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_sources": {
   "post": {
    "operationId": "sr_sources",
    "summary": "Sources and accuracy",
    "description": "Where the numbers of a record come from, or, with no id, the pages that explain sources, licences and accuracy.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string",
          "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
          "maxLength": 112,
          "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_sources_get",
    "summary": "Sources and accuracy",
    "parameters": [
     {
      "name": "id",
      "in": "query",
      "required": false,
      "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_navigate": {
   "post": {
    "operationId": "sr_navigate",
    "summary": "Link to the map",
    "description": "The exact link that opens a record on the live 3D map or on its page. Links are copied from the published site, never composed.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string",
          "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
          "maxLength": 112,
          "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
         },
         "view": {
          "type": "string",
          "enum": [
           "map",
           "page"
          ],
          "default": "map"
         }
        },
        "required": [
         "id"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_navigate_get",
    "summary": "Link to the map",
    "parameters": [
     {
      "name": "id",
      "in": "query",
      "required": true,
      "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112
      }
     },
     {
      "name": "view",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "map",
        "page"
       ],
       "default": "map"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_events": {
   "post": {
    "operationId": "sr_events",
    "summary": "Sky events",
    "description": "Dated sky events: eclipses, meteor showers, full Moons, solstices and missions, next ones first.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "A kind or a name, such as eclipse or Geminids."
         },
         "from": {
          "type": "string",
          "maxLength": 25,
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$",
          "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out."
         },
         "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 8,
          "description": "How many results, 8 by default."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_events_get",
    "summary": "Sky events",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": false,
      "description": "A kind or a name, such as eclipse or Geminids.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out.",
      "schema": {
       "type": "string",
       "maxLength": 25,
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "How many results, 8 by default.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20,
       "default": 8
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_satellite_position": {
   "post": {
    "operationId": "sr_satellite_position",
    "summary": "Where a satellite is",
    "description": "The position of a bright satellite or a space station, propagated with SGP4 from CelesTrak elements no more than 7 days from the instant asked.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "norad_id": {
          "type": "integer",
          "minimum": 1,
          "maximum": 999999,
          "description": "NORAD catalogue number: 25544 is the ISS."
         },
         "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "Or a name, such as ISS, Tiangong or Hubble."
         },
         "at": {
          "type": "string",
          "maxLength": 25,
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$",
          "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out."
         }
        },
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_satellite_position_get",
    "summary": "Where a satellite is",
    "parameters": [
     {
      "name": "norad_id",
      "in": "query",
      "required": false,
      "description": "NORAD catalogue number: 25544 is the ISS.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 999999
      }
     },
     {
      "name": "name",
      "in": "query",
      "required": false,
      "description": "Or a name, such as ISS, Tiangong or Hubble.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     },
     {
      "name": "at",
      "in": "query",
      "required": false,
      "description": "An instant in UTC, ISO 8601, such as 2026-12-14T21:00:00Z. Now when left out.",
      "schema": {
       "type": "string",
       "maxLength": 25,
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?Z$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/sr_space_weather": {
   "post": {
    "operationId": "sr_space_weather",
    "summary": "Space weather",
    "description": "The planetary K index, observed and forecast, from NOAA. Kp is global: it is not a promise of aurora at a place.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "sr_space_weather_get",
    "summary": "Space weather",
    "parameters": [],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/search": {
   "post": {
    "operationId": "search",
    "summary": "Search",
    "description": "Search Space Radar. Returns results with id, title and url. Use fetch with an id for the full text.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "description": "What to look for."
         }
        },
        "required": [
         "query"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "search_get",
    "summary": "Search",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": true,
      "description": "What to look for.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 160
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  },
  "/api/v1/fetch": {
   "post": {
    "operationId": "fetch",
    "summary": "Fetch",
    "description": "The full published text of one search result, by id.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string",
          "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
          "maxLength": 112,
          "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one."
         }
        },
        "required": [
         "id"
        ],
        "additionalProperties": false
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   },
   "get": {
    "operationId": "fetch_get",
    "summary": "Fetch",
    "parameters": [
     {
      "name": "id",
      "in": "query",
      "required": true,
      "description": "An id from sr_search, such as map:saturn, trip:a-year-in-a-minute or lab:two-tides-not-one.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z]{2,10}:[a-z0-9][a-z0-9-]{0,99}$",
       "maxLength": 112
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The answer, with its sources",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "An argument is wrong; the message says which"
     },
     "429": {
      "description": "Too many requests"
     },
     "503": {
      "description": "The data for this is not reachable right now"
     }
    }
   }
  }
 }
}