The Simpsons API
App · Film, TV & Fandom · 9 actions
Look up characters, episodes, and locations from The Simpsons using the free, keyless The Simpsons API: page through 1,180+ characters with their occupations, catchphrases, and status, 760+ episodes with air dates and synopses, and 470+ Springfield locations, pick a random character or episode, and build CDN image URLs for any of them. No account or API key required. Disclaimer: this is an independent app built on the community-run The Simpsons API (thesimpsonsapi.com). It is not affiliated with, endorsed by, or sponsored by The Walt Disney Company, 20th Television, or the creators of The Simpsons; The Simpsons and all related names, characters, and trademarks are the property of their respective owners.
Actions
| Action | What it does |
|---|---|
| Build image URL | Build a CDN image URL from a resource's image path: a character's portrait path, or an episode's or location's image path, at one of the three sizes the CDN serves. |
| Get a character | Get a single character from The Simpsons by their numeric id. |
| Get a location | Get a single location from The Simpsons by its numeric id, with a description and the episode it first appeared in. |
| Get a random character | Pick one character from The Simpsons at random, with their catchphrases, description, and first appearance. |
| Get a random episode | Pick one episode of The Simpsons at random, with its season, air date, synopsis, and description. |
| Get an episode | Get a single episode of The Simpsons by its numeric id, with a description. |
| List characters | List characters from The Simpsons, 20 to a page. |
| List episodes | List episodes of The Simpsons, 20 to a page, in air date order. |
| List locations | List locations from The Simpsons, 20 to a page. |
Build image URL
Build a CDN image URL from a resource's image path: a character's portrait path, or an episode's or location's image path, at one of the three sizes the CDN serves.
Inputs
- Image path
image_pathtextRequired - The resource's image path, such as '/character/1.webp' (a character's portrait path) or '/episode/1.webp'.
- Image size
sizetext - The image width to request, in pixels.One of:
200(200px),500(500px),1280(1280px). Default:500.
Outputs
imageUrltext- The picture's address on the CDN, e.g. 'https://cdn.thesimpsonsapi.com/500/character/1.webp'. It is a WebP image.
Example output
{
"imageUrl": "https://cdn.thesimpsonsapi.com/500/character/1.webp"
}Get a character
Get a single character from The Simpsons by their numeric id. The detailed response adds a description and the episode and short they first appeared in.
Inputs
- Character ID
character_idnumberRequired - The numeric id of the character (for example, 1 for Homer Simpson).At least 1.
Outputs
characterobject- The character.
Example output
{
"character": {
"age": 1,
"birthdate": "1990-11-07",
"description": "Margaret Lenny \"Maggie\" Simpson is the one-year-old daughter and youngest child of Marge and Homer Simpson.",
"first_appearance_ep": {
"airdate": "1989-12-17",
"description": "\"Simpsons Roasting on an Open Fire\" is the first episode of Season 1 of The Simpsons, as well as the series premiere.",
"episode_number": 1,
"id": 1,
"image_path": "/episode/1.webp",
"name": "Simpsons Roasting on an Open Fire",
"season": 1,
"synopsis": "When Mr. Burns announces that none of the workers will be getting Christmas bonuses, Homer keeps his lack of funds for the holidays a secret and gets a job as a mall Santa."
},
"first_appearance_ep_id": 1,
"first_appearance_sh": {
"airdate": "1987-04-19",
"description": "Good Night is the first Simpsons short and the first televised appearance of the Simpson family.",
"episode_number": 1,
"id": 1,
"image_path": "/short/1.webp",
"name": "Good Night",
"season": 1,
"synopsis": "Marge and Homer Simpson say goodnight to their three kids, but all does not go to plan."
},
"first_appearance_sh_id": 1,
"gender": "Female",
"id": 5,
"name": "Maggie Simpson",
"occupation": "Unknown",
"phrases": [
"*suck-suck*",
"Good night.",
"Daddy."
],
"portrait_path": "/character/5.webp",
"status": "Alive"
}
}Get a location
Get a single location from The Simpsons by its numeric id, with a description and the episode it first appeared in.
Inputs
- Location ID
location_idnumberRequired - The numeric id of the location (for example, 1 for 742 Evergreen Terrace).At least 1.
Outputs
locationobject- The location.
Example output
{
"location": {
"description": "Moe's Tavern, or simply called Moe's, is the local bar in Springfield. The bar is named after its owner: Moe Szyslak.",
"first_appearance_ep": {
"airdate": "1989-12-17",
"description": "\"Simpsons Roasting on an Open Fire\" is the first episode of Season 1 of The Simpsons, as well as the series premiere.",
"episode_number": 1,
"id": 1,
"image_path": "/episode/1.webp",
"name": "Simpsons Roasting on an Open Fire",
"season": 1,
"synopsis": "When Mr. Burns announces that none of the workers will be getting Christmas bonuses, Homer keeps his lack of funds for the holidays a secret and gets a job as a mall Santa."
},
"first_appearance_ep_id": 1,
"first_appearance_sh": null,
"first_appearance_sh_id": null,
"id": 5,
"image_path": "/location/5.webp",
"name": "Moe's Tavern",
"town": "Springfield",
"use": "Bar"
}
}Get a random character
Pick one character from The Simpsons at random, with their catchphrases, description, and first appearance. Each run picks again, so it suits a quote of the day. Many minor characters have no catchphrases.
Inputs
None.
Outputs
characterobject- The character picked.
Example output
{
"character": {
"age": null,
"birthdate": null,
"description": "Rodney \"Rod\" Flanders is the oldest son of Ned Flanders and Maude Flanders.",
"first_appearance_ep": {
"airdate": "1990-02-18",
"description": "\"The Call of the Simpsons\" is the seventh episode of Season 1.",
"episode_number": 7,
"id": 7,
"image_path": "/episode/7.webp",
"name": "The Call of the Simpsons",
"season": 1,
"synopsis": "The Simpsons go on vacation in a rickety RV and end up lost in the woods when the RV goes over a cliff."
},
"first_appearance_ep_id": 7,
"first_appearance_sh": null,
"first_appearance_sh_id": null,
"gender": "Male",
"id": 11,
"name": "Rod Flanders",
"occupation": "Student at Springfield Elementary School",
"phrases": [
"Yay!!"
],
"portrait_path": "/character/11.webp",
"status": "Alive"
}
}Get a random episode
Pick one episode of The Simpsons at random, with its season, air date, synopsis, and description. Each run picks again, so it suits an episode of the day.
Inputs
None.
Outputs
episodeobject- The episode picked.
Example output
{
"episode": {
"airdate": "1990-10-11",
"description": "Bart Gets an \"F\" is the first episode of Season 2, and the show's 14th episode overall.",
"episode_number": 14,
"id": 14,
"image_path": "/episode/14.webp",
"name": "Bart Gets an \"F\"",
"season": 2,
"synopsis": "After fumbling through his book report on Treasure Island, Bart is ordered to study hard and pass his upcoming history exam."
}
}Get an episode
Get a single episode of The Simpsons by its numeric id, with a description. Episodes are numbered in air date order, so id 1 is the first episode.
Inputs
- Episode ID
episode_idnumberRequired - The numeric id of the episode (for example, 1 for Simpsons Roasting on an Open Fire).At least 1.
Outputs
episodeobject- The episode.
Example output
{
"episode": {
"airdate": "1989-12-17",
"description": "\"Simpsons Roasting on an Open Fire\" is the first episode of Season 1 of The Simpsons, as well as the series premiere.",
"episode_number": 1,
"id": 1,
"image_path": "/episode/1.webp",
"name": "Simpsons Roasting on an Open Fire",
"season": 1,
"synopsis": "When Mr. Burns announces that none of the workers will be getting Christmas bonuses, Homer keeps his lack of funds for the holidays a secret and gets a job as a mall Santa."
}
}List characters
List characters from The Simpsons, 20 to a page. Each character includes their name, age, gender, occupation, status, catchphrases, and portrait path.
Inputs
- Page
pagenumber - Which page of results to return, 20 per page, starting at 1 (defaults to the first page). A page past the last one returns no results.At least 1.
Outputs
charactersobject- One page of characters, with how many there are in all.
Example output
{
"characters": {
"count": 1182,
"next": "https://thesimpsonsapi.com/api/characters?page=2",
"pages": 60,
"prev": null,
"results": [
{
"age": 39,
"birthdate": "1956-05-12",
"gender": "Male",
"id": 1,
"name": "Homer Simpson",
"occupation": "Safety Inspector",
"phrases": [
"Doh!",
"Why you little...!",
"Woo-hoo!"
],
"portrait_path": "/character/1.webp",
"status": "Alive"
},
{
"age": 39,
"birthdate": null,
"gender": "Female",
"id": 2,
"name": "Marge Simpson",
"occupation": "Unemployed",
"phrases": [
"Hrmmm...",
"Oh, Homie!"
],
"portrait_path": "/character/2.webp",
"status": "Alive"
}
]
}
}List episodes
List episodes of The Simpsons, 20 to a page, in air date order. Each episode includes its season, its number in the series, air date, synopsis, and image path.
Inputs
- Page
pagenumber - Which page of results to return, 20 per page, starting at 1 (defaults to the first page). A page past the last one returns no results.At least 1.
Outputs
episodesobject- One page of episodes, with how many there are in all.
Example output
{
"episodes": {
"count": 768,
"next": "https://thesimpsonsapi.com/api/episodes?page=2",
"pages": 39,
"prev": null,
"results": [
{
"airdate": "1989-12-17",
"episode_number": 1,
"id": 1,
"image_path": "/episode/1.webp",
"name": "Simpsons Roasting on an Open Fire",
"season": 1,
"synopsis": "When Mr. Burns announces that none of the workers will be getting Christmas bonuses, Homer keeps his lack of funds for the holidays a secret and gets a job as a mall Santa."
},
{
"airdate": "",
"episode_number": 2,
"id": 2,
"image_path": "/episode/2.webp",
"name": "Bart the Genius",
"season": 1,
"synopsis": "Bart switches his own intelligence test with Martin's, and is sent to a school for genius kids."
}
]
}
}List locations
List locations from The Simpsons, 20 to a page. Each location includes its name, town, use, and image path.
Inputs
- Page
pagenumber - Which page of results to return, 20 per page, starting at 1 (defaults to the first page). A page past the last one returns no results.At least 1.
Outputs
locationsobject- One page of locations, with how many there are in all.
Example output
{
"locations": {
"count": 477,
"next": "https://thesimpsonsapi.com/api/locations?page=2",
"pages": 24,
"prev": null,
"results": [
{
"id": 1,
"image_path": "/location/1.webp",
"name": "742 Evergreen Terrace",
"town": "Springfield",
"use": "Residential"
},
{
"id": 2,
"image_path": "/location/2.webp",
"name": "Springfield Nuclear Power Plant",
"town": "Springfield",
"use": "Energy Source"
}
]
}
}