A Podcast Index API library for Node.js
Homepage | Source | npm |
Install with npm
npm install podcast-index-api --save
Sign up for API credentials here: https://api.podcastindex.org/
Description of API endpoints, arguments and returned data: https://podcastindex-org.github.io/docs-api/
Require the lib from your javascript file
const api = require('podcast-index-api')("YOUR_API_KEY_HERE", "YOUR_API_SECRET_HERE", "CUSTOM_USER_AGENT_HERE")
Using Async/Await
const results = await api.searchByTerm('Joe Rogan Experience')
Using Promise
api.searchByTerm('Joe Rogan Experience').then(results => { console.log(results) })
custom(path: String, queries: Object)
searchByTerm(q: String, val: String, clean: Boolean, fullText: Boolean)
searchByTitle(q: String, val: String, clean: Boolean, fullText: Boolean)
searchEpisodesByPerson(q: String, fullText: Boolean)
podcastsByFeedUrl(feedUrl: String)
podcastsByFeedId(feedId: Number)
podcastsByFeedItunesId(itunesId: Number)
podcastsByGUID(guid: Number)
podcastsByTag()
podcastsTrending(max: Number, since: Number, lang: String, cat: String, notcat: String)
podcastsDead()
episodesByFeedId(feedId: Number, since: Number, max: Number, fullText: Boolean)
episodesByFeedUrl(feedUrl: String, since: Number, max: Number, fullText: Boolean)
episodesByItunesId(itunesId: Number, since: Number, max: Number, fullText: Boolean)
episodesById(id: Number, fullText: Boolean)
episodesRandom(max: Number, lang: String, cat: String, notcat: String, fullText: Boolean)
recentFeeds(max: Number, since: Number, cat: String, lang: String, notcat: String)
recentEpisodes(max: Number, excludeString: String, before: Number, fullText: Boolean)
recentNewFeeds(max: Number, since: Number)
recentSoundbites(max: Number)
valueByFeedUrl(feedUrl: String)
valueByFeedId(feedId: Number)
categoriesList()
hubPubNotifyById(feedId: Number)
hubPubNotifyByUrl(feedUrl: string)
addByFeedUrl(feedUrl: String, chash: String, itunesId: Number)
addByItunesId(itunesId: Number)