---
agentTools:
  projectIndex: https://emysound.readme.io/llms.txt
---

# Gets track by ID.

Retrieves TrackInfo object by ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Emy JSON API",
    "description": "Emy JSON API used to access fingerprints storage",
    "version": "v1.1"
  },
  "servers": [
    {
      "url": "https://developers.emysound.com",
      "description": "Emysound Cloud"
    },
    {
      "url": "http://localhost:3340",
      "description": "Emysound Community Edition"
    }
  ],
  "paths": {
    "/api/v1.1/Tracks/{id}": {
      "get": {
        "tags": [
          "Tracks"
        ],
        "summary": "Gets track by ID.",
        "description": "Retrieves TrackInfo object by ID.",
        "operationId": "GetTrackById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Track ID to search.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON containing TrackInfo object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackInfo"
                }
              }
            }
          },
          "401": {
            "description": "Request not authorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Track with provided ID not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong. Contact support."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code.",
            "nullable": true
          },
          "message": {
            "minLength": 1,
            "type": "string",
            "description": "Error message."
          }
        },
        "additionalProperties": false,
        "description": "Object containing information about occured error."
      },
      "MediaType": {
        "enum": [
          "Any",
          "Audio",
          "Video",
          "AudioAndVideo"
        ],
        "type": "string",
        "description": "Media type."
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "TrackInfo": {
        "required": [
          "id",
          "mediaType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "Track unique identifier."
          },
          "title": {
            "type": "string",
            "description": "Track title.",
            "nullable": true
          },
          "artist": {
            "type": "string",
            "description": "Track artist.",
            "nullable": true
          },
          "metaFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Track related meta-fields used as additional parameters.",
            "nullable": true
          },
          "mediaType": {
            "$ref": "#/components/schemas/MediaType"
          },
          "audioTrackLength": {
            "type": "number",
            "description": "Audio track length, measured in seconds.",
            "format": "double"
          },
          "videoTrackLength": {
            "type": "number",
            "description": "Video track length, measured in seconds.",
            "format": "double"
          },
          "insertDate": {
            "type": "string",
            "description": "Insert UTC date.",
            "format": "date-time"
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "Last modified time UTC.",
            "format": "date-time"
          },
          "originalPlaybackUrl": {
            "type": "string",
            "description": "Original playback URL.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Object containing track information."
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "Please insert your HTTP Auth Token into the field",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 88,
      "2": 114,
      "3": 122,
      "4": 222,
      "5": 79,
      "6": 72,
      "7": 0,
      "8": 74,
      "9": 175,
      "10": 145,
      "11": 98
    }
  }
}
```