Anghami Track Chart

Return Anghami track chart entries. chartType accepts play or like. Anghami stores both genre and country charts in a single table, so the handler defaults code2 to 00 (global) and genre to all genres when unspecified. A single request may use either genre or code2, not both.

Path Parameters
  • chartType
    Type: string enum
    required

    Anghami track chart type (e.g. play, like).

    values
    • play
    • like
Query Parameters
  • date
    Type: string Format: date

    Date for the chart slice (YYYY-MM-DD). Required unless latest=true.

  • latest
    Type: boolean

    If true, use the most recently available chart date and ignore date.

  • limit
    Type: integer
    min:  
    1

    Maximum number of items to return per request.

  • offset
    Type: integer
    min:  
    0

    Number of items to skip from the start of the result set; pair with limit to paginate.

  • code2
    required

    ISO 3166-1 alpha-2 country code (uppercase, e.g. 'US') or 'GLOBAL'. When omitted, the platform's default chart scope applies.

    • Type: string
      min length:  
      2
      max length:  
      2

      ISO 3166-1 alpha-2 country code (2 letters, e.g. 'US', 'BR', 'GB').

  • duration
    Type: string enum

    Chart duration window. One of daily, monthly, weekly, yearly, semi-yearly, real-time, all_time.

    values
    • daily
    • monthly
    • weekly
    • yearly
    • semi-yearly
    • real-time
    • all_time
  • genre
    Type: string
    max length:  
    100
    required

    Genre filter for the chart slice. Lowercased and trimmed.

  • cityId
    Type: integer
    min:  
    0
    max:  
    2147483647

    Chartmetric city ID to scope the chart to a city.

Responses
  • application/json
Request Example for get/api/charts/anghami/track/{chartType}
curl 'https://api.chartmetric.com/api/charts/anghami/track/play?code2=&genre=' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "obj": [
    {
      "entityId": 15191225,
      "targetId": "44638780",
      "country": "00",
      "cityId": 0,
      "genre": "Country",
      "rank": 1,
      "rankDiff": 0,
      "rankTrend": [
        {
          "timestp": "2025-06-29",
          "rank": "1"
        }
      ],
      "peakDate": "2023-09-14",
      "peakRank": 1,
      "velocity7Day": 0,
      "periodsOnChart": 622,
      "consecutivePeriods": 622,
      "chartedDate": "2025-07-04",
      "name": "Love Story",
      "imageUrl": "https://i.scdn.co/image/1558776870134bc39c55fd278f2748d338eb7887",
      "createdAt": "2025-07-07T10:44:56.000Z",
      "artists": [
        {
          "careerStage": "superstar",
          "code2": "US",
          "id": 2762,
          "name": "Taylor Swift",
          "imageUrl": "https://share.chartmetric.com/artists/299/172/11172299/11172299-profile.webp"
        }
      ],
      "album": {
        "id": 10998,
        "name": "Fearless",
        "label": "Big Machine Records",
        "releaseDate": "2008-01-01T00:00:00.000Z"
      },
      "optionalRows": {
        "overallRank": 0,
        "score": 0,
        "isComeback": false
      },
      "targetExtras": {
        "anghamiLikes": 64284,
        "anghamiPlays": 1788070
      },
      "isChartGenre": true
    }
  ]
}