A simple API to retrieve some quotes of the famous TV Show, Game of Thrones!
🌐 Website and demo: https://gameofthronesquotes.xyz/
🆕 https://api.gameofthronesquotes.xyz
OLD: https://game-of-thrones-quotes.herokuapp.com
Get a random quote:
{
"sentence": "If I fall, don't bring me back.",
"character": {
"name": "Jon Snow",
"slug": "jon",
"house": {
"name": "House Stark of Winterfell";
"slug": "stark"
}
}
}
Returns {number}
quotes.
number
parameter is optional. By default, one quote is returned.
[
{
"sentence": "If I fall, don't bring me back.",
"character": {
"name": "Jon Snow",
"slug": "jon",
"house": {
"name": "House Stark of Winterfell",
"slug": "stark"
}
}
},
{
"sentence": "The man who passes the sentence should swing the sword.",
"character": {
"name": "Ned Stark",
"slug": "ned",
"house": {
"name": "House Stark of Winterfell",
"slug": "stark"
}
}
},
{
"sentence": "I am your son. I have always been your son.",
"character": {
"name": "Tyrion Lannister",
"slug": "tyrion",
"house": {
"name": "House Lannister of Casterly Rock",
"slug": "lannister"
}
}
}
]
Returns quotes for a character (how to find this information explained below).
number
parameter is optional. By default, all quotes from the character are returned.
[
{
"sentence": "It's not easy being drunk all the time. Everyone would do it, if it were easy.",
"character": {
"name": "Tyrion Lannister",
"slug": "tyrion",
"house": {
"name": "House Lannister of Casterly Rock",
"slug": "lannister"
}
}
},
{
"sentence": "No matter who you are, no matter how strong you are, sooner or later, you’ll face circumstances beyond your control.",
"character": {
"name": "Tyrion Lannister",
"slug": "tyrion",
"house": {
"name": "House Lannister of Casterly Rock",
"slug": "lannister"
}
}
}
]
Returns the list of houses with their members.
[
{
"slug": "stark",
"name": "House Stark of Winterfell",
"members": [
{"name": "Jon Snow", "slug": "jon"},
{"name": "Sansa Stark", "slug": "sansa"},
{"name": "Ned Stark", "slug": "ned"},
{"name": "Arya Stark", "slug": "arya"},
{"name": "Bran Stark", "slug": "bran"}
]
},
{
"slug": "lannister",
"name": "House Lannister of Casterly Rock",
"members": [
{"name": "Jaime Lannister", "slug": "jaime"},
{"name": "Tyrion Lannister", "slug": "tyrion"},
{"name": "Cersei Lannister", "slug": "cersei"},
{"name": "Tywin Lannister", "slug": "tywin"}
]
}
]
Returns the house's details.
name
parameter is the house's diminutive (how to find this information explained below).
[
{
"slug": "stark",
"name": "House Stark of Winterfell",
"members": [
{"name": "Jon Snow", "slug": "jon"},
{"name": "Sansa Stark", "slug": "sansa"},
{"name": "Ned Stark", "slug": "ned"},
{"name": "Arya Stark", "slug": "arya"},
{"name": "Bran Stark", "slug": "bran"}
]
}
]
Returns the list of characters with their quotes.
[
{
"name": "Jon Snow",
"slug": "jon",
"house": {
"slug": "stark",
"name": "House Stark of Winterfell"
},
"quotes": [
"If I fall, don't bring me back.",
"There is only one war that matters. The Great War. And it is here.",
"Love is the death of duty.",
"The war is not over. And I promise you, friend, the true enemy won’t wait out the storm. He brings the storm."
]
},
{
"name": "Ned Stark",
"slug": "ned",
"house": {
"slug": "stark",
"name": "House Stark of Winterfell"
},
"quotes": [
"The man who passes the sentence should swing the sword.",
"I grew up with soldiers. I learned how to die a long time ago."
]
}
]
Returns the character's details.
name
parameter is the character's diminutive (how to find this information explained below).
[
{
"name": "Jon Snow",
"house": {
"slug": "stark",
"name": "House Stark of Winterfell"
},
"quotes": [
"If I fall, don't bring me back.",
"There is only one war that matters. The Great War. And it is here.",
"Love is the death of duty.",
"The war is not over. And I promise you, friend, the true enemy won’t wait out the storm. He brings the storm."
]
}
]
The diminutives of houses and characters are present in the "slug" entry in the results.
You can also find them in the datas.json
file.
For houses:
"houses": {
"stark": {
"name": "House Stark of Winterfell"
},
"lannister": {
"name": "House Lannister of Casterly Rock"
},
"baratheon": {
"name": "House Baratheon of Dragonstone"
},
"targaryen": {
"name": "House Targaryen of King's Landing"
},
...
},
The diminutives are: stark, lannister, baratheon, etc...
For characters:
"characters": {
"jon": {
"name": "Jon Snow",
"house": "stark"
},
"sansa": {
"name": "Sansa Stark",
"house": "stark"
},
"ned": {
"name": "Eddard \"Ned\" Stark",
"house": "stark"
},
"jaime": {
"name": "Jaime Lannister",
"house": "lannister"
},
"tyrion": {
"name": "Tyrion Lannister",
"house": "lannister"
},
...
},
The diminutives are: jon, sansa, ned, etc...
You can integrate the API into Postman thanks to the Postman collection available on the repository.
You can find the Dockerfile here and on Docker Hub.
If you want to add some quotes, please follow these steps. Make sure you have Git installed on your local computer.
- Fork the projet by clicking on the "Fork" button on the top right corner of this page
- Git clone your fork
- Open the file
datas.json
- Make sure the quote doesn't already exist!
- Edit the sections. Make sure the character and house exist.
- Commit and push your changes
- Submit a pull request
Thanks!