How to hit the An API of Ice and Fire API

An API of Ice and Fire at https://anapioficeandfire.com/api covers the A Song of Ice and Fire books: characters, houses, and books, linked by URL.

Authentication

None — no key, no signup. Every example runs as-is.

Full reference: https://anapioficeandfire.com/Documentation

Get a character

curl https://anapioficeandfire.com/api/characters/583
Run in PostTaco
Example response (trimmed)
{
  "url": "https://anapioficeandfire.com/api/characters/583",
  "name": "Jon Snow",
  "gender": "Male",
  "culture": "Northmen",
  "born": "In 283 AC",
  "died": "",
  "titles": [
    "Lord Commander of the Night's Watch"
  ],
  "aliases": [
    "Lord Snow",
    "Ned Stark's Bastard"
  ],
  "father": "",
  "mother": "",
  "spouse": "",
  "allegiances": [
    "https://anapioficeandfire.com/api/houses/362"
  ],
  "books": [
    "https://anapioficeandfire.com/api/books/5"
  ],
  "povBooks": [
    "https://anapioficeandfire.com/api/books/1",
    "https://anapioficeandfire.com/api/books/2"
  ],
  "tvSeries": [
    "Season 1",
    "Season 2"
  ]
}

Search houses

curl "https://anapioficeandfire.com/api/houses?region=The%20North&pageSize=2"
Run in PostTaco
Example response (trimmed)
[
  {
    "url": "https://anapioficeandfire.com/api/houses/3",
    "name": "House Amber",
    "region": "The North",
    "coatOfArms": "",
    "words": "",
    "titles": [],
    "seats": [],
    "currentLord": "",
    "heir": "",
    "overlord": "",
    "founded": "",
    "founder": "",
    "diedOut": "",
    "ancestralWeapons": [],
    "cadetBranches": []
  },
  {
    "url": "https://anapioficeandfire.com/api/houses/9",
    "name": "House Ashwood",
    "region": "The North",
    "coatOfArms": "",
    "words": "",
    "titles": [],
    "seats": [],
    "currentLord": "",
    "heir": "",
    "overlord": "https://anapioficeandfire.com/api/houses/34",
    "founded": "",
    "founder": "",
    "diedOut": "",
    "ancestralWeapons": [],
    "cadetBranches": []
  }
]