STAPI API
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
Example 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
const url = "http://stapi.co/";
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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
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.
Bob's Burgers
Bob's Burgers provides programmatic access to bob's burgers api via REST API.
Breaking Bad
Breaking Bad provides programmatic access to breaking bad api via REST API.
Breaking Bad Quotes
⭐ Beginner's PickBreaking Bad Quotes is a tiny, free API that returns random quotes from the Breaking Bad TV series.
Catalogopolis
Catalogopolis provides programmatic access to doctor who api via REST API.