Sitelet https://funapi.dev/docs/starfleet

Starfleet API — free mock REST API for testing

Command a small fleet: crew rosters, warp-speed changes with physics-based validation, a breached warp core that refuses orders, and a tribble endpoint that doubles on every GET — a read that mutates, which your test suite should absolutely complain about.

The Starfleet API runs ships and crews under warp-factor limits, and breeds tribbles that multiply exponentially on every read of their population. That growing number is the point: it is the catalog's only endpoint whose response changes on its own between two identical requests, which is exactly what breaks a naive snapshot test.

Base URL: https://funapi.dev/api/starfleet/v1 · 10 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

Example request and response

GET https://funapi.dev/api/starfleet/v1/ships — List ships, filter by class or status. No token, no signup:

curl -i https://funapi.dev/api/starfleet/v1/ships

answers 200 OK with:

{
  "total": 4,
  "data": [
    {
      "id": 1,
      "name": "USS Curiosity",
      "registry": "NCC-1704",
      "class": "Constitution",
      "status": "active",
      "warpCore": "stable",
      "currentWarp": 0
    },
    {
      "id": 2,
      "name": "USS Paperwork",
      "registry": "NCC-9021",
      "class": "Miranda",
      "status": "active",
      "warpCore": "stable",
      "currentWarp": 2
    },
    {
      "id": 3,
      "name": "USS Redundancy",
      "registry": "NCC-4242",
      "class": "Excelsior",
      "status": "in-refit",
      "warpCore": "offline",
      "currentWarp": 0
    },
    {
      "id": 4,
      "name": "USS Boldly",
      "registry": "NCC-1138",
      "class": "Defiant",
      "status": "active",
      "warpCore": "breached",
      "currentWarp": 0
    }
  ]
}

Open and run this endpoint

What you can practise here

ships

the fleet, mostly functional

crew

rosters and redshirts

tribbles

do NOT keep GETting

All 39 mock REST APIs

Use this response elsewhere

Unofficial and fan-made. The Starfleet API is a practice API that borrows a theme; it is not affiliated with, sponsored or endorsed by the owners of the names it references, which belong to them. Every record it returns is test data for exercising HTTP behaviour, not an authoritative source on the subject.

Last updated