traitor
booleanoptionalIntroduction
Introduction
Welcome to the API Documentation for the (extremely unofficial) Horus Heresy API. This Public REST API is made by Rasmus Bremholm and started out as an experiment but is now growing into something larger.
The project started back in 2023, but is now currently being expanded in 2025 and has entered back into development once again.
To get started start out in the "Quick Start" part of this page and get fetching!
Quick Start
The fastest way to get started is by firing up your preferred testing app, either Postman or Insomnia. I prefer using Postman, but its really up to you.
After that you can try to reach the base endpoint:
https://horus-heresy-next.vercel.app/api/
Thats the base endpoint, and after the /api/ you enter whatever endpoint you require. The most practical one to get started is the /legions
It looks like this
https://horus-heresy-next.vercel.app/api/legions
This is where you find a big old list of all the legions and their data. Data like Primarchs, name, homeworld, army size etc...
Get All Legions
GET
/api/legions
This endpoint is like your "starting point". Here you will get it all, a big old list of all the different legions and all the data that goes along with each legion. Data like Primarch, Legion Name their homeworld, size of army and what allegence they had during the end of the Horus Heresy.
Parameters
sort
stringoptionalResponses
Get Legion By Id
GET
/api/legion/[id]
To get information about a specific legion you fetch the endpoint /legion/ with the ID of the legion you want at the end.
The id field needs to be populated with a number between 1 and 20. If you go outside this scope you will get an error telling you that the legion dosnt excist.
I might have to update this to be another http status code, 401 seems appropriate, but now im sure its 500 or something dumb.
Important: I made sure the ID field corresponds to each Legions "canonical" legionnumber instead of beeing just an index. This way the ID becomes a two-in-one get, both legion number and a convinient id to select specific legions.
For those (plebians) that dosnt know each legions number i have included a list below.
- Dark Angels
- [Redacted]
- Emperor's Children
- Iron Warriors
- White Scars
- Space Wolves
- Imperial Fists
- Night Lords
- Blood Angels
- Iron Hands
- [UNKNOWN]
- World Eaters
- Ultramarines
- Death Guard
- Thousand Sons
- Sons of Horus (Luna Wolves)
- Word Bearers
- Salamanders
- Raven Guard
- Alpha Legion
Fun Facts:
If you are wondering about entry 2 and 11, those legions where expunged from the Imperial records. So if you see entries such as [redacted], [deleted] or even [unknown] just know I added them for the "lore friendly" effect.
Responses
Get All Primarchs
GET
/primarchs
Get all the Primarchs during the Horus Heresy. Get all the intresting facts about them.
Parameters
traitor
booleanoptionallegion_id
numberoptionalsort
stringoptionalResponses
Code Examples
Get All Characters
GET
/characters
Here you will get a list of notable characters. Im in the progress on expanding apon this list so just hold on if your favorite isn't on there yet.
Parameters
traitor
booleanoptionallegion_id
stringoptional