Breaking Bad Quotes

Breaking Bad Quotes

  • Category: Video


Using The Breaking Bad Quotes Public API

If you're a fan of the show Breaking Bad, you'll be excited to learn that there is a public API available that you can use to retrieve and display quotes from the show. In this blog, we'll learn how to use the Breaking Bad Quotes API with JavaScript.

Getting Started

To get started, we need to understand the structure of the API. The Breaking Bad Quotes API is a RESTful API that returns quotes from the show as JSON objects. The API is located at https://breaking-bad-quotes.herokuapp.com/v1/quotes.

API Example Code

Here is some code that you can use to retrieve quotes from the API using JavaScript:

fetch('https://breaking-bad-quotes.herokuapp.com/v1/quotes')
  .then(response => response.json())
  .then(data => {
     // Do something with the data 
     console.log(data[0].quote);
  });

This code uses the fetch function to send a GET request to the API endpoint. Once the response is received, it is parsed as JSON and the data is available for use in the callback function. In this example, we simply access the quote property of the first element in the returned array and log it to the console.

Here's another example that demonstrates how to use the API with the XMLHttpRequest object:

let xhr = new XMLHttpRequest();
xhr.open('GET', 'https://breaking-bad-quotes.herokuapp.com/v1/quotes');
xhr.responseType = 'json';
xhr.onload = function() {
   // Do something with the data
   console.log(xhr.response[0].quote);
};
xhr.send();

Here, we create an XMLHttpRequest object and send a GET request to the API endpoint. Once the response is received, it is parsed as JSON and the data is available for use in the onload callback function. Again, we simply access the quote property of the first element in the returned array and log it to the console.

Conclusion

In this blog, we've learned how to use the Breaking Bad Quotes API with JavaScript. By sending a GET request to the API endpoint, we can retrieve and display quotes from the show. So, if you're a fan of Breaking Bad, be sure to check out this API and start using it in your projects!

Visit to Breaking Bad Quotes website

Similar APIs of Video

Kaltura API

Kaltura API

Video

Get to market faster adding native media asset management and experience capabilities that scale effortlessly. Use Kaltura’s fully white-labeled platform and developer tools to power all things video, audio and image, including; secure hosting and streaming, html5 video player, asset management, video editing, video search, interactive video experiences, media transcoding, image transformations, deep media analytics and more. With Kaltura VPaaS, you get full control over provisioning, branding, and workflows. Stay focused on your core business by relying on the same video infrastructure that powers mission-critical applications for leading multi-national enterprises and media companies. Your developers and customers will love you for it!

editingbrandingaudio

Daily.co

Daily.co

Video

The Daily.co API adds video chat to any app or site, in minutes. We have more features that make live video easier to work with, so developers launch faster, ship more, and scale with global infrastructure.

videocallingapi

Zoom Video Call

Zoom Video Call

Video

The Zoom API is the primary means for developers to access a collection of resources from Zoom. The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the Zoom App Marketplace. To learn how to get your credentials and create private/public applications, read our Authorization Guide. All endpoints are available via https and are located at api.zoom.us/v2/.

zoomonlinevideo

Vidyard

Vidyard

Video

Powerful APIs and extensions allow you to build engaging video experiences into your applications and products. Allow your web application to interact with video as they're viewed. Programmatically manage your video library, metadata and events. Integrate Vidyard. Enable your users to create, send and track videos.

editplayscroll

API Video

API Video

Video

api.video erases the pains of video workflows. Our microservice enables developers to build, scale and operate video communication in their legacy apps, softwares and platforms with only few lines of code.

videocommunicationlegacy

Rocketium Video API

Rocketium Video API

Video

Rocketium Video API allows you to create Buzzfeed-like videos programmatically. Make creatives automatically with APIs Rocketium is an enterprise-grade solution for producing thousands of personalized, dynamic video and image content quickly.

videoproductionautomation

Czech Television

Czech Television

Video

TV programme of Czech TV. XML export TV programu – všeobecné informace o použití XML export pro konkrétní den a program získáte na URL adrese, jejíž tvar podléhá předpisům: datum zadávejte ve formátu: dd.mm.rrrr identifikátory televizních programů, které lze.

czechtvvideo

YouTube

YouTube

Video

Add YouTube functionality to your sites and apps. Use an embedded player to play videos directly in your app and customize the playback experience. Let users search YouTube content, upload videos, create and manage playlists, and more. Understand your users and how they interact with your channel and your videos. Enable users to subscribe to your YouTube channel with one click. Schedule live YouTube broadcasts and manage your broadcast video streams.

videosubscribeyoutube

Dailymotion

Dailymotion

Video

Dailymotion Developer API. Embed Dailymotion's videos in your website or application using our player. Upload a video on your Dailymotion's account programmatically using our API. Customize your video player settings (colors, logos and behaviors). Build custom reports based on aggregated performance measurements. Create and manage live events on the Dailymotion platform. Use our SDKs to integrate with Dailymotion's APIs in your favorite language.

sdkmoviesdaily

Vimeo

Vimeo

Video

Vimeo Developer API. Vimeo's API supports flexible, high-quality video integration with your custom apps. Enjoy a full-featured upload API: privacy controls, flexible storage, and automatic transcoding to host videos in the highest quality. Optimize your experience with a fully customizable player (with SDKs), and third-party links for web, mobile, or TV. Manage content, track metadata, and optimize videos with the powerful features included in your Vimeo membership. Join the most passionate video community on the planet, and integrate features that connect millions of creators around the world.

vimeofeaturesvideos