{
  "openapi": "3.0.1",
  "info": {
    "title": "SoundCloud Scraper: Tracks, Playlists & Users",
    "description": "Export public SoundCloud tracks, playlist contents, users, profile catalogs, and New & hot chart data with engagement, release, media, and artist metadata.",
    "version": "0.1",
    "x-build-id": "bcznOcHvqihZr5gPX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~soundcloud-tracks-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-soundcloud-tracks-search-scraper",
        "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/fetch_cat~soundcloud-tracks-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-soundcloud-tracks-search-scraper",
        "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/fetch_cat~soundcloud-tracks-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-soundcloud-tracks-search-scraper",
        "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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Track keywords, artist names, genres, moods, or campaign terms. Duplicate and blank values are removed.",
            "items": {
              "type": "string"
            }
          },
          "playlistQueries": {
            "title": "Playlist search queries",
            "type": "array",
            "description": "Playlist, album, genre, mood, curator, or campaign keywords. These produce standalone playlist records rather than playlist-track rows.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Public profile URLs",
            "type": "array",
            "description": "Public SoundCloud profile URLs such as https://soundcloud.com/chillhopdotcom. The Actor exports tracks uploaded by each profile.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "trackUrls": {
            "title": "Direct track URLs",
            "type": "array",
            "description": "Public SoundCloud track URLs. Each URL is resolved to one complete track record, subject to the shared maximum.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "playlistUrls": {
            "title": "Playlist URLs",
            "type": "array",
            "description": "Public SoundCloud playlist or album URLs containing /sets/. The Actor exports each public track with playlist context.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "userQueries": {
            "title": "User search queries",
            "type": "array",
            "description": "Artist, label, creator, or profile keywords. These produce user records rather than track records.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "userUrls": {
            "title": "Direct user URLs",
            "type": "array",
            "description": "Public SoundCloud profile URLs to resolve as standalone user records. Use Public profile URLs instead when you want each profile's uploaded tracks.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "chartGenres": {
            "title": "Chart genres",
            "type": "array",
            "description": "Use all-music for SoundCloud's full global New & hot ranking, or a music genre such as Hip-hop & Rap to keep matching ranked tracks while preserving their original global rank.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total number of unique paid track, playlist, or user records to save across all supplied sources.",
            "default": 20
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Optional SoundCloud genre values. These apply to keyword searches, not profile track lists.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Optional tag filters for keyword searches, for example remix, instrumental, or podcast.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bpmFrom": {
            "title": "Minimum BPM",
            "minimum": 0,
            "maximum": 500,
            "type": "number",
            "description": "Optional minimum tempo for keyword-search results."
          },
          "bpmTo": {
            "title": "Maximum BPM",
            "minimum": 0,
            "maximum": 500,
            "type": "number",
            "description": "Optional maximum tempo for keyword-search results."
          },
          "durationFromMs": {
            "title": "Minimum duration (ms)",
            "minimum": 0,
            "maximum": 86400000,
            "type": "integer",
            "description": "Optional minimum track duration in milliseconds for keyword-search results."
          },
          "durationToMs": {
            "title": "Maximum duration (ms)",
            "minimum": 0,
            "maximum": 86400000,
            "type": "integer",
            "description": "Optional maximum track duration in milliseconds for keyword-search results."
          },
          "createdAtFrom": {
            "title": "Created on or after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional earliest upload date in YYYY-MM-DD format for keyword-search results."
          },
          "createdAtTo": {
            "title": "Created on or before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional latest upload date in YYYY-MM-DD format for keyword-search results."
          },
          "access": {
            "title": "Playback access",
            "type": "array",
            "description": "Optional public access states. Use playable for full public playback, preview for snippets, and blocked for metadata-only tracks.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxRuntimeSecs": {
            "title": "Work budget (seconds)",
            "minimum": 45,
            "maximum": 600,
            "type": "integer",
            "description": "Maximum active work time. The Actor reserves at least 70 seconds for checkpoint and summary persistence before the default 670-second platform timeout.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional routing for SoundCloud data requests. Direct traffic is recommended; no residential proxy is enabled by 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}