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

Marvel API — free mock REST API for testing

Marvel heroes, villains and mission assignments. Practice CRUD, Bearer auth, nested resources, pagination, and state-transition conflicts (409).

The Marvel API assigns heroes and villains to missions, which makes it a three-way relationship rather than a simple parent-child tree. Missions have states and rosters, so it is well suited to testing a client that has to keep several related collections consistent as it writes.

Base URL: https://funapi.dev/api/marvel/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/marvel/v1/heroes — List heroes (paginated, filter by team). No token, no signup:

curl -i https://funapi.dev/api/marvel/v1/heroes

answers 200 OK with:

{
  "page": 1,
  "pageSize": 4,
  "total": 6,
  "totalPages": 2,
  "data": [
    {
      "id": 1,
      "name": "Iron Man",
      "codename": "Tony Stark",
      "power": "powered armor",
      "team": "Avengers",
      "_v": 1
    },
    {
      "id": 2,
      "name": "Spider-Man",
      "codename": "Peter Parker",
      "power": "wall-crawling & webs",
      "team": "Avengers",
      "_v": 1
    },
    {
      "id": 3,
      "name": "Thor",
      "codename": "Thor Odinson",
      "power": "storm control",
      "team": "Avengers",
      "_v": 1
    },
    {
      "id": 4,
      "name": "Hulk",
      "codename": "Bruce Banner",
      "power": "rage-fueled strength",
      "team": "Avengers",
      "_v": 1
    }
  ]
}

Open and run this endpoint

What you can practise here

heroes

six Avengers across two teams

villains

threat levels, some defeated

missions

assign heroes, then complete them

All 39 mock REST APIs

Use this response elsewhere

Unofficial and fan-made. The Marvel 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