An API of Ice And Fire API
Overview
An API of Ice and Fire is a free, open REST API providing comprehensive data from the Game of Thrones universe, including characters, houses, and books from George R.R. Martin's series. No authentication is needed — you can start making requests immediately. It is an excellent beginner API for learning how to work with paginated REST endpoints.
Beginner Tip
Results are paginated by default (20 items per page) — use the ?page=2&pageSize=50 query parameters to navigate through results. The response also includes Link headers with next/previous page URLs, which is great practice for learning pagination patterns.
Available Data
Example Response
{
"id": 1,
"name": "Anof Ice And Fire",
"data": "Game Of Thrones API",
"source": "An API of Ice And Fire"
} Field Reference
url The canonical URL for this specific character, house, or book resource. name The character's name — may be empty for unnamed characters, check aliases instead. aliases List of alternate names or titles for the character (e.g., "The Imp", "Kingslayer"). allegiances List of URLs pointing to the houses this character has sworn allegiance to. titles Official titles held by the character (e.g., "Lord of Winterfell"). born In-universe birth description (e.g., "In 262 AC, at Dragonstone"). Implementation Example
const url = "https://anapioficeandfire.com/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bob's Burgers
Bob's Burgers provides programmatic access to bob's burgers api via REST API.
Breaking Bad
Breaking Bad provides programmatic access to breaking bad api via REST API.
Breaking Bad Quotes
⭐ Beginner's PickBreaking Bad Quotes is a tiny, free API that returns random quotes from the Breaking Bad TV series.
Catalogopolis
Catalogopolis provides programmatic access to doctor who api via REST API.
Catch The Show
Catch The Show provides programmatic access to rest api for next-episode.net via REST API.