ThronesApi API

Beginner's Pick Video / No Auth Required Beginner HTTPS
Free to Use
77 B
Measured Score 0 50 100 Speed 20/30 Consistency 20/20 Security 18/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

ThronesApi offers data on Game of Thrones characters including names, images, family houses, and titles. No API key is required, making it a great choice for beginners who want to practice working with REST APIs. You can fetch a list of all characters or look up a specific character by ID.

Beginner Tip

This API requires no authentication, so you can test it directly in your browser or with curl. Try fetching all characters at /api/v2/Characters and then access a single character using its id.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://thronesapi.com/api/v2/Characters
Result
HTTP 200 · application/json · 11,581 bytes
Response time
177 ms (median of 3)
Transport
TLSv1.2 · ECDHE-RSA-AES256-GCM-SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
Microsoft-IIS/10.0
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
id integer 0
firstName string Daenerys
lastName string Targaryen
fullName string Daenerys Targaryen
title string Mother of Dragons
family string House Targaryen
image string daenerys.jpg
imageUrl string (url) https://thronesapi.com/assets/images/daenerys…

Captured Response

Captured from a real request to https://thronesapi.com/api/v2/Characters on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  {
    "id": 0,
    "firstName": "Daenerys",
    "lastName": "Targaryen",
    "fullName": "Daenerys Targaryen",
    "title": "Mother of Dragons",
    "family": "House Targaryen",
    "image": "daenerys.jpg",
    "imageUrl": "https://thronesapi.com/assets/images/daenerys.jpg"
  }
]

Field Reference

id Unique numeric ID for the character.
firstName Character first name.
lastName Character last name or family name.
fullName Complete name of the character.
title In-world title or role, such as King, Queen, or Maester.
imageUrl URL pointing to an image of the character.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://thronesapi.com/api/v2/Characters";
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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 400 Requesting a path that does not exist application/json
{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "title": "One or more validation errors occurred.",
  "status": 400,
  "traceId": "00-c90ec73e3a6f7d41ad79f9059aa37c19-db593b8b2b8ada4d-00",
  "errors": {
    "id": [
      "The value 'apisscore-nonexistent-path' is not valid."
    ]
  }
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

404 Not Found Using a character ID that is out of range (characters are numbered 0-52).
Fetch all characters first with /api/v2/Characters to get valid IDs before requesting individuals.
CORS error in browser Calling the API from a local HTML file without a web server.
Serve your HTML from a local server (e.g., npx serve .) or use a CORS proxy for testing.
Image URL broken The imageUrl field points to an external resource that may have moved.
Always check the imageUrl before displaying it and provide a fallback image in your UI.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 20/30
Consistency 20/20
Security 18/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 177ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Video
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →