piped_dart/doc/VideoApi.md

3.9 KiB

piped_api.api.VideoApi

Load the API package

import 'package:piped_api/api.dart';

All URIs are relative to https://pipedapi.kavin.rocks

Method HTTP request Description
comments GET /comments/{videoId} Gets Comments
commentsNextPage GET /nextpage/comments/{videoId} Gets more comments
streamInfo GET /streams/{videoId} Gets Video Information

comments

CommentsPage comments(videoId)

Gets Comments

Gets the comments for a video.

Example

import 'package:piped_api/api.dart';

final api = PipedApi().getVideoApi();
final String videoId = dQw4w9WgXcQ; // String | The video ID of the YouTube video you want to get comments from.

try {
    final response = api.comments(videoId);
    print(response);
} catch on DioError (e) {
    print('Exception when calling VideoApi->comments: $e\n');
}

Parameters

Name Type Description Notes
videoId String The video ID of the YouTube video you want to get comments from.

Return type

CommentsPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

commentsNextPage

CommentsPage commentsNextPage(videoId, nextpage)

Gets more comments

Gets more comments.

Example

import 'package:piped_api/api.dart';

final api = PipedApi().getVideoApi();
final String videoId = dQw4w9WgXcQ; // String | The video ID of the YouTube video you want to get more comments from.
final String nextpage = nextpage_example; // String | The next page token to get more comments from.

try {
    final response = api.commentsNextPage(videoId, nextpage);
    print(response);
} catch on DioError (e) {
    print('Exception when calling VideoApi->commentsNextPage: $e\n');
}

Parameters

Name Type Description Notes
videoId String The video ID of the YouTube video you want to get more comments from.
nextpage String The next page token to get more comments from.

Return type

CommentsPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

streamInfo

VideoInfo streamInfo(videoId)

Gets Video Information

Gets all available Stream information about a video.

Example

import 'package:piped_api/api.dart';

final api = PipedApi().getVideoApi();
final String videoId = dQw4w9WgXcQ; // String | The video ID of the YouTube video you want to get information about.

try {
    final response = api.streamInfo(videoId);
    print(response);
} catch on DioError (e) {
    print('Exception when calling VideoApi->streamInfo: $e\n');
}

Parameters

Name Type Description Notes
videoId String The video ID of the YouTube video you want to get information about.

Return type

VideoInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]