Giter VIP home page Giter VIP logo

breaking-bad--api's Introduction

Breaking Bad API

Documentation

Welcome to the Breaking Bad API! This documentation will supply with you all the information you need to start making your HTTP requests on this iconic TV-series. Give our documentation a read before you get started on your project, and don't forget about the ice trays!

Base URL

https://www.breakingbadapi.com/api/

Rate Limit

This API is free, I have no intention of creating authentication. However, to prevent harmful activity, there is a rate limit of 10,000 requests a day. If you happen to reach that limit, you will receive a 429 status code, and regain access after 24 hours.

Character Endpoints

Character Attributes

Attribute Type Description
id integer Unique Id per character
name string A character's full name
birthday string A character's birthday
occupation array List of character's known occupation
img string Character's image (as jpg)
status string Are they alive(or did Heisenberg get to them??)
nickname string A known nickname they are refered as
appearance array List of seasons that the character appeared in

Get all characters

Endpoint to retrieve information from all characters.

/api/characters

Get single character

/api/characters/1

Get a random character

/api/character/random

Get paginated characters

/api/characters?limit=10&offset=10

This request would give you an array of 10 characters, starting at index 10 (the 11th id).

Get paginated characters

/api/characters?limit=10&offset=10

Get specific character by name

/api/characters?name=Walter+White

Notice the 'plus sign' between the first and last name represents a space. This query only works with the full name of a character. Double check your spelling!

Episode Endpoints

Episode Attributes

Attribute Type Description
id integer Unique Id per episode
title string The title of the episode
season integer The season that the episode belongs to
episode integer The episode number of it's season
air_date string The original air date of the episode
characters array Main characters that are associated with the episode

Get all episodes

/api/episodes

Get an episode by id

/api/episodes/id

Quote Endpoints

Quote Attributes

Attribute Type Description
id integer Unique Id per quote
quote string The quote itself
author string The originator of the quote

Get all quotes

/api/quotes

Get quote by id

/api/quotes/id

Get a random quote

/api/quote/random

Get quote by author

/api/quote?author=Jesse+Pinkman

This endpoint allows you to accept all quotes from a specific author. Make sure to separate the first and last name with a 'plus sign'. Like the character query, you have to use the author's full name.

Death Endpoints

Death Attributes

Attribute Type Description
id integer Unique Id per death
death string The name of the deceased individual
cause string How the character met their demise
responsible string The person(s) responsible or affiliated with their death
last words string The famous last words
season integer The season the death occured in
episode integer The episode of the season
number_of_deaths integer The number of deaths that occured for this instance

Get all death information

/api/deaths

Get death count

/api/death-count

Get death count by name

/api/death-count?name=Gustavo+Fring

Be aware, not just any name will work. They have to have caused, or been affiliated with the death in some capacity. Don't forget about the 'plus sign' between the first and last name!

Get random death information about an individual

/api/random-death

BSD LISENCE ...BSD

breaking-bad--api's People

Contributors

thulin82 avatar timbiles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

breaking-bad--api's Issues

Death name

Hello!
I was testing death name and if the name of death have more than 2 words, response [] for example "Bodyguards+of+Gus+Fring" but if the death name have one or two words works perfect.
I think you can compare if the string have more than 2 words and only take the first word to search it in this case else take all words.
Regards

Unable to fetch data anymore

It looks like the api has been deprecated and the data is no longer available for use. Please provide the data (Links/Documents/Files) if available with you so that I can store it in a local object and continue using it. Thank you.

Death Reasons issue

Hello, I'm currently working on a website for a school project and I'm encountering a problem while calling the death information for Domingo Molina aka Krazy-8. All other characters need to be call with the name but Krazy-8 needs his nickname.

https://breakingbadapi.com/api/death?name=Domingo+Molina

Returns : []

https://breakingbadapi.com/api/death?name=Krazy-8

Returns :

[{"death_id":2,"death":"Krazy-8","cause":"Strangled with a bike lock.","responsible":"Walter White","last_words":"Unlock me, Walter","season":1,"episode":3,"number_of_deaths":1}]

Characters not ordered properly for Breaking Bad category

Characters not ordered properly on /characters enpoint when /characters?category=Breaking+Bad added. I would expect to see characters in the same order as before adding category param, which is sort by character id in ascending order.

Henry Schrader has name Hank Schrader when looking up deaths

When looking up character 5 in all characters, name of character is "Henry Schrader" but his associated death he has name "Hank Schrader". Probably should be the same so you can find the death info of a character that has died by looking them up by their name.

/characters name & limit queries not working

Hello,
Why can't I combine between name & limit queries in /api/characters

If I tried this:
/api/characters?name=s&limit=2
What I expect:
A list of 2 characters.
What I get:
A list of 17 characters

Return page name attribute in character object

Is it possible to return character object with page name attribute included?

Situation: I've created page to display character details. Let's say it's Walter White. URL to this page would be base_url/1. When this page is visited, I would use /1 to identify that ID of the character details is 1 and then query character details endpoint. Instead of this robust and SEO unfriendly approach, it would be much nicer if URL would be base_url/walter-white. I would use walter-white to do the query for character details and get the results.

The only way I could do this now is to manually create mapping between char_id & page_name. When base_url/walter-white is visited, I contact this mapping to get char_id and then do the query to the character details endpoint.

Attribute page_name would be character name with spaces replaced with - and dots and all other special characters removed, instead of & which would be converted to -and-.

Status error

Hi, there is an error writing Andrea's Cantillo status. It is written Deeased, while it should be Deceased ;)

Duplicated IDs for Stacey Ehrmantraut

I've noticed that it's possible to get character details for Stacey Ehrmantraut both on /characters/55 & /characters/117. Second one should be removed. Also, appearance node is null on that ID and this might produce bug for anyone using this node and expecting it to always be array.

API not working

The API is not working anymore.

Can you give us the .SQL file to be able to repair the API and still use it.

It's URGENT because i will need it for a school project....

Error 500 when making a request.

Hello there,

I am using this API for learning purposes. The endpoint I am using is the /quotes/id and I am getting an error 500 (Internal server error)

This is an example of the request and the error object it returns:

https://www.breakingbadapi.com/api/quotes/1
{
"name": "error",
"length": 118,
"severity": "FATAL",
"code": "28000",
"file": "miscinit.c",
"line": "716",
"routine": "InitializeSessionUserId"
}

Thank you for putting this API up for us developers to use and learn. Have a great day! ๐Ÿ˜Š

Thanks

And I just wanted to thank you for the api, was used for my project autocomplete
Thanks again for this project.

Birthday format

The birthday format is different in character/random. characters/ endpoint returns objects where birthday format is date, whereas random character endpoint returns date + time which is always "T00:00:00.000Z"
image
image

Elliott Schwartz's name is mispelled (in 2 different ways)

The character's entry states his name is Elliot Schwartz, while as far as I know his name is spelled with double t.

But in the episode entries, his name is spelled Eliott Schwartz, now with double T but only one L (see episode with id 62)

In quotes API call response , add an attribute which shows to whom that was deliverd to.

When I call this API
https://www.breakingbadapi.com/api/quotes/1
Current implementation

[{
"quote_id":1,
"quote":"I am not in danger, Skyler. I am the danger!",
"author":"Walter White","series":"Breaking Bad"
}]

Requested new response implementation

[{
"quote_id":1,
"quote":"I am not in danger, Skyler. I am the danger!",
"author":"Walter White","series":"Breaking Bad",
"to_whom":"Skyler"

}]

Urgent API Repair

Hello, my name is Alberto, and I need the api to work again as soon as possible. I have to deliver a job this December 9th and I have based myself on this great api, but now that it doesn't work I can't finish it. Please pick it up as soon as possible. Thanks. The error is 504, gateway time-out

Typo in repo description

Nothing big, i just spotted it and thought I'd list it as an issue (this is my first ever reported issue, so I'm sorry if i got it wrong)

also...your api is amazing. :)

Screen Shot 2020-06-24 at 2 14 23 PM

Typo needs to be fixed for Saul quote. Update query provided.

Typo in DB

        "quote_id": 81,
        "quote": "You tow suck at peddling meth.",
        "author": "Saul Goodman",
        "series": "Breaking Bad"

"quote": "You tow suck at peddling meth.",


The fix is
UPDATE quotes SET quote = "You two suck at peddling meth." WHERE quote_id = 81;
I'd update it if I had access but I don't. Hope this helps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.