{
  "openapi": "3.0.1",
  "info": {
    "title": "SoundCloud Scraper: Tracks, Plays, Artists and Playlists",
    "description": "Scrape SoundCloud tracks, playlists, albums and artists by keyword or link: plays, likes, reposts, comments, duration, genre, tags, release date, label, ISRC, artwork and link, plus artist followers and track count, and the trending top 100. No login, no audio downloads.",
    "version": "0.1",
    "x-build-id": "ecXmNC7uAtbQaFeIa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~soundcloud-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~soundcloud-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~soundcloud-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": "Keywords",
            "type": "array",
            "description": "Words to search on SoundCloud, one per line, as you would type them in the SoundCloud search box. Example: lofi hip hop, techno mix, afrobeats. Each keyword is one search of the type chosen below.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "users",
              "playlists",
              "albums"
            ],
            "type": "string",
            "description": "What the keywords search: tracks, artists (users), playlists or albums.",
            "default": "tracks"
          },
          "startUrls": {
            "title": "SoundCloud links (optional)",
            "type": "array",
            "description": "Links copied from SoundCloud: a track (https://soundcloud.com/forss/flickermood), a playlist or album (https://soundcloud.com/forss/sets/soulhack), an artist (https://soundcloud.com/deadmau5), an artist's /tracks, /popular-tracks, /sets or /albums page, a search link (https://soundcloud.com/search/people?q=house) or an on.soundcloud.com short link.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per keyword or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most rows to return for each keyword or link, 1 to 5,000. For an artist link the profile row is extra, so 50 gives the profile plus 50 tracks. SoundCloud ends a search at 300 results; track searches that ask for more are widened over duration and upload date bands to reach your number.",
            "default": 50
          },
          "includeArtistTracks": {
            "title": "Artist links: also return their tracks",
            "type": "boolean",
            "description": "On: an artist link returns the profile row and then the artist's tracks, newest first, up to Max items. Off: the profile row only.",
            "default": true
          },
          "includePlaylistTracks": {
            "title": "Playlist and album links: also return their tracks",
            "type": "boolean",
            "description": "On: a playlist or album link returns the playlist row and then one row per track in it, in playlist order, up to Max items. Off: the playlist row only, with its track ids.",
            "default": false
          },
          "includeArtistLinks": {
            "title": "Artist rows: add website and social links",
            "type": "boolean",
            "description": "On: each artist row gets the website, Instagram, YouTube and other links shown on the profile, in links. One extra request per artist, same price.",
            "default": false
          },
          "trendingChart": {
            "title": "Add the trending chart",
            "type": "boolean",
            "description": "On: also return SoundCloud's trending top 100 tracks, with chart_rank and chart_score.",
            "default": false
          },
          "genreOrTag": {
            "title": "Track search filter: genre or tag",
            "type": "string",
            "description": "Track searches only. Keep tracks with this genre or tag, for example techno, house, Hip-hop & Rap."
          },
          "uploadedWithin": {
            "title": "Track search filter: uploaded within",
            "enum": [
              "last_hour",
              "last_day",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Track searches only. Keep tracks uploaded in the last hour, day, week, month or year."
          },
          "duration": {
            "title": "Track search filter: length",
            "enum": [
              "short",
              "medium",
              "long",
              "epic"
            ],
            "type": "string",
            "description": "Track searches only. short is under 2 minutes, medium 2 to 10, long 10 to 30, epic over 30 (mixes and sets)."
          },
          "license": {
            "title": "Track search filter: license",
            "enum": [
              "to_share",
              "to_use_commercially",
              "to_modify_commercially"
            ],
            "type": "string",
            "description": "Track searches only. Keep tracks whose license allows sharing, commercial use, or commercial use with changes."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}