Podcastindex-org / docs-api

Developer documentation for the podcastindex.org api.
https://podcastindex-org.github.io/docs-api/
MIT License
56 stars 31 forks source link

new endpoint: recent/modifiedfeeds #87

Closed filterdo closed 1 year ago

filterdo commented 1 year ago

Is there currently a way to see which feeds have been updated since a certain date? I can't tell if this is what recent/feeds accomplishes, since it maxes out at 1000 and there is no way to paginate beyond that.

stevencrader commented 1 year ago

That is what that endpoint is for but as you said, it has limitations.

You can also access feeds from object storage at https://tracking.podcastindex.org/current or using the yet to be documented https://api.podcastindex.org/api/1.0/recent/data?pretty. To view prior blocks, pass the nextSince value https://api.podcastindex.org/api/1.0/recent/data?pretty&since=1671079551

I'll get this documented soon. I somehow missed it and just found it searching the social.

filterdo commented 1 year ago

Thanks @stevencrader - So to have the most current data, you loop through nextSince until you reach the date that you last retrieved updates from the API? Is that correct?

stevencrader commented 1 year ago

I believe that's how it's supposed to work

daveajones commented 1 year ago

If using the "tracking" url, just walk backwards through previousTrackingUrl's until you hit the last "position" you had. That catches you up.

filterdo commented 1 year ago

I get an error: "invalid json response body at https://tracking.podcastindex.org/current reason: Unexpected token < in JSON at position 0"

Any idea why?

daveajones commented 1 year ago

Working fine on my side. What software or call type is giving you that error?

filterdo commented 1 year ago

Using node-fetch, but https://api.podcastindex.org/api/1.0/recent/data (and all other endpoints) works fine. So I am using that.