mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
3.2 KiB
3.2 KiB
piped_api.api.SearchApi
Load the API package
import 'package:piped_api/api.dart';
All URIs are relative to https://pipedapi.kavin.rocks
Method | HTTP request | Description |
---|---|---|
search | GET /search | Searches for videos, channels, and playlists. |
searchNextPage | GET /nextpage/search | Gets more search results |
search
SearchPage search(q, filter)
Searches for videos, channels, and playlists.
Searches for videos, channels, and playlists.
Example
import 'package:piped_api/api.dart';
final api = PipedApi().getSearchApi();
final String q = Techlore; // String | The search query string.
final SearchFilter filter = ; // SearchFilter | The filter parameter specifies a filter query that restricts the results to items that match the filter.
try {
final response = api.search(q, filter);
print(response);
} catch on DioError (e) {
print('Exception when calling SearchApi->search: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
q | String | The search query string. | |
filter | SearchFilter | The filter parameter specifies a filter query that restricts the results to items that match the filter. |
Return type
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]
searchNextPage
SearchPage searchNextPage(nextpage, q, filter)
Gets more search results
Gets more search results.
Example
import 'package:piped_api/api.dart';
final api = PipedApi().getSearchApi();
final String nextpage = nextpage_example; // String | The next page token to get more search results from.
final String q = Techlore; // String | The search query string.
final SearchFilter filter = ; // SearchFilter | The filter parameter specifies a filter query that restricts the results to items that match the filter.
try {
final response = api.searchNextPage(nextpage, q, filter);
print(response);
} catch on DioError (e) {
print('Exception when calling SearchApi->searchNextPage: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
nextpage | String | The next page token to get more search results from. | |
q | String | The search query string. | |
filter | SearchFilter | The filter parameter specifies a filter query that restricts the results to items that match the filter. |
Return type
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]