The Loops Video Resource is much different than Pixelfed or Mastodon!

https://joinloops.org/developers/endpoints/video

#Loops #LoopsAPI

Loops - Video Endpoint

GET /api/v1/video/{id} โ€” returns a video resource.

Introducing Loops for Developers โœจ

https://joinloops.org/developers

#Loops #Developers #LoopsAPI

Loops - Developers

Get started with the Loops API: register an app, authenticate with OAuth, and make your first request.

Loops App Devs FYI: We have an endpoint for user preferences, if `hide_for_you_feed` is true, you should hide the FYF from them as they desire.

https://docs.joinloops.org/#tag/UserPreferences/operation/userPreferences.show

#Loops #LoopsAPI #LoopsDev

Loops API Docs

Loops App Devs FYI: The For You feed requires you to send an "impression" request after a user views or scrolls past a video, so you need to track the duration they viewed, otherwise pagination won't work.

We require this because the duration of viewed videos helps determine future recommendations in the algorithm.

https://docs.joinloops.org/#tag/ForYouFeed/operation/forYouFeed.recordImpression

#Loops #LoopsAPI #LoopsDevs

Loops API Docs

The most challenging part of this whole new joinloops.org/developers update was designing the OG image for each page, trying to surface the most relevant context in the short amount of space ๐Ÿ˜…

#Loops #LoopsAPI

There are two main ways you can identify a Loops server, the easiest is by checking `/api/v1/config` - no auth required.

You can also check Nodeinfo, but that requires two requests, and in some cases, is easier for multi-client apps.

#Loops #LoopsAPI

Loops doesn't use Link header pagination, I've never liked that, rather we use cursor based pagination with next and previous included directly in the response โœจ

#Loops #LoopsAPI

I've been working on a dedicated Developers section for https://joinloops.org that explains everything in detail, along with some example endpoints and resources to make it easier to get started building on Loops.

Shipping soon!

#Loops #Developers #LoopsAPI

Loops API docs have been updated!

https://docs.joinloops.org

#Loops #LoopsAPI

Loops API Docs