This client can be used in both JavaScript and TypeScript projects; and both in browser and Node environment.
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!
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.
npm i streaming-availability
Requires Node version
18.0.0or higher.
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v3.0.1/bundle.js"></script>
This script creates a global variable at window.streamingAvailability
where you can access to the module.
Warning: As it would expose your API key to visitors of the page, use this option only for private personal projects, or proof-of-concept works.
Do not use it for any public projects.
import streamingAvailability from "streaming-availability";
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
// Start using the client
const streamingAvailability = require("streaming-availability");
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
// Start using the client
import * as streamingAvailability from "streaming-availability";
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
// Start using the client
<!DOCTYPE html>
<html lang="en">
<head>
<title>Streaming Availability API In Browser Example</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v3.0.1/bundle.js"></script>
<script>
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
// Start using the client
</script>
</body>
</html>
Warning: As it would expose your API key to visitors of the page, use this option only for private personal projects, or proof-of-concept works.
Do not use it for any public projects.
import streamingAvailability from "streaming-availability"
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
const country = "us"; // Update with other country codes as you want, we support 59 countries!
const imdbId = "tt0468569";
client.getById({
imdbId: imdbId,
}).then(response => {
const result = response.result;
for(let streamingOption of result.streamingInfo[country]) {
let output = `${result.title} (${result.year}) is available on ${streamingOption.service} via ${streamingOption.streamingType} at link ${streamingOption.link}`;
if(streamingOption.quality != null) {
output += ` with ${streamingOption.quality.toUpperCase()} quality`;
}
if(streamingOption.price != null) {
output += ` for ${streamingOption.price.formatted}`;
}
console.log(output);
}
}).catch(error => {
console.log(error);
});
Checkout examples folder for the rest of the examples.
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.
I run into an issue. How can I get help?
API returned me some wrong data. What can I do?
I have a request to get a new streaming service supported by the API.
I need a client library in another language.
I need further details (e.g. posters, summaries, cast) about the shows. What can I do?
tmdbId field to the TMDB API's
movie-details
or
tv-series-details
endpoints
and get the other details of the shows.What is the difference between Streaming Availability API and TMDB API?
What is RapidAPI?
| Service Id | Service Name | Supported Countries |
|---|---|---|
netflix |
Netflix | 58 Countries |
prime |
Prime Video | 56 Countries |
disney |
Disney+ | 35 Countries |
hbo |
HBO Max | 24 Countries |
hulu |
Hulu | United States |
peacock |
Peacock | United States |
paramount |
Paramount+ | 18 Countries |
starz |
Starz | United States |
showtime |
Showtime | United States |
apple |
Apple TV | 52 Countries |
mubi |
Mubi | 55 Countries |
stan |
Stan | Australia |
now |
Now | United Kingdom, Ireland, Italy |
crave |
Crave | Canada |
all4 |
Channel 4 | United Kingdom, Ireland |
iplayer |
BBC iPlayer | United Kingdom |
britbox |
BritBox | United Kingdom, United States, Canada, Australia, South Africa |
hotstar |
Hotstar | India, Canada, United Kingdom, Singapore |
zee5 |
Zee5 | 58 Countries |
curiosity |
Curiosity Stream | 57 Countries |
wow |
Wow | Germany |
| Country Code | Country Name |
|---|---|
ae |
United Emirates |
ar |
Argentina |
at |
Austria |
au |
Australia |
az |
Azerbaijan |
be |
Belgium |
bg |
Bulgaria |
br |
Brazil |
ca |
Canada |
ch |
Switzerland |
cl |
Chile |
co |
Colombia |
cy |
Cyprus |
cz |
Czech Republic |
de |
Germany |
dk |
Denmark |
ec |
Ecuador |
ee |
Estonia |
es |
Spain |
fi |
Finland |
fr |
France |
gb |
United Kingdom |
gr |
Greece |
hk |
Hong Kong |
hr |
Croatia |
hu |
Hungary |
id |
Indonesia |
ie |
Ireland |
il |
Israel |
in |
India |
is |
Iceland |
it |
Italy |
jp |
Japan |
kr |
South Korea |
lt |
Lithuania |
md |
Moldova |
mk |
North Macedonia |
mx |
Mexico |
my |
Malaysia |
nl |
Netherlands |
no |
Norway |
nz |
New Zealand |
pa |
Panama |
pe |
Peru |
ph |
Philippines |
pl |
Poland |
pt |
Portugal |
ro |
Romania |
rs |
Serbia |
ru |
Russia |
se |
Sweden |
sg |
Singapore |
si |
Slovenia |
th |
Thailand |
tr |
Turkey |
ua |
Ukraine |
us |
United States |
vn |
Vietnam |
za |
South Africa |
Generated using TypeDoc