Skip to content

HP API API

8 endpointsEntertainment & BooksGlobalsocial:read5 real examples

Returns Harry Potter characters, spells, Hogwarts houses and books, including a random character with its film actor.

View as Markdown
GET/hpapi/charactersCharacters of the books and films, optionally of one Hogwarts house.
GET/hpapi/characterOne character by its HP API id.
GET/hpapi/spellsSpells of the books with their descriptions.
GET/hpapi/housesThe four Hogwarts houses with their founder, colours and animal.
GET/hpapi/booksThe seven Harry Potter novels with their release dates and page counts.
GET/hpapi/randomCharacterA random character of the catalogue, with the actor who played the film role.
GET/hpapi/rosterThe characters of the catalogue, about twenty-five of them, in one list.
GET/hpapi/randomSpellA random spell of the catalogue with what it does.

characters

GET/v1/hpapi/characters

Characters of the books and films, optionally of one Hogwarts house.

scope social:read1 unitcached 24 hpaginated

Parameters

house
string
Only characters of this house.
gryffindorslytherinravenclawhufflepuff
limit
integer
Items per page, 1 to 100.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

19 fields
actorstring
aliveboolean
ancestrystring
dateOfBirthstring
genderstring
hogwartsStaffboolean
hogwartsStudentboolean
housestring
idstring
imagestring
namestring
patronusstring
speciesstring
wandWand
corestring
lengthnumber (double)
woodstring
wizardboolean
yearOfBirthinteger (int64)
curl "https://api.hoshime.com/v1/hpapi/characters" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "actor": "…",
      "alive": false,
      "ancestry": "…",
      "dateOfBirth": "…",
      "gender": "…",
      "hogwartsStaff": false,
      "hogwartsStudent": false,
      "house": "…",
      "id": "abc123",
      "image": "…",
      "name": "…",
      "patronus": "…",
      "species": "…",
      "wand": {
        "core": "…",
        "length": 0,
        "wood": "…"
      },
      "wizard": false,
      "yearOfBirth": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "characters",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

character

GET/v1/hpapi/character

One character by its HP API id.

scope social:read1 unitcached 24 h

Parameters

id
string
required
Character id, a UUID such as 9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8.
e.g. 9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

19 fields
actorstring
aliveboolean
ancestrystring
dateOfBirthstring
genderstring
hogwartsStaffboolean
hogwartsStudentboolean
housestring
idstring
imagestring
namestring
patronusstring
speciesstring
wandWand
corestring
lengthnumber (double)
woodstring
wizardboolean
yearOfBirthinteger (int64)
curl "https://api.hoshime.com/v1/hpapi/character?id=9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "actor": "…",
    "alive": false,
    "ancestry": "…",
    "dateOfBirth": "…",
    "gender": "…",
    "hogwartsStaff": false,
    "hogwartsStudent": false,
    "house": "…",
    "id": "abc123",
    "image": "…",
    "name": "…",
    "patronus": "…",
    "species": "…",
    "wand": {
      "core": "…",
      "length": 0,
      "wood": "…"
    },
    "wizard": false,
    "yearOfBirth": 0
  },
  "meta": {
    "cached": false,
    "endpoint": "character",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

spells

GET/v1/hpapi/spells

Spells of the books with their descriptions.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
descriptionstring
idstring
namestring
curl "https://api.hoshime.com/v1/hpapi/spells" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "description": "…",
      "id": "abc123",
      "name": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "spells",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

houses

GET/v1/hpapi/houses

The four Hogwarts houses with their founder, colours and animal.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
animalstring
colorsstring[]
emojistring
founderstring
namestring
curl "https://api.hoshime.com/v1/hpapi/houses" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "animal": "Lion",
      "colors": [
        "red",
        "gold"
      ],
      "emoji": "🦁",
      "founder": "Godric Gryffindor",
      "name": "Gryffindor"
    },
    {
      "animal": "Badger",
      "colors": [
        "yellow",
        "black"
      ],
      "emoji": "🦡",
      "founder": "Helga Hufflepuff",
      "name": "Hufflepuff"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "houses",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

books

GET/v1/hpapi/books

The seven Harry Potter novels with their release dates and page counts.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
coverstring
numberinteger (int64)
originalTitlestring
pagesinteger (int64)
releaseDatestring
titlestring
curl "https://api.hoshime.com/v1/hpapi/books" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "cover": "https://raw.githubusercontent.com/fedeperin/potterapi/main/public/images/covers/1.png",
      "number": 1,
      "originalTitle": "Harry Potter and the Sorcerer's Stone",
      "pages": 223,
      "releaseDate": "1997-06-26",
      "title": "Harry Potter and the Sorcerer's Stone"
    },
    {
      "cover": "https://raw.githubusercontent.com/fedeperin/potterapi/main/public/images/covers/2.png",
      "number": 2,
      "originalTitle": "Harry Potter and the Chamber of Secrets",
      "pages": 251,
      "releaseDate": "1998-07-02",
      "title": "Harry Potter and the Chamber of Secrets"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "books",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

randomCharacter

GET/v1/hpapi/randomCharacter

A random character of the catalogue, with the actor who played the film role.

scope social:read1 unit

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
birthdatestring
childrenstring[]
fullNamestring
housestring
imagestring
indexinteger (int64)
interpretedBystring
nicknamestring
curl "https://api.hoshime.com/v1/hpapi/randomCharacter" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "birthdate": "Sep 29, 1977",
    "children": [],
    "fullName": "Cedric Diggory",
    "house": "Hufflepuff",
    "image": "https://raw.githubusercontent.com/fedeperin/potterapi/main/public/images/characters/cedric_diggory.png",
    "index": 22,
    "interpretedBy": "Robert Pattinson",
    "nickname": "Cedric"
  },
  "meta": {
    "cached": false,
    "endpoint": "randomCharacter",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

roster

GET/v1/hpapi/roster

The characters of the catalogue, about twenty-five of them, in one list.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
birthdatestring
childrenstring[]
fullNamestring
housestring
imagestring
indexinteger (int64)
interpretedBystring
nicknamestring
curl "https://api.hoshime.com/v1/hpapi/roster" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "birthdate": "Jul 31, 1980",
      "children": [
        "James Sirius Potter",
        "Albus Severus Potter"
      ],
      "fullName": "Harry James Potter",
      "house": "Gryffindor",
      "image": "https://raw.githubusercontent.com/fedeperin/potterapi/main/public/images/characters/harry_potter.png",
      "index": 0,
      "interpretedBy": "Daniel Radcliffe",
      "nickname": "Harry"
    },
    {
      "birthdate": "Sep 19, 1979",
      "children": [
        "Rose Granger-Weasley",
        "Hugo Granger-Weasley"
      ],
      "fullName": "Hermione Jean Granger",
      "house": "Gryffindor",
      "image": "https://raw.githubusercontent.com/fedeperin/potterapi/main/public/images/characters/hermione_granger.png",
      "index": 1,
      "interpretedBy": "Emma Watson",
      "nickname": "Hermione"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "roster",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

randomSpell

GET/v1/hpapi/randomSpell

A random spell of the catalogue with what it does.

scope social:read1 unit

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
indexinteger (int64)
spellstring
usestring
curl "https://api.hoshime.com/v1/hpapi/randomSpell" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "index": 57,
    "spell": "Deprimo",
    "use": "Creates great downward pressure"
  },
  "meta": {
    "cached": false,
    "endpoint": "randomSpell",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "hpapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open