{
  "openapi": "3.0.1",
  "info": {
    "title": "SoundCloud Scraper",
    "description": "SoundCloud Scraper SD - SoundCloud Scraper is a music data tool that extracts SoundCloud tracks, artists, playlists and albums by search or URL: plays, likes, reposts, comments, genre, tags, ISRC, release data, artist followers and playlist tracks. No login.",
    "version": "1.0",
    "x-build-id": "9uvgaAUx4McUHm3F5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~soundcloud-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~soundcloud-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~soundcloud-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Words to search on SoundCloud (lofi, techno mix, podcast name). One per line.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "users",
              "playlists",
              "albums"
            ],
            "type": "string",
            "description": "What the search queries look for.",
            "default": "tracks"
          },
          "startUrls": {
            "title": "SoundCloud URLs",
            "type": "array",
            "description": "Artist, track, playlist or album links (https://soundcloud.com/chilledcow, https://soundcloud.com/<artist>/sets/<playlist>). An artist link gives the artist and their tracks; a playlist gives the playlist and its tracks.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results per query / URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Results per search query, per artist (tracks) and per playlist (tracks). Example: 20 x 2 queries = up to 40 rows.",
            "default": 20
          },
          "maxTotalItems": {
            "title": "Max results in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Upper limit for the whole run.",
            "default": 1000
          },
          "includeUserDetails": {
            "title": "Full artist details",
            "type": "boolean",
            "description": "Add the artist's full profile to every row: bio, city, country, followers, followings, track / playlist / likes counts, plan, website.",
            "default": false
          },
          "includePlaylistTracks": {
            "title": "Playlist tracks",
            "type": "boolean",
            "description": "For playlist / album links, also save every track of the playlist as its own row.",
            "default": true
          },
          "includeComments": {
            "title": "Comments",
            "type": "boolean",
            "description": "Add the newest comments of each track (text, time position, author).",
            "default": false
          },
          "maxCommentsPerTrack": {
            "title": "Max comments per track",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many comments per track when comments are on.",
            "default": 20
          },
          "genres": {
            "title": "Only genres",
            "type": "array",
            "description": "Optional: keep only tracks of these genres (case-insensitive), e.g. Hip-hop & Rap.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Only tags",
            "type": "array",
            "description": "Optional: keep only tracks with at least one of these tags.",
            "items": {
              "type": "string"
            }
          },
          "durationFromMs": {
            "title": "Min duration (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: keep tracks at least this long (milliseconds)."
          },
          "durationToMs": {
            "title": "Max duration (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: keep tracks at most this long (milliseconds)."
          },
          "createdAtFrom": {
            "title": "Uploaded from",
            "type": "string",
            "description": "Optional: keep tracks uploaded on or after this date."
          },
          "createdAtTo": {
            "title": "Uploaded until",
            "type": "string",
            "description": "Optional: keep tracks uploaded on or before this date."
          },
          "bpmFrom": {
            "title": "Min BPM",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: keep tracks with at least this tempo (only tracks whose uploader set a BPM pass a BPM filter)."
          },
          "bpmTo": {
            "title": "Max BPM",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: keep tracks with at most this tempo."
          },
          "access": {
            "title": "Playback access",
            "type": "array",
            "description": "Optional: keep only tracks with this playback access: playable (full track), preview (30-second preview) or blocked (not playable in the proxy's country).",
            "items": {
              "type": "string",
              "enum": [
                "playable",
                "preview",
                "blocked"
              ]
            }
          },
          "chartGenres": {
            "title": "Chart (New & hot)",
            "type": "array",
            "description": "Optional: export SoundCloud's New & hot chart. Give all-music (the chart SoundCloud serves today); other genre names are tried too and logged when SoundCloud has no chart for them. Gives up to 'Max results per query / URL' tracks with their chart rank.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many tracks (with their artist details and comments) are processed at the same time.",
            "default": 8
          },
          "includeRaw": {
            "title": "Raw record",
            "type": "boolean",
            "description": "Also save the complete original record of every track, artist or playlist in the raw column (large rows).",
            "default": false
          },
          "flatten": {
            "title": "Flatten nested fields (CSV-friendly)",
            "type": "boolean",
            "description": "On: every list of objects becomes one JSON text column named <field>_json (formats -> formats_json, commentsList -> commentsList_json) and nested objects (raw) become underscore columns, so every row opens cleanly in Excel / CSV. Off (default): lists and objects keep their JSON shape.",
            "default": false
          },
          "maxRuntimeSecs": {
            "title": "Time budget (seconds)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Optional: stop the run after this many seconds and keep the rows saved so far. 0 = no time limit.",
            "default": 0
          },
          "query": {
            "title": "Search query (alias)",
            "type": "string",
            "description": "One search query (accepted for API callers)."
          },
          "url": {
            "title": "URL (alias)",
            "type": "string",
            "description": "One SoundCloud URL (accepted for API callers)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}