Documentation Index
Fetch the complete documentation index at: https://docs.sdk.anghami.com/llms.txt
Use this file to discover all available pages before exploring further.
SoundtrackService is what makes the combined Anghami + OSN+ catalog interesting. It’s a bidirectional bridge between songs and video content:
| Direction | RPC | Returns |
|---|---|---|
| Video → Songs | GetSoundtrack | The list of songs featured in a show or movie. |
| Song → Video | GetAssociatedContent | The shows and movies that feature a given song. |
GetSoundtrack — “what’s the soundtrack of this show?”
Given a show or movie identifier, return the songs featured in it. The request takes the raw ID plus acontent_type (CONTENT_TYPE_SHOW or CONTENT_TYPE_MOVIE) so the server knows which catalog to look in.
GetAssociatedContent — “where else is this song featured?”
Given aSongID, return the shows and movies that feature it.
Why this exists
Most music APIs are music-only. Most video APIs are video-only. The cross-content surface is what differentiates Anghami + OSN+ — and it’s the data foundation for experiences like:- “Play the soundtrack” CTA on a movie detail page.
- “As heard in…” on a song detail page.
- Recommendation flows that bridge the two catalogs.
Performance
- The data is sparse — many titles don’t have soundtrack metadata, and many songs don’t have associated content. Both endpoints handle this gracefully (empty result sets, not errors).
- Treat soundtrack data as slow-moving; cache aggressively.