Socket
Socket
Sign inDemoInstall

streaming-availability

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    streaming-availability

Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 59 countries!


Version published
Weekly downloads
238
increased by366.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Streaming Availability API TypeScript Client

npm tsdoc

This client can be used in both JavaScript and TypeScript projects; and both in browser and Node environment.

Since using this client in browser would expose your API key to the public, it is more secure to use it in server-side applications. Using it in browser is only recommended for personal projects and development purposes.

Streaming Availability API

Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 59 countries!

API Key

To get an instant free subscription to start using the API, you can visit the RapidAPI page of the API.

With a free subscription, you can send 100 requests per day. To send more requests, you can upgrade to paid plans whenever you like.

Features

  • Query streaming availability info of the movies and series via their TMDb or IMDd ids.
  • Search for movies and series via their titles, genres, keywords, release years on specific streaming services (e.g.: Get all the zombie action movies available on Netflix and Disney+)
  • Order the search results by titles, release year or popularity over different time periods (e.g.: get the all-time most popular movies on Netflix US, get the most popular series in the last 7 days on Amazon Prime and Disney+ in the United Kingdom)
  • Returned streaming availability info includes:
    • Deep links into the streaming services for movies, series, seasons and episodes,
    • Available video qualities (eg. SD, HD, UHD),
    • Available subtitles and audios,
    • First detection time of the shows on the streaming services,
    • Expiry date of the shows/seasons/episodes on the streaming services,
    • All the available options to stream a show (e.g. via subscription, to buy/rent, for free, available via an addons),
    • Price and currency information for buyable/rentable shows
  • Channel and addon support (e.g. Apple TV Channels, Hulu Addons, Prime Video Channels)
  • Posters, backdrops, cast & director information, genres, rating and many other details of the shows
  • Output also includes TMDB and IMDb ids for every show

Install

Via NPM

npm i streaming-availability

Requires Node version 18.0.0 or higher.

Via Script Tag from CDN

<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v4.0.3/bundle.min.js"></script>

This script creates a global variable at window.streamingAvailability where you can access to the module.

Usage

Node

import * as streamingAvailability from "streaming-availability";

const RAPID_API_KEY = "<YOUR_RAPID_API_KEY>";

const client = new streamingAvailability.Client(new streamingAvailability.Configuration({
	apiKey: RAPID_API_KEY
}));

// Start using the client

Script Tag

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Example</title>
</head>
<body style="white-space: pre-line">
	<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v4.0.3/bundle.min.js"></script>
	<script type="module">
		const RAPID_API_KEY = "<YOUR_RAPID_API_KEY>";

		const client = new streamingAvailability.Client(new streamingAvailability.Configuration({
			apiKey: RAPID_API_KEY
		}));

		// Start using the client
	</script>
</body>
</html>

Examples

Get The Godfather's Streaming Availability Info

import * as streamingAvailability from "streaming-availability";

const RAPID_API_KEY = "<YOUR_RAPID_API_KEY>";

const client = new streamingAvailability.Client(new streamingAvailability.Configuration({
	apiKey: RAPID_API_KEY
}));

let show = await client.showsApi.getShow(
	{id: "tt0068646", country: "us"}
);

console.log(show.title);
console.log(show.overview);
show.streamingOptions["us"].forEach((streamingOption) => {
	console.log(streamingOption.link);
});
Via Script Tag
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>The Godfather</title>
</head>
<body style="white-space: pre-line">
	<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v4.0.3/bundle.min.js"></script>
	<script type="module">
		const RAPID_API_KEY = "<YOUR_RAPID_API_KEY>";

		const client = new streamingAvailability.Client(new streamingAvailability.Configuration({
			apiKey: RAPID_API_KEY
		}));

		let show = await client.showsApi.getShow(
			{id: "tt0068646", country: "us"}
		);
		document.body.textContent = show.title + "\r\n";
		document.body.textContent += show.overview + "\r\n";
		show.streamingOptions["us"].forEach((streamingOption) => {
			document.body.textContent +=  streamingOption.link + "\r\n";
		});
	</script>
</body>
</html>

Checkout examples folder for the rest of the examples.

Terms & Conditions and Attribution

While the client libraries have MIT licenses, the Streaming Availability API itself has further Terms & Conditions. Make sure to read it before using the API.

Notably, the API requires an attribution to itself, if the data acquired through is made public. You can read further about the attribution requirement on the Terms & Conditions page.

Contact Us

If you have any questions or need further assistance, please don't hesitate to reach us via our contact form.

FAQ

  • I run into an issue. How can I get help?

    • If the issue is related to the API itself, please create a post here, and we will help with the issue.
    • If the issue is specific to a client library, then you can create a new issue on the respective repository of the library.
  • API returned me some wrong data. What can I do?

    • Send us a message with details of your findings. You can reach ous via our contact form. Once we receive the message we will take a look into the problems and fix the data.
  • I have a request to get a new streaming service supported by the API.

  • I need a client library in another language.

  • What is RapidAPI?

    • RapidAPI is the world's largest API marketplace. We use RapidAPI to handle the API subscriptions for us. You can instantly subscribe to Streaming Availability on RapidAPI and start using the Streaming Availability API through RapidAPI right away.

Client Libraries

  1. Go
  2. TypeScript/JavaScript

Services Supported

Service IdService NameSupported Countries
netflixNetflix58 Countries
primePrime Video56 Countries
disneyDisney+36 Countries
hboHBO Max24 Countries
huluHuluUnited States
peacockPeacockUnited States
paramountParamount+18 Countries
starzStarzUnited States
appleApple TV52 Countries
mubiMubi53 Countries
stanStanAustralia
nowNowUnited Kingdom, Ireland, Italy
craveCraveCanada
all4Channel 4United Kingdom, Ireland
iplayerBBC iPlayerUnited Kingdom
britboxBritBoxUnited States, Canada, Australia, South Africa
hotstarHotstarIndia, Canada, United Kingdom, Singapore
zee5Zee558 Countries
curiosityCuriosity Stream57 Countries
wowWowGermany

Countries Supported

Country CodeCountry Name
aeUnited Emirates
arArgentina
atAustria
auAustralia
azAzerbaijan
beBelgium
bgBulgaria
brBrazil
caCanada
chSwitzerland
clChile
coColombia
cyCyprus
czCzech Republic
deGermany
dkDenmark
ecEcuador
eeEstonia
esSpain
fiFinland
frFrance
gbUnited Kingdom
grGreece
hkHong Kong
hrCroatia
huHungary
idIndonesia
ieIreland
ilIsrael
inIndia
isIceland
itItaly
jpJapan
krSouth Korea
ltLithuania
mdMoldova
mkNorth Macedonia
mxMexico
myMalaysia
nlNetherlands
noNorway
nzNew Zealand
paPanama
pePeru
phPhilippines
plPoland
ptPortugal
roRomania
rsSerbia
ruRussia
seSweden
sgSingapore
siSlovenia
thThailand
trTurkey
uaUkraine
usUnited States
vnVietnam
zaSouth Africa

Keywords

FAQs

Last updated on 27 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc