娯
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/characters | Characters of the books and films, optionally of one Hogwarts house. |
| GET | /hpapi/character | One character by its HP API id. |
| GET | /hpapi/spells | Spells of the books with their descriptions. |
| GET | /hpapi/houses | The four Hogwarts houses with their founder, colours and animal. |
| GET | /hpapi/books | The seven Harry Potter novels with their release dates and page counts. |
| GET | /hpapi/randomCharacter | A random character of the catalogue, with the actor who played the film role. |
| GET | /hpapi/roster | The characters of the catalogue, about twenty-five of them, in one list. |
| GET | /hpapi/randomSpell | A random spell of the catalogue with what it does. |
characters
GET
/v1/hpapi/charactersCharacters of the books and films, optionally of one Hogwarts house.
scope social:read1 unitcached 24 hpaginated
Parameters
housestring | Only characters of this house.gryffindorslytherinravenclawhufflepuff |
limitinteger | Items per page, 1 to 100. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
actor | string |
alive | boolean |
ancestry | string |
dateOfBirth | string |
gender | string |
hogwartsStaff | boolean |
hogwartsStudent | boolean |
house | string |
id | string |
image | string |
name | string |
patronus | string |
species | string |
wand | Wand |
core | string |
length | number (double) |
wood | string |
wizard | boolean |
yearOfBirth | integer (int64) |
curl "https://api.hoshime.com/v1/hpapi/characters" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/characters", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/characters", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/characterOne character by its HP API id.
scope social:read1 unitcached 24 h
Parameters
idstring required | Character id, a UUID such as 9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8. e.g. 9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
actor | string |
alive | boolean |
ancestry | string |
dateOfBirth | string |
gender | string |
hogwartsStaff | boolean |
hogwartsStudent | boolean |
house | string |
id | string |
image | string |
name | string |
patronus | string |
species | string |
wand | Wand |
core | string |
length | number (double) |
wood | string |
wizard | boolean |
yearOfBirth | integer (int64) |
curl "https://api.hoshime.com/v1/hpapi/character?id=9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/character?id=9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/character?id=9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/spellsSpells of the books with their descriptions.
scope social:read1 unitcached 24 hpaginated
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
description | string |
id | string |
name | string |
curl "https://api.hoshime.com/v1/hpapi/spells" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/spells", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/spells", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/housesThe four Hogwarts houses with their founder, colours and animal.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
animal | string |
colors | string[] |
emoji | string |
founder | string |
name | string |
curl "https://api.hoshime.com/v1/hpapi/houses" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/houses", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/houses", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/booksThe seven Harry Potter novels with their release dates and page counts.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
cover | string |
number | integer (int64) |
originalTitle | string |
pages | integer (int64) |
releaseDate | string |
title | string |
curl "https://api.hoshime.com/v1/hpapi/books" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/books", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/books", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/randomCharacterA random character of the catalogue, with the actor who played the film role.
scope social:read1 unit
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
birthdate | string |
children | string[] |
fullName | string |
house | string |
image | string |
index | integer (int64) |
interpretedBy | string |
nickname | string |
curl "https://api.hoshime.com/v1/hpapi/randomCharacter" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/randomCharacter", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/randomCharacter", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/rosterThe characters of the catalogue, about twenty-five of them, in one list.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
birthdate | string |
children | string[] |
fullName | string |
house | string |
image | string |
index | integer (int64) |
interpretedBy | string |
nickname | string |
curl "https://api.hoshime.com/v1/hpapi/roster" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/roster", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/roster", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/randomSpellA random spell of the catalogue with what it does.
scope social:read1 unit
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
index | integer (int64) |
spell | string |
use | string |
curl "https://api.hoshime.com/v1/hpapi/randomSpell" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hpapi/randomSpell", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hpapi/randomSpell", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }