{
  "openapi": "3.0.1",
  "info": {
    "title": "SoundCloud Scraper — Tracks, Artists, Plays & Comments",
    "description": "Scrape SoundCloud tracks, artists, playlists, trending charts and comments: plays, likes, reposts, genre, tags, ISRC, followers, socials. No login.",
    "version": "0.1",
    "x-build-id": "KhywJ8gsMosJN6wln"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~soundcloud-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-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/tortuga~soundcloud-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-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/tortuga~soundcloud-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-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",
              "profiles",
              "userContent",
              "tracks",
              "comments",
              "charts"
            ],
            "type": "string",
            "description": "search = tracks, people, playlists or albums matching your terms. profiles = artist/user profiles (followers, track count, city, bio, social links). userContent = a user's tracks, popular tracks, likes, reposts, playlists or albums. tracks = full details of track URLs (plays, likes, genre, ISRC, label); playlist/album URLs give all their tracks. comments = comments of track URLs. charts = SoundCloud's trending tracks by genre.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Search mode: one or more terms, e.g. lofi hip hop or techno mix. SoundCloud returns at most about 300 results per term; use the filters below to narrow a broad term.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "people",
              "playlists",
              "albums"
            ],
            "type": "string",
            "description": "Search mode: what kind of results to return.",
            "default": "tracks"
          },
          "genreOrTag": {
            "title": "Genre or tag filter",
            "type": "string",
            "description": "Search mode (tracks, playlists, albums): only results with this genre or tag, e.g. hip-hop, house, ambient."
          },
          "durationFilter": {
            "title": "Track length filter",
            "enum": [
              "any",
              "short",
              "medium",
              "long",
              "epic"
            ],
            "type": "string",
            "description": "Search mode, tracks only: SoundCloud's duration filter.",
            "default": "any"
          },
          "createdWithin": {
            "title": "Uploaded within",
            "enum": [
              "any",
              "last_hour",
              "last_day",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Search mode (tracks, playlists, albums): only results uploaded in this period.",
            "default": "any"
          },
          "urls": {
            "title": "SoundCloud URLs or usernames",
            "type": "array",
            "description": "profiles / userContent: profile URLs or usernames (https://soundcloud.com/flume or flume; /likes, /reposts, /sets, /albums, /popular-tracks URLs pick that list). tracks: track URLs, numeric track ids, playlist/album URLs (all their tracks) or trending URLs. comments: track URLs.",
            "items": {
              "type": "string"
            }
          },
          "userContent": {
            "title": "User list to scrape",
            "enum": [
              "tracks",
              "popularTracks",
              "likes",
              "reposts",
              "playlists",
              "albums"
            ],
            "type": "string",
            "description": "userContent mode: which list of each user to return (a /likes, /reposts, /sets or /albums URL overrides this per URL).",
            "default": "tracks"
          },
          "includeSocialLinks": {
            "title": "Include social links",
            "type": "boolean",
            "description": "profiles mode: add the links the user publishes on the profile (Instagram, X, YouTube, Spotify, website...). One extra request per profile.",
            "default": true
          },
          "chartGenres": {
            "title": "Chart genres",
            "type": "array",
            "description": "charts mode: SoundCloud trending lists (50 tracks each). Valid: all-genres, hip-hop, pop, electronic, r-n-b, alternative-hip-hop, trap, house, techno, dubstep, indie, rock, latin, reggaeton, country, folk, ambient, metal, jazz, soul, classical, dancehall, reggae, trance, world, disco.",
            "items": {
              "type": "string"
            }
          },
          "newerThan": {
            "title": "Only items newer than",
            "type": "string",
            "description": "comments and userContent (tracks, likes, reposts): only items newer than a date (YYYY-MM-DD) or a period such as '7 days' or '24 hours'. Paging stops once the list reaches older items."
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "type": "integer",
            "description": "Limit for each search term, user, track, playlist or genre (e.g. the 20 newest tracks of each artist, or 50 comments per track). Leave empty to use only Max items."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results in total. You pay per result, so this caps the cost.",
            "default": 100
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only new items (new uploads, likes, reposts, comments, search results, chart entries) or, for tracks mode, tracks whose plays/likes/reposts/comments changed, and for profiles, changed track count, name, bio or location. Use with a Schedule; unchanged items are not charged.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same input stay separate; defaults to a key derived from the input."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works: SoundCloud's API does not block it. Residential proxy is not needed. Note: whether a track is a 30-second preview (policy SNIP) depends on the proxy's country.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}