APIHub
Back to Explore

SuperHeroes

A REST API that returns JSON data for superheroes and villains, offering endpoints to retrieve a character's complete profile or individual sections (powerstats, biography, appearance, work, connections, image) by ID, as well as a name‑search endpoint that returns matching character IDs and brief details.

Games & Comics
apiKeyQuery
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

263ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/{id}

Search by character id. Returns all information of the character.

  • id (path, required) — Character ID
GET

/{id}/powerstats

Returns JSON array of all powerstats of given character.

  • id (path, required) — Character ID
GET

/{id}/biography

Returns JSON array of character's biography.

  • id (path, required) — Character ID
GET

/{id}/appearance

Returns JSON array of character's appearance.

  • id (path, required) — Character ID
GET

/{id}/work

Returns JSON array of character's work (occupation and base of operation).

  • id (path, required) — Character ID
GET

/{id}/connections

Returns JSON array of character's connections.

  • id (path, required) — Character ID
GET

/{id}/image

Returns image URL of the character.

  • id (path, required) — Character ID
GET

/search/{name}

Search character by name. Returns character id(s).

  • name (path, required) — Name of the character to search for

8 endpoints auto-detected

Authentication

This API uses an API key, passed as the "access-token" query parameter. No OAuth required.

curl -X GET \
  "https://superheroapi.com/{id}?access-token=YOUR_API_KEY"

superheroapi.com · HTTPS only