{
  "openapi": "3.0.1",
  "info": {
    "title": "Music Recognition API: Song ID, ISRC Metadata and AI Detection",
    "description": "Song recognition API: identify music in audio files, look up ISRC track metadata with Spotify, Apple Music, Deezer and YouTube links, read file scanning results with cover song and AI music detection, and radio and TV broadcast monitoring detections (ACRCloud). Bring your own key.",
    "version": "0.1",
    "x-build-id": "Yb7X2I17NprCRmgaA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~music-recognition-isrc-metadata-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-music-recognition-isrc-metadata-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nabeelbaghoor~music-recognition-isrc-metadata-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-music-recognition-isrc-metadata-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nabeelbaghoor~music-recognition-isrc-metadata-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-music-recognition-isrc-metadata-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "trackMetadata",
              "identifyAudio",
              "fileScanResults",
              "broadcastResults"
            ],
            "type": "string",
            "description": "Each mode calls one documented ACRCloud read endpoint. Track metadata, file scanning and broadcast monitoring use your console token; audio recognition uses the access key and secret of a recognition project.",
            "default": "trackMetadata"
          },
          "apiKey": {
            "title": "ACRCloud console token",
            "type": "string",
            "description": "Your own bearer token from console.acrcloud.com, Account, Developer settings (a free trial exists). Used by the track metadata, file scanning and broadcast monitoring modes. Leave empty to use the DATA_API_KEY secret."
          },
          "accessKey": {
            "title": "Recognition project access key",
            "type": "string",
            "description": "Audio recognition only. The access key of your Audio and Video Recognition project in the ACRCloud console. Leave empty to use the DATA_API_ACCESS_KEY secret."
          },
          "accessSecret": {
            "title": "Recognition project access secret",
            "type": "string",
            "description": "Audio recognition only. The access secret of the same project. It signs each request and is never sent itself. Leave empty to use the DATA_API_ACCESS_SECRET secret."
          },
          "region": {
            "title": "Region",
            "enum": [
              "eu-west-1",
              "us-west-2",
              "ap-southeast-1"
            ],
            "type": "string",
            "description": "Audio recognition and file scanning. The region of your recognition project host or file scanning container, as shown in the ACRCloud console.",
            "default": "eu-west-1"
          },
          "identifyHost": {
            "title": "Recognition project host",
            "type": "string",
            "description": "Audio recognition only, optional. The exact host of your project, such as identify-eu-west-1.acrcloud.com. Overrides the region when set."
          },
          "isrcs": {
            "title": "ISRCs",
            "type": "array",
            "description": "Track metadata. One ISRC per line. Each ISRC is one request.",
            "items": {
              "type": "string"
            }
          },
          "acrIds": {
            "title": "ACRCloud music IDs",
            "type": "array",
            "description": "Track metadata. One ACRCloud music ID (acrid, from a recognition result) per line.",
            "items": {
              "type": "string"
            }
          },
          "sourceUrls": {
            "title": "Platform track URLs",
            "type": "array",
            "description": "Track metadata. One Spotify, YouTube, Deezer, Apple Music or Tidal track link per line, to find the same track on the other platforms.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Artist and title searches",
            "type": "array",
            "description": "Track metadata. One search per line, written as Artist - Title.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms to link",
            "type": "array",
            "description": "Track metadata. Up to 5 platforms to return IDs and links for. Leave empty for Spotify, Deezer, YouTube and Apple Music.",
            "items": {
              "type": "string",
              "enum": [
                "spotify",
                "deezer",
                "youtube",
                "applemusic",
                "tidal",
                "gaana",
                "awa",
                "kkbox",
                "soundcloud"
              ],
              "enumTitles": [
                "Spotify",
                "Deezer",
                "YouTube",
                "Apple Music",
                "Tidal",
                "Gaana",
                "AWA",
                "KKBOX",
                "SoundCloud"
              ]
            }
          },
          "includeWorks": {
            "title": "Include works and contributors",
            "type": "boolean",
            "description": "Track metadata. Add ISWC works with composers, publishers and IPI numbers when the track has them.",
            "default": false
          },
          "audioUrls": {
            "title": "Audio file URLs",
            "type": "array",
            "description": "Audio recognition. One direct link per line to an audio or video file (MP3, WAV, OGG, AAC, M4A, FLAC and more). Clips of 10 to 15 seconds work best; only the first 5 MB of a file is sent.",
            "items": {
              "type": "string"
            }
          },
          "containerId": {
            "title": "File scanning container ID",
            "type": "string",
            "description": "File scanning. The numeric ID of your File Scanning container in the ACRCloud console. Set the region to the container's region."
          },
          "fileIds": {
            "title": "File IDs",
            "type": "array",
            "description": "File scanning, optional. Only these files, one ID per line. Leave empty to read every file in the container.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "File name or URI contains",
            "type": "string",
            "description": "File scanning, optional. Only files whose name or URI matches this text."
          },
          "fileState": {
            "title": "File state",
            "enum": [
              "any",
              "ready",
              "processing",
              "noResults",
              "error"
            ],
            "type": "string",
            "description": "File scanning, optional. Only files in this state.",
            "default": "any"
          },
          "projectType": {
            "title": "Monitoring project type",
            "enum": [
              "broadcastDatabase",
              "customStreams"
            ],
            "type": "string",
            "description": "Broadcast monitoring. The kind of Broadcast Monitoring project the channels belong to.",
            "default": "broadcastDatabase"
          },
          "projectId": {
            "title": "Monitoring project ID",
            "type": "string",
            "description": "Broadcast monitoring. The numeric project ID from the ACRCloud console."
          },
          "channelIds": {
            "title": "Channel or stream IDs",
            "type": "array",
            "description": "Broadcast monitoring. One channel ID (broadcast database projects) or stream ID such as s-0xAHfNh (custom streams projects) per line.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "Results to read",
            "enum": [
              "day",
              "last"
            ],
            "type": "string",
            "description": "Broadcast monitoring. A whole day of detections, or only the latest one per channel.",
            "default": "day"
          },
          "dates": {
            "title": "Days",
            "type": "array",
            "description": "Broadcast monitoring. One day per line as YYYY-MM-DD; every channel is read for every day. Leave empty for the provider's default day.",
            "items": {
              "type": "string"
            }
          },
          "minDuration": {
            "title": "Minimum played duration (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Broadcast monitoring, optional. Only detections played at least this long."
          },
          "maxDuration": {
            "title": "Maximum played duration (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Broadcast monitoring, optional. Only detections played at most this long."
          },
          "isrcCountry": {
            "title": "ISRC country",
            "type": "string",
            "description": "Broadcast monitoring, optional. Only tracks whose ISRC has this two letter country code, such as US, DE or FR."
          },
          "withFalsePositive": {
            "title": "Include results marked false positive",
            "type": "boolean",
            "description": "Broadcast monitoring. Also return detections marked as false positives in the console.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many rows.",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}