Overview
STAPI is a free, open Star Trek encyclopedia API covering every series, character, starship, episode, and more from the entire franchise. No API key is required — just send a GET or POST request and explore the Star Trek universe programmatically. Great for fan projects and trivia apps.
Beginner Tip
Start with the search endpoints (e.g., /rest/v1/common/series/search) to browse available data before diving into single-entity lookups by UID. The API uses pagination, so always check the "page" object in the response.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from STAPI",
"description": "Information on all things Star Trek",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
page.totalElements Total number of matching records across all pages. page.totalPages Number of pages available for the current query. characters[].name Full name of the Star Trek character. characters[].uid Unique identifier for the character, used to fetch detailed info. characters[].gender Gender of the character as listed in the franchise. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "http://stapi.co/api/v1/rest/character/search?pageNumber=0&pageSize=10";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →An API of Ice And Fire
⭐ Beginner's PickAn API of Ice and Fire is a free, open REST API providing comprehensive data from the Game of Thrones universe, including characters, houses, and books from George R.R.
Breaking Bad Quotes
⭐ Beginner's PickBreaking Bad Quotes is a tiny, free API that returns random quotes from the Breaking Bad TV series.
Final Space
⭐ Beginner's PickThe Final Space API provides data from the animated TV show Final Space, including characters, episodes, and locations — all accessible without an API key.
Dune
⭐ Beginner's PickThe Dune API is a free, no-auth REST API that returns data from the Dune universe including books, characters, movies, and quotes.
IMDbOT
⭐ Beginner's PickIMDbOT is an unofficial, free REST API that provides movie and TV series information sourced from IMDb data — no API key required.