Podcast Index API Javascript library
A Podcast Index API library for Node.js
Homepage | Source | npm
Installation
Install with npm
npm install podcast-index-api --save
Configuration
Sign up for API credentials here: https://api.podcastindex.org/
Require the lib from your javascript file
const api = require('podcast-index-api')("YOUR_API_KEY_HERE", "YOUR_API_SECRET_HERE")
Usage
Using Async/Await
const results = await api.searchByTerm('Joe Rogan Experience')
Using Promise
api.searchByTerm('Joe Rogan Experience').then(results => { console.log(results) })
Functions
searchByTerm(term: String)
podcastsByFeedUrl(url: String)
podcastsByFeedId(id: Number)
podcastsByFeedItunesId(itunesId: Number)
addByFeedUrl(url: String)
episodesByFeedId(id: Number)
episodesByFeedUrl(url: String)
episodesByItunesId(itunesId: Number)
recentEpisodes(max: Number, exclude: String)