> ## 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.

# GetLyrics

> GetLyrics retrieves the lyrics for a specific song.
 Returns time-synchronized lyrics when available, otherwise plain text.



## OpenAPI

````yaml /api/anghami-sdk.openapi.yaml get /v1/music/songs/{song_id}/lyrics
openapi: 3.1.0
info:
  title: Anghami + OSN+ SDK
  description: >-
    Unified OpenAPI bundle covering all Anghami + OSN+ SDK services (music +
    video streaming).
  contact:
    name: Anghami Developer Platform
    email: developers@anghami.com
  version: 1.0.0
servers:
  - url: https://sdk.anghami.com
security: []
paths:
  /v1/music/songs/{song_id}/lyrics:
    get:
      tags:
        - MusicCatalogService
      summary: GetLyrics
      description: |-
        GetLyrics retrieves the lyrics for a specific song.
         Returns time-synchronized lyrics when available, otherwise plain text.
      operationId: GetLyrics
      parameters:
        - name: Authorization
          in: header
          description: >-
            OAuth 2.0 Bearer token for user-authenticated requests. Format:
            Bearer <access_token>. Optional if x-api-key is provided.
          required: false
          schema:
            type: string
            example: Bearer eyJhbGciOiJSUzI1NiIs...
        - name: x-api-key
          in: header
          description: >-
            API key for server-to-server access without user context. Optional
            if Authorization is provided.
          required: false
          schema:
            type: string
            example: ang_live_...
        - name: Accept-Language
          in: header
          description: >-
            Preferred locale for localized content (BCP 47). Determines which
            language variant is returned for LocalizedString fields.
          required: false
          schema:
            type: string
            example: ar
        - name: song_id
          in: path
          description: Unique identifier of the song whose lyrics to retrieve.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sdk_catalog_v1_GetLyricsResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    sdk_catalog_v1_GetLyricsResponse:
      type: object
      properties:
        lyrics:
          $ref: '#/components/schemas/sdk_catalog_v1_Lyrics'
        syncedLyrics:
          $ref: '#/components/schemas/sdk_catalog_v1_SyncedLyrics'
      description: |-
        GetLyricsResponse is the response message containing the song's lyrics.
         Returns either plain-text or time-synchronized lyrics depending on availability.
    ValidationError:
      type: object
      properties:
        violations:
          type: array
          items:
            $ref: '#/components/schemas/FieldViolation'
          description: List of validation violations
      required:
        - violations
      description: >-
        ValidationError is returned when request validation fails. It contains a
        list of field violations describing what went wrong.
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message (e.g., 'user not found', 'database connection failed')
      description: >-
        Error is returned when a handler encounters an error. It contains a
        simple error message that the developer can customize.
    sdk_catalog_v1_Lyrics:
      type: object
      properties:
        lines:
          type: array
          items:
            type: string
            description: Individual lines of the lyrics in display order.
      description: >-
        Lyrics represents plain-text lyrics for a song without timing
        information.
    sdk_catalog_v1_SyncedLyrics:
      type: object
      properties:
        lines:
          type: array
          items:
            $ref: '#/components/schemas/sdk_catalog_v1_SyncedLyricsLine'
      description: >-
        SyncedLyrics represents time-synchronized lyrics for a song
        (karaoke-style).
    FieldViolation:
      type: object
      properties:
        field:
          type: string
          description: >-
            The field path that failed validation (e.g., 'user.email' for nested
            fields). For header validation, this will be the header name (e.g.,
            'X-API-Key')
        description:
          type: string
          description: >-
            Human-readable description of the validation violation (e.g., 'must
            be a valid email address', 'required field missing')
      required:
        - field
        - description
      description: FieldViolation describes a single validation error for a specific field.
    sdk_catalog_v1_SyncedLyricsLine:
      type: object
      properties:
        text:
          type: string
          description: The text content of this lyrics line.
        startTimeMs:
          type: string
          format: int64
          description: >-
            Start time of this line in milliseconds from the beginning of the
            track.
      description: SyncedLyricsLine represents a single line of time-synchronized lyrics.

````