Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krtirtho/piped_client
[WIP] API Client for https://piped.video
https://github.com/krtirtho/piped_client
dart dart-package flutter newpipe piped youtube youtube-api
Last synced: 19 days ago
JSON representation
[WIP] API Client for https://piped.video
- Host: GitHub
- URL: https://github.com/krtirtho/piped_client
- Owner: KRTirtho
- License: mit
- Created: 2023-05-13T17:22:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-17T15:59:36.000Z (11 months ago)
- Last Synced: 2024-10-19T04:11:00.161Z (3 months ago)
- Topics: dart, dart-package, flutter, newpipe, piped, youtube, youtube-api
- Language: Dart
- Homepage:
- Size: 32.2 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Piped.dart
Simple api client for [piped.video](https://piped.video), an alternative frontend for YouTube
Supports both Dart and Flutter## Installation
For flutter
```bash
$ flutter pub add piped_client
```For dart only,
```bash
$ dart pub add piped_client
```## Usage
Simply use the exported `PipedClient` to create an instance for the client
```dart
import 'package:piped_client/piped_client.dart';void main() async {
final client = PipedClient();final result = await client.search('piped');
for (final item in result.items) {
if (item is PipedSearchItemStream) {
print('Stream: ${item.title} => ${item.url}');
} else if (item is PipedSearchItemChannel) {
print('Channel: ${item.name} => ${item.url}');
} else if (item is PipedSearchItemPlaylist) {
print('Playlist: ${item.name} => ${item.url}');
}
}
}
```**Following endpoints currently implemented:**
- [x] /search
- [x] /streams
- [x] instance-list (parses Instance.md)## License
[MIT](./LICENSE)