3 ms·
No Javascript or Python needed. Reminds me of when Google used to provide JSON from YouTube (and other) endpoints without requiring users to "sign up".
by 3xblah 7y ago
No Javascript or Python needed.
Reminds me of when Google used to provide JSON from YouTube (and other) endpoints without requiring users to "sign up".
# list instances
curl "https://instances.joinpeertube.org/api/v1/instances?start=0&count=5&sort=-createdAt"
# search an instance
curl "https://${instance}/api/v1/search/videos?start=0&count=50&search=$1"
# list video categories
curl https://${instance}/api/v1/videos/categories/
# list videos
curl "https://${instance}/api/v1/videos?start=0&count=500"