https://github.com/defro/waatch-api
This package can get movie, tv series, streaming provider from waatch.co
https://github.com/defro/waatch-api
api api-client captainwatch movie streaming tvshow waatch
Last synced: 7 months ago
JSON representation
This package can get movie, tv series, streaming provider from waatch.co
- Host: GitHub
- URL: https://github.com/defro/waatch-api
- Owner: defro
- License: mit
- Created: 2019-09-13T23:47:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:17:59.000Z (over 2 years ago)
- Last Synced: 2025-01-27T13:49:29.388Z (8 months ago)
- Topics: api, api-client, captainwatch, movie, streaming, tvshow, waatch
- Language: PHP
- Homepage: https://waatch.docs.apiary.io
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Waatch API
[](https://github.com/defro/waatch-api/releases)
[](LICENSE)
[](https://packagist.org/packages/defro/waatch-api)This package can get movie, tv series, streaming provider from [waatch.co](https://waatch.co) API.
Get more details on this API on [apiary](https://waatch.docs.apiary.io/).
Here's a quick example:
```php
$client = new \GuzzleHttp\Client();
$waatch = new \Defro\Waatch\Api($client);
$waatch
->setApiKey('YOUR_WAATCH_API_KEY') // on your account profile
->setLanguage('fr') // Language ISO-639-1
;
```## Movie
Get detail info about the movie.
```php
$movie = $waatch
->getMovie(857) // The Movie DB ID of "Saving Private Ryan"
;
```Set country ISO code to filter streaming providers of this country.
```php
$movie = $waatch
->setCountry('fr') // All streaming providers in France (ISO-3166)
->getMovie(374720) // The Movie DB ID of "Dunkirk"
;
```Filter streaming provider of one movie.
```php
$movie = $waatch
->getMovie('tt0093058', 'netflix') // The IMDB ID of "Full Metal Jacket" and Netfix provider
;
```## TV Show
Get detail info about a TV show.
```php
$tvShow = $waatch
->getTvShow(1668) // The Movie DB ID of "Friends"
;
```## Streaming provider
Get all providers.
```php
$providers = $waatch
->getProviders()
;
```Get all Movies and TV Shows for a specific provider
```php
$provider = $waatch
->getProvider('itun') // iTunes reference ID
;
```## License
The MIT License (MIT). Please see [license file](LICENSE) for more information.