Blogs

Tools

Quick Links

Mridul.tech

Home/Breaking Bad API/Single Death Endpoint

Single Death Endpoint

Get detailed information about a specific character death from Breaking Bad using its unique ID.

get
https://api.mridul.tech/api/breaking-bad/deaths/{id}

Get detailed information about a specific character death from Breaking Bad using its unique ID.

Overview

This endpoint returns detailed information about a specific character death from the Breaking Bad series. Death IDs range from 1 to 65, covering the major character deaths throughout the show.

Rate Limiting

2000 requests per 24 hours per IP address

⚠️ Content Warning

This endpoint contains information about character deaths and may include spoilers for the Breaking Bad series.

Death Information Includes

  • Victim name and cause of death
  • Who was responsible for the death
  • Last words spoken by the victim
  • Season and episode information
  • Number of deaths (for mass casualties)

Features

  • Filter by victim name or cause of death
  • Pagination support with limit and offset
  • Comprehensive death database covering major plot deaths

Valid Death IDs

  • ID 1: Emilio Koyama (Season 1, Episode 1)
  • ID 2: Krazy-8 (Season 1, Episode 3)
  • ID 3: Tuco Salamanca (Season 2, Episode 2)

Query Parameters

ParameterTypeRequiredDescriptionExample
idintegerRequired
Unique death ID (1-65)
1

Important Notes

  • Death ID is required and must be an integer between 1-11
  • Invalid IDs will return a 404 error
  • Contains spoiler information for Breaking Bad series

Example Requests

Get Emilio Koyama's death (ID: 1)

GET https://api.mridul.tech/api/breaking-bad/deaths/1

Get Krazy-8's death (ID: 2)

GET https://api.mridul.tech/api/breaking-bad/deaths/2

Code Examples

JavaScript (Fetch)

const deathId = 1;
fetch(`https://api.mridul.tech/api/breaking-bad/deaths/${deathId}`)
  .then((response) => response.json())
  .then((data) => {
    if (data.success) {
      const death = data.data;
      console.log(
        `${death.death} died from ${death.cause} in S${death.season}E${death.episode}`
      );
      console.log(`Responsible: ${death.responsible}`);
      console.log(`Last words: "${death.last_words}"`);
    }
  });

Python (requests)

import requests

death_id = 1

try:
    response = requests.get(f'https://api.mridul.tech/api/breaking-bad/deaths/{death_id}')
    
    if response.status_code == 200:
        data = response.json()
        
        if data['success']:
            death = data['data']
            print(f"{death['death']} died from {death['cause']} in S{death['season']}E{death['episode']}")
            print(f"Responsible: {death['responsible']}")
            print(f'Last words: "{death["last_words"]}"')
        else:
            print("API returned success: false")
    else:
        print(f"Error: {response.status_code}")
        
except requests.exceptions.RequestException as e:
    print(f"Request failed: {e}")
except KeyError as e:
    print(f"Missing key in response: {e}")
except Exception as e:
    print(f"An error occurred: {e}")

cURL

curl "https://api.mridul.tech/api/breaking-bad/deaths/1"

Response Format

Success Response (200)

{
  "success": true,
  "data": {
    "death_id": 1,
    "death": "Emilio Koyama",
    "cause": "Phosphine poisoning",
    "responsible": "Walter White",
    "last_words": "No, no, no, no!",
    "season": 1,
    "episode": 1,
    "number_of_deaths": 1
  }
}

Response Fields

FieldTypeDescription
idstringUnique quote identifier
deathintegerName of the victim
causestringCause or method of death
responsiblestringCharacter responsible for the death
last_wordsstringFinal words spoken by the victim
seasonstringSeason number where death occurred
seriesstringSeries name (Breaking Bad or Better Call Saul)

Error Response - Death Not Found (404)

{
  "success": false,
  "error": "Death not found",
  "statusCode": 404
}

Error Response - Invalid ID (400)

{
  "success": false,
  "error": "Invalid death ID format",
  "statusCode": 400
}

Do you want more articles on React, Next.js, Tailwind CSS, and JavaScript?

Subscribe to my newsletter to receive articles straight in your inbox.

If you like my work and want to support me, consider buying me a coffee.

Buy Me A Coffee

Contact Me ☎️

Discuss A Project Or Just Want To Say Hi?
My Inbox Is Open For All.

Mail : contact@mridul.tech

Connect with me on Social Media

Contact Art