https://github.com/mdvanes/filmnl-sdk
Unofficial TypeScript SDK to query film.nl
https://github.com/mdvanes/filmnl-sdk
Last synced: 3 months ago
JSON representation
Unofficial TypeScript SDK to query film.nl
- Host: GitHub
- URL: https://github.com/mdvanes/filmnl-sdk
- Owner: mdvanes
- License: cc0-1.0
- Created: 2023-09-29T11:57:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-29T12:52:55.000Z (over 1 year ago)
- Last Synced: 2025-01-11T11:14:11.281Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# filmnl-sdk
Unoffical SDK to query [film.nl](https://film.nl) implemented in TypeScript.
Disclaimer: I am not associated with film.nl or any of the providers, cinemas, streaming platforms. I do not own, control or promote any of the data that is returned by this SDK.
# Usage
Install with `npm i @mdworld/filmnl-sdk`
Get all the movies or tv shows that film.nl has with the keyword "blast":
```ts
import {find} from '@mdworld/filmnl-sdk';
await find("blast from the past");
/*
[
{ href: 'film/blast', title: 'Blast', year: 2004 },
...
{
href: 'film/blast-from-the-past',
title: 'Blast from the Past',
year: 1999
}
]
*/
```Get all the providers according to film.nl for a movie by the unique href as returned by `find()`:
```ts
import {getProviders} from '@mdworld/filmnl-sdk';
await getProviders("film/blast-from-the-past");
/*
{
title: 'Blast from the Past',
trailerHref: 'https://www.youtube.com/watch?v=Xq29uTtKW4M',
providers: [
{
name: 'Google Play',
href: 'https://play.google.com/store/movies/details?id=5QTPyasW7BY'
},
{
name: 'iTunes',
href: 'https://tv.apple.com/movie/blast-from-the-past/umc.cmc.3kud86szm0a9ag73suyksorq0?uo=5'
},
{
name: 'Amazon Prime',
href: 'https://www.primevideo.com/detail/B07VVTHRSC'
}
]
}
*/
```