{
  "openapi": "3.0.1",
  "info": {
    "title": "Music Catalog QA - DSP & ISRC Audit",
    "description": "Audit music catalog ISRC delivery and metadata across Spotify, Apple Music, and Deezer. Produces evidence-rich correction reports.",
    "version": "0.1",
    "x-build-id": "kDfjmxyzrxLzkliZ5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/porcelain_vista~music-catalog-qa-dsp-isrc-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-porcelain_vista-music-catalog-qa-dsp-isrc-audit",
        "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/porcelain_vista~music-catalog-qa-dsp-isrc-audit/runs": {
      "post": {
        "operationId": "runs-sync-porcelain_vista-music-catalog-qa-dsp-isrc-audit",
        "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/porcelain_vista~music-catalog-qa-dsp-isrc-audit/run-sync": {
      "post": {
        "operationId": "run-sync-porcelain_vista-music-catalog-qa-dsp-isrc-audit",
        "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",
        "required": [
          "mode",
          "catalog"
        ],
        "properties": {
          "mode": {
            "title": "Source mode",
            "enum": [
              "live",
              "fixtures"
            ],
            "type": "string",
            "description": "Live public sources or supplied deterministic observations.",
            "default": "live"
          },
          "country": {
            "title": "Storefront country",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter storefront used for Apple and link resolution.",
            "default": "US"
          },
          "genre_normalization": {
            "title": "Genre normalization",
            "enum": [
              "off",
              "rules",
              "embeddings"
            ],
            "type": "string",
            "description": "Keep source genres and optionally add canonical genre matches. Embeddings requires the genres package extra.",
            "default": "rules"
          },
          "genre_model": {
            "title": "Genre embedding model",
            "minLength": 1,
            "type": "string",
            "description": "Hugging Face model ID or local model path used only in embeddings mode.",
            "default": "BAAI/bge-small-en-v1.5"
          },
          "spotify_client_id": {
            "title": "Spotify client ID (optional)",
            "type": "string",
            "description": "Enables exact Spotify ISRC lookup when supplied together with the client secret."
          },
          "spotify_client_secret": {
            "title": "Spotify client secret (optional)",
            "type": "string",
            "description": "Encrypted by Apify and used only to request a short-lived Spotify access token."
          },
          "catalog": {
            "title": "Catalog rows",
            "minItems": 1,
            "type": "array",
            "description": "One object per expected recording. artist, title, and isrc are required; row_id is generated when omitted.",
            "items": {
              "type": "object",
              "properties": {
                "row_id": {
                  "title": "Catalog row ID",
                  "description": "Optional stable identifier; generated as row-N when omitted.",
                  "type": "string",
                  "minLength": 1
                },
                "artist": {
                  "title": "Artist",
                  "description": "Expected primary artist name.",
                  "type": "string",
                  "minLength": 1
                },
                "title": {
                  "title": "Track title",
                  "description": "Expected recording title.",
                  "type": "string",
                  "minLength": 1
                },
                "isrc": {
                  "title": "ISRC",
                  "description": "Expected 12-character recording identifier, with optional separators.",
                  "type": "string",
                  "pattern": "^[A-Za-z]{2}-?[A-Za-z0-9]{3}-?[0-9]{2}-?[0-9]{5}$"
                },
                "upc": {
                  "title": "UPC",
                  "description": "Optional expected release barcode.",
                  "type": "string"
                },
                "release_date": {
                  "title": "Release date",
                  "description": "Optional expected release date.",
                  "type": "string"
                },
                "duration_ms": {
                  "title": "Duration in milliseconds",
                  "description": "Optional expected recording duration.",
                  "type": "integer",
                  "minimum": 0
                },
                "explicit": {
                  "title": "Explicit",
                  "description": "Optional expected explicit-content flag.",
                  "type": "boolean"
                },
                "label": {
                  "title": "Label",
                  "description": "Optional expected record label.",
                  "type": "string"
                },
                "spotify_url": {
                  "title": "Spotify URL",
                  "description": "Known Spotify track URL for exact link resolution.",
                  "type": "string"
                },
                "apple_music_url": {
                  "title": "Apple Music URL",
                  "description": "Known Apple Music track URL for exact lookup.",
                  "type": "string"
                },
                "deezer_url": {
                  "title": "Deezer URL",
                  "description": "Known Deezer track URL.",
                  "type": "string"
                },
                "expected_spotify_artist_id": {
                  "title": "Expected Spotify artist ID",
                  "description": "Optional expected Spotify artist profile ID.",
                  "type": "string"
                },
                "expected_apple_music_artist_id": {
                  "title": "Expected Apple Music artist ID",
                  "description": "Optional expected Apple Music artist profile ID.",
                  "type": "string"
                },
                "expected_deezer_artist_id": {
                  "title": "Expected Deezer artist ID",
                  "description": "Optional expected Deezer artist profile ID.",
                  "type": "string"
                },
                "urls": {
                  "title": "Platform URLs",
                  "description": "Optional platform-to-track URL mapping.",
                  "type": "object"
                },
                "expected_artist_ids": {
                  "title": "Expected platform artist IDs",
                  "description": "Optional platform-to-artist-ID mapping.",
                  "type": "object"
                }
              },
              "required": [
                "artist",
                "title",
                "isrc"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "row_id": "example-1",
                "artist": "Daft Punk",
                "title": "One More Time",
                "isrc": "GBDUW0000053",
                "spotify_url": "https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV"
              }
            ]
          },
          "fixtures": {
            "title": "Fixture observations",
            "type": "array",
            "description": "Only used in fixture mode. Each object must contain a catalog input_ref and one supported platform.",
            "items": {
              "type": "object",
              "properties": {
                "input_ref": {
                  "title": "Catalog row reference",
                  "description": "row_id of the catalog row described by this observation.",
                  "type": "string",
                  "minLength": 1
                },
                "platform": {
                  "title": "Platform",
                  "description": "DSP represented by this fixture observation.",
                  "type": "string",
                  "enum": [
                    "spotify",
                    "apple_music",
                    "deezer"
                  ]
                },
                "status": {
                  "title": "Status",
                  "description": "Simulated source result status.",
                  "type": "string",
                  "enum": [
                    "found",
                    "missing",
                    "error",
                    "unverified"
                  ]
                }
              },
              "required": [
                "input_ref",
                "platform"
              ],
              "additionalProperties": true
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}