Skip to main content
POST
/
v1
/
library
/
likes:check
CheckLikedItems
curl --request POST \
  --url https://sdk.anghami.com/v1/library/likes:check \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "songIds": {
    "values": [
      {
        "value": "<string>"
      }
    ]
  },
  "albumIds": {
    "values": [
      {
        "value": "<string>"
      }
    ]
  }
}
'
{
  "results": {}
}

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.

Headers

Authorization
string
required

OAuth 2.0 Bearer token with the 'read' scope. Required for all library operations. Format: Bearer <access_token>.

Example:

"Bearer eyJhbGciOiJSUzI1NiIs..."

Accept-Language
string

Preferred locale for localized content in returned items (BCP 47).

Example:

"ar"

Body

application/json

CheckLikedItemsRequest is the request message for checking whether items are in the user's liked collection. Only songs and albums can be liked.

songIds
object

SongIDList is a list of song identifiers for batch operations.

albumIds
object

AlbumIDList is a list of album identifiers for batch operations.

Response

Successful response

CheckLikedItemsResponse is the response message indicating which items are liked.

results
object

Map of item ID to liked status. Every requested ID appears in this map. True indicates the item is in the user's liked collection.