Blogs

Tools

Quick Links

Mridul.tech

Home/Breaking Bad API/Single Episode Endpoint

Single Episode Endpoint

Get detailed information about a specific episode using its unique ID.

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

Get detailed information about a specific episode using its unique ID.

Overview

This endpoint returns detailed information about a specific episode from either Breaking Bad or Better Call Saul. Episode IDs range from 1 to 125, covering all episodes from both series.

Rate Limiting

2000 requests per 24 hours per IP address

Episode Coverage

  • 5 Seasons
  • 62 Episodes
  • 2008-2013

Features

  • Filter by series, season, or episode number
  • Pagination support with limit and offset
  • Episode titles and air dates
  • Character appearances per episode

Valid Episode ID Ranges

  • Breaking Bad: Episodes 1-62

Query Parameters

ParameterTypeRequiredDescriptionExample
idintegerRequired
Unique episode ID (1-125)
1

Important Notes

  • Episode 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 Breaking Bad Pilot (ID: 1)

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

Get Breaking Bad Season 2 Episode 1

GET https://api.mridul.tech/api/breaking-bad/episodes/8

Code Examples

JavaScript (Fetch)

const episodeId = 1;
fetch(`https://api.mridul.tech/api/breaking-bad/episodes/${episodeId}`)
  .then((response) => response.json())
  .then((data) => {
    if (data.success) {
      const episode = data.data;
      console.log(
        `${episode.series} - S${episode.season}E${episode.episode}: ${episode.title}`
      );
    }
  });

Python (requests)

import requests

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

if response.status_code == 200:
  data = response.json()
  if data['success']:
    episode = data['data']
    print(f"{episode['series']} - S{episode['season']}E{episode['episode']}: {episode['title']}")
else:
  print(f"Error: {response.status_code}")

cURL

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

Response Format

Success Response (200)

{
  "success": true,
  "data": {
    "episode_id": "101",
    "title": "Pilot",
    "season": "1",
    "air_date": "January 20, 2008",
    "characters": [
      "Walter White",
      "Jesse Pinkman",
      "Skyler White",
      "Hank Schrader",
      "Marie Schrader",
      "Walter White Jr.",
      "Krazy-8",
      "Bogdan Wolynetz"
    ],
    "episode": "1",
    "series": "Breaking Bad",
    "id": 1
  }
}

Response Fields

FieldTypeDescription
episode_idintegerUnique episode identifier
titlestringEpisode title
seasonstringSeason number
air_datestringOriginal air date in MM-DD-YYYY format
charactersarrayList of main characters appearing in the episode
episodestringEpisode number within the season
seriesstringSeries name (Breaking Bad or Better Call Saul)

Error Response (400/404/429/500)

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

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