• Resolved pharefm

    (@pharefm)


    How do we get the actual episode ‘podcast-player’ or ‘podcast-download’ link (with tracking) through the REST API ?

    Also is it possible to get the category1, category2, category3 and subcategories translations using the REST API
    those terms are already translated (ie in french) in the wordpress backend

    Society & Culture = Société & Culture

    using something like:
    wp-json/wp/v2/series?&lang=fr

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Jonathan Bossenger

    (@psykro)

    Hello @pharefm

    At the moment, we support the following custom REST API end points

    wp-json/ssp/v1/episodes

    Will return a list of all podcast episodes.

    wp-json/ssp/v1/podcast

    Will return the default podcast data, including any additional data setup under **Feed Details**.

    wp-json/wp/v2/series

    Will return the series data, including any additional data setup under **Feed Details** for that series.

    Please take a look at these API end points and see if they fulfil your needs.

    Thread Starter pharefm

    (@pharefm)

    Using
    /wp-json/ssp/v1/episodes
    I do get the mp3 url, but it’s the raw_audio_file_url not the download_link which allows tracking ie ‘podcast-player’ or ‘podcast-download’

    Plugin Contributor Jonathan Bossenger

    (@psykro)

    Thanks for the update.

    Please won’t you log an issue for this on our GitHub repository, so that we can schedule this in, thanks

    https://github.com/TheCraigHewitt/Seriously-Simple-Podcasting/issues

    Thread Starter pharefm

    (@pharefm)

    What about the second part of my question, regarding the “translated” Categories? Any way to get those through the REST API.

    djsilverfox

    (@djsilverfox)

    Thanks for the API info. I can get some, but not all of my episodes through this. How can I get the full list please? Can I filter by series?

    Dave

    Thread Starter pharefm

    (@pharefm)

    Have you tried increasing the ?per_page=
    I defaults to 10, so you can use ?per_page=50 if you want (up to 100)
    https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/

    Plugin Contributor Jonathan Bossenger

    (@psykro)

    Hi @pharefm as far as I know language translations are not available by default through the REST API. According to this Stack Overflow post you can enable this functionality using a translation plugin, like WPML

    https://stackoverflow.com/questions/45837701/how-to-get-wordpress-api-data-by-language

    If you have enabled such a plugin, and it does not work, please log an issue on the GitHub repository, along with details of the plugin you are using, and we can look into it.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘REST API Audio URL +more questions’ is closed to new replies.