A library for searching for podcasts, parsing podcast RSS feeds and obtaining episodes details. Supports searching via iTunes and PodcastIndex.
Usage
Search for podcasts with 'widgets' in the title and find the top podcasts. Both
examples limit to 10 results and are set for the United Kingdom:
import 'package:podcast_search/podcast_search.dart';
void main() async {
var search = Search();
var results =
await search.search('widgets', country: Country.unitedKingdom, limit: 10);
for (var result in results.items) {
print('Found podcast: ${result.trackName}');
}
final feed = results.items[0].feedUrl;
if (feed != null) {
var podcast = await Feed.loadFeed(url: feed);
for (var episode in podcast.episodes) {
print('Episode title: ${episode.title}');
}
}
var charts = await search.charts(limit: 10, country: Country.unitedKingdom);
for (var result in charts.items) {
print('Episode title: ${result.trackName}');
}
}
Supported Namespace Tags
Podcasting 2.0
- Block
- Chapters
- Funding
- GUID
- Locked
- Person
- Transcripts (VTT, SRT & JSON formats)
- Value
- Alternate Enclosure
iTunes