Blogs

Tools

Quick Links

Mridul.tech

Home/Breaking Bad API/Single Character Endpoint

Single Character Endpoint

Get information about all Breaking Bad characters with optional filtering and pagination.

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

Get information about all Breaking Bad characters with optional filtering and pagination.

Overview

This endpoint returns detailed information about a specific Breaking Bad character identified by their unique ID. Character IDs range from 1 to 62, covering all main and supporting characters from the series.

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.

Character Information Includes

  • Full name and birthday
  • Current status (alive, deceased, etc.)
  • Occupation(s) and nickname
  • High-quality character image
  • Season appearances and actor information

Features

  • Filter by character name
  • Pagination support with limit and offset
  • Detailed character information, including images
  • Season appearance tracking

Valid Character IDs

Character IDs range from 1-62. Popular characters include:

  • ID 1: Walter White
  • ID 2: Jesse Pinkman
  • ID 3: Skyler White
  • ID 4: Walter White Jr.
  • ID 5: Henry Schrader

Query Parameters

ParameterTypeRequiredDescriptionExample
idintegerRequired
Unique character ID (1-62)
1

Important Notes

  • Character ID is required and must be an integer between 1-62
  • Invalid IDs will return a 404 error
  • IDs outside the valid range will return an error response

Example Requests

Get Walter White (ID: 1)

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

Get Jesse Pinkman (ID: 2)

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

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

GET https://api.mridul.tech/api/breaking-bad/characters/3

Code Examples

JavaScript (Fetch)

const characterId = 1;
fetch(`https://api.mridul.tech/api/breaking-bad/characters/${characterId}`)
  .then((response) => response.json())
  .then((data) => {
    if (data.success) {
      console.log("Character:", data.data.name);
    }
  });

Python (requests)

import requests

character_id = 1
response = requests.get(f'https://api.mridul.tech/api/breaking-bad/characters/{character_id}')

if response.status_code == 200:
  data = response.json()
  if data['success']:
    print("Character:", data['data']['name'])
else:
  print(f"Error: {response.status_code}")

cURL

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

Response Format

Success Response (200)

{
  "success": true,
  "data": {
    "name": "Walter White",
    "portrayed": "Bryan Cranston",
    "image_url": "https://static.wikia.nocookie.net/breakingbad/images/e/e7/BB-S5B-Walt-590.jpg",
    "full_name": "Walter Hartwell White Sr.",
    "birth_date": "September 7, 1958",
    "occupation": [
      "Co-Founder, Gray Matter Technologies",
      "Chemist, Sandia Laboratories",
      "Chemistry Teacher, J. P. Wynne High School (former)",
      "Crystal Meth Manufacturer (former)",
      "Drug Kingpin (former)",
      "Co-Owner, A1A Car Wash (former)",
      "Co-Owner, Vamonos Pest (former)"
    ],
    "episodes_count": "62",
    "series": "Breaking Bad",
    "appearances": ["1", "2", "3", "4", "5a", "5b"],
    "id": 1
  }
}

Response Fields

FieldTypeDescription
idintegerUnique character identifier
namestringCharacter's full name
portrayedstringActor who portrayed the character
image_urlstringURL to character's image
full_namestringFull name of the character
birthdaystringCharacter's birthday in MM-DD-YYYY format
occupationarrayList of character's occupations
episodes_countstringNumber of Episodes the character appeared in
seriesstringName of the series
appearancesarraySeason list, the character appeared in

Error Response - Character Not Found (404)

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

Error Response - Invalid ID (400)

{
  "success": false,
  "message": "Character not found"
}

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