{
  "openapi": "3.0.1",
  "info": {
    "title": "SoundCloud Scraper - Tracks, Artists, Playlists & Plays",
    "description": "Scrape SoundCloud tracks, playlists, albums and artist profiles by search or link: plays, likes, reposts, followers, genre, tags, ISRC and dates. Charts and trending sets, artist likes and reposts, deep search past 300. No login.",
    "version": "0.2",
    "x-build-id": "gCZcHYUoTV9UmPkbe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~soundcloud-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-soundcloud-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/cliqtomedia~soundcloud-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-soundcloud-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/cliqtomedia~soundcloud-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-soundcloud-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "user",
              "playlist",
              "track",
              "any"
            ],
            "type": "string",
            "description": "Search = what SoundCloud finds for your keywords (pick tracks, playlists, albums or artists below). Artist = an artist's uploads, likes or reposts. Playlist = every track of a playlist, album or SoundCloud chart set (discover/sets/...). Track = one row per track link. Any links = a mix of artist, playlist and track links in one run. If you give only links and no search queries, the links are read this way even when Search is selected.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords as you would type them on SoundCloud, one search per line, up to 100. Used in Search mode. SoundCloud returns at most about 300 results per search; turn on \"Dig past 300 results\" or split broad topics into several queries to get more.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "SoundCloud links or usernames",
            "type": "array",
            "description": "Up to 100 soundcloud.com links: artist profiles (https://soundcloud.com/flume) or bare usernames, playlist or album links (…/sets/…), SoundCloud chart and mix sets (https://soundcloud.com/discover/sets/…), track links. Share links with ?si=… or utm tags work. Short on.soundcloud.com links are not supported; open them in a browser and paste the full link.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results per query or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search, artist or playlist after this many saved results (tracks, playlists and artist rows together). Each saved result is one paid result.",
            "default": 100
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "playlists",
              "albums",
              "users"
            ],
            "type": "string",
            "description": "What a search returns: tracks, playlists, albums or artist profiles. Playlists and albums come as one row each; turn on \"Also save playlist tracks\" to get their tracks too.",
            "default": "tracks"
          },
          "createdWithin": {
            "title": "Uploaded within",
            "enum": [
              "any",
              "last_hour",
              "last_day",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Keep only tracks (and playlists) uploaded in this period. Works in Search and Artist modes; skipped results are not charged. Playlist and single track links are always returned in full.",
            "default": "any"
          },
          "genreOrTag": {
            "title": "Genre or tag",
            "maxLength": 60,
            "type": "string",
            "description": "Track search only: keep tracks with this genre or tag, for example house or lofi."
          },
          "duration": {
            "title": "Track length",
            "enum": [
              "any",
              "short",
              "medium",
              "long",
              "epic"
            ],
            "type": "string",
            "description": "Track search only: keep tracks of this length.",
            "default": "any"
          },
          "license": {
            "title": "License",
            "enum": [
              "any",
              "to_share",
              "to_use_commercially",
              "to_modify_commercially"
            ],
            "type": "string",
            "description": "Track search only: keep tracks whose Creative Commons license allows this.",
            "default": "any"
          },
          "deepSearch": {
            "title": "Dig past 300 results",
            "type": "boolean",
            "description": "Track search only. SoundCloud stops a search at about 300 results. When a query hits that cap, the Actor repeats it in narrower windows (by track length and upload date) and adds the new tracks, without duplicates. Use with a higher \"Max results per query or link\".",
            "default": false
          },
          "includePlaylistTracks": {
            "title": "Also save playlist tracks",
            "type": "boolean",
            "description": "Playlist and album search only: after each playlist row, save its tracks too (each track is one paid result).",
            "default": false
          },
          "artistContent": {
            "title": "From each artist, get",
            "enum": [
              "tracks",
              "likes",
              "reposts",
              "none"
            ],
            "type": "string",
            "description": "Which list to read from each artist link. \"Only the artist profile\" saves one artist row with followers, track count, city, country and bio.",
            "default": "tracks"
          },
          "includeArtistProfile": {
            "title": "Add an artist profile row",
            "type": "boolean",
            "description": "Save one artist row (followers, track count, city, country, bio) before the artist's tracks, likes or reposts.",
            "default": false
          },
          "includeProfileLinks": {
            "title": "Add artist website and social links",
            "type": "boolean",
            "description": "Add the links an artist lists on the profile (website, Instagram, Spotify and others) to artist rows. One extra request per artist; emails and phone numbers are never collected.",
            "default": false
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}