{"openapi":"3.1.0","info":{"title":"Star Trek API","version":"1.0.0","description":"The Star Trek universe as an API, powered by the open STAPI database. Search characters by name (e.g. Picard) or pull full detail by uid — species, titles, occupations, the actors who played them and their Starfleet organizations. Look up the television series (e.g. Voyager → 7 seasons, episode count, production years and original broadcaster), and search the spacecraft of the franchise (e.g. Enterprise) for their registry, class, status and operator. Across The Original Series, The Next Generation, Deep Space Nine, Voyager and beyond. Ideal for fan sites, trivia and quiz games, wikis, Discord bots and any Star Trek app.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/startrek-api","description":"oanor gateway"}],"tags":[{"name":"Star Trek"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/character":{"get":{"operationId":"get_v1_character","tags":["Star Trek"],"summary":"A character by name or uid","description":"","parameters":[{"name":"name","in":"query","required":false,"description":"Name search, e.g. Picard","schema":{"type":"string"},"example":"Picard"},{"name":"uid","in":"query","required":false,"description":"Character uid for detail","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page (from 0)","schema":{"type":"string"},"example":"0"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"page":0,"count":16,"query":"Picard","total":16,"results":[{"uid":"CHMA0000015352","name":"Elise Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000011750","name":"Javier Maribona-Picard","gender":"M","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000289509","name":"Jean-Luc Picard","gender":"M","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"serial_number":"SP-937-215","year_of_birth":2305},{"uid":"CHMA0000112984","name":"Jean-Luc Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000015360","name":"Madison Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000015090","name":"Marie Picard","gender":"F","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000015357","name":"Matthew Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000011751","name":"Maurice Picard","gender":"M","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"year_of_birth":2270,"year_of_death":2367},{"uid":"CHMA0000015358","name":"Mimi Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000015361","name":"Olivia Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000110567","name":"R. Picardo","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000015088","name":"René Picard","gender":"M","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"year_of_birth":2350,"year_of_death":2371},{"uid":"CHMA0000277541","name":"Renée Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"year_of_birth":1996},{"uid":"CHMA0000011756","name":"Robert Picard","gender":"M","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"year_of_birth":2297,"year_of_death":2371},{"uid":"CHMA0000015359","name":"Thomas Picard","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[]},{"uid":"CHMA0000019647","name":"Yvette Picard","gender":"F","titles":[],"species":[],"performers":[],"occupations":[],"organizations":[],"year_of_birth":2274}]},"meta":{"timestamp":"2026-06-01T00:04:22.635Z","request_id":"96fe2a5f-852b-4243-894c-ac9cc228b182"},"status":"ok","message":"Character retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/series":{"get":{"operationId":"get_v1_series","tags":["Star Trek"],"summary":"A series by title or uid","description":"","parameters":[{"name":"title","in":"query","required":false,"description":"Title search, e.g. Voyager","schema":{"type":"string"},"example":"Voyager"},{"name":"uid","in":"query","required":false,"description":"Series uid","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page","schema":{"type":"string"},"example":"0"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"page":0,"count":1,"query":"Voyager","total":1,"results":[{"uid":"SEMA0000000029","title":"Star Trek: Voyager","years":"1994–2001","seasons":7,"episodes":168,"abbreviation":"VOY","original_broadcaster":"UPN"}]},"meta":{"timestamp":"2026-06-01T00:04:22.741Z","request_id":"ffe8510d-18ba-4a8a-bf92-98857fa91588"},"status":"ok","message":"Series retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/spacecraft":{"get":{"operationId":"get_v1_spacecraft","tags":["Star Trek"],"summary":"A spacecraft by name or uid","description":"","parameters":[{"name":"name","in":"query","required":false,"description":"Name search, e.g. Enterprise","schema":{"type":"string"},"example":"Enterprise"},{"name":"uid","in":"query","required":false,"description":"Spacecraft uid","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page","schema":{"type":"string"},"example":"0"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"page":0,"count":23,"query":"Enterprise","total":23,"results":[{"uid":"SRMA0000001640","name":"Enterprise","class":"NX class","owner":"United Earth","status":"Preserved","operator":"Military Assault Command Operations","registry":"NX-01"},{"uid":"SRMA0000004190","name":"Enterprise","class":"Space shuttle orbiter","status":"Retired","operator":"National Aeronautics and Space Administration","registry":"OV-101"},{"uid":"SRMA0000174858","name":"Enterprise shuttle 1","class":"Takayama type shuttlecraft","status":"Destroyed","registry":"1"},{"uid":"SRMA0000124678","name":"Enterprise shuttle 2","class":"Moore type shuttlecraft","status":"Active","registry":"2"},{"uid":"SRMA0000148790","name":"Enterprise shuttle 37","status":"Active","registry":"37"},{"uid":"SRMA0000174860","name":"Enterprise shuttle 7","class":"Takayama type shuttlecraft","status":"Active","registry":"7"},{"uid":"SRMA0000115439","name":"Enterprise shuttle 89","class":"Military shuttle","status":"Destroyed","registry":"89"},{"uid":"SRMA0000013851","name":"Enterprise-D shuttlecraft 13","class":"Type 7 shuttlecraft","status":"Destroyed","registry":"13"},{"uid":"SRMA0000069603","name":"Enterprise-D shuttlepod 01","class":"Type 15 shuttlepod","status":"Active","registry":"01"},{"uid":"SRMA0000004259","name":"ISS Enterprise","class":"Constitution class","owner":"Terran Empire","status":"Active","registry":"NCC-1701"},{"uid":"SRMA0000019359","name":"ISS Enterprise","class":"NX class","owner":"Terran Empire","status":"Destroyed","registry":"NX-01"},{"uid":"SRMA0000115279","name":"USS Enterprise","class":"Constitution class","status":"Destroyed","registry":"NCC-1701"},{"uid":"SRMA0000211420","name":"USS Enterprise","class":"Constitution class","status":"Destroyed","operator":"United Earth Space Probe Agency","registry":"NCC-1701"},{"uid":"SRMA0000210658","name":"USS Enterprise","class":"Constitution class","status":"Active","registry":"NCC-1701-A"},{"uid":"SRMA0000001265","name":"USS Enterprise","class":"Constitution II class","status":"Preserved","registry":"NCC-1701-A"},{"uid":"SRMA0000000599","name":"USS Enterprise","class":"Excelsior class","status":"Active","registry":"NCC-1701-B"},{"uid":"SRMA0000000611","name":"USS Enterprise","class":"Ambassador class","status":"Destroyed","registry":"NCC-1701-C"},{"uid":"SRMA0000103444","name":"USS Enterprise","class":"Galaxy class","status":"Preserved","registry":"NCC-1701-D"},{"uid":"SRMA0000133115","name":"USS Enterprise","class":"Sovereign class","registry":"NCC-1701-E"},{"uid":"SRMA0000287189","name":"USS Enterprise","class":"Odyssey class","status":"Decommissioned","registry":"NCC-1701-F"},{"uid":"SRMA0000287166","name":"USS Enterprise","class":"Constitution III class","status":"Active","registry":"NCC-80102-A"},{"uid":"SRMA0000223423","name":"USS Enterprise","class":"Universe class","status":"Active","registry":"NCC-1701-J"},{"uid":"SRMA0000001100","name":"USS Enterprise","registry":"XCV 330"}]},"meta":{"timestamp":"2026-06-01T00:04:23.392Z","request_id":"c829550d-2b3e-4dc7-9f1d-61625ad59f50"},"status":"ok","message":"Spacecraft retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Usage notes","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"The Star Trek universe. /v1/character = search by name (e.g. name=Picard) or full detail by uid (species, titles, performers, organizations); /v1/series = search by title (e.g. title=Voyager) — seasons, episodes, years, broadcaster; /v1/spacecraft = search by name (e.g. name=Enterprise) — registry, class, status, operator. Pass uid= for an exact record, name=/title= to search, page= to paginate.","source":"STAPI (stapi.co)","endpoints":["/v1/character","/v1/series","/v1/spacecraft","/v1/meta"]},"meta":{"timestamp":"2026-06-01T00:04:23.468Z","request_id":"6c144a2f-26d3-48e0-bf99-30fbef848659"},"status":"ok","message":"Meta retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":10300,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":280,"monthly_call_quota":149000,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1040,"monthly_call_quota":665000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3210,"monthly_call_quota":2760000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/startrek-api"}