# SoundCloud Tracks: Public Play Counts & Metadata (`varnmill/soundcloud-tracks`) Actor

Snapshot public SoundCloud track titles, play counts, likes, comments and repost counters from supplied track URLs. Dated JSON or CSV with explicit missing counters and source errors. No audio downloads or login.

- **URL**: https://apify.com/varnmill/soundcloud-tracks.md
- **Developed by:** [Jay Novello](https://apify.com/varnmill) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 public track metadata

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SoundCloud Tracks: Public Play Counts & Metadata

Real public-page sample captured November 21, 2026 (private cloud run DvRnLzc5xmGXkT6LC):

```json
{
  "type": "track",
  "id": "293",
  "url": "https://soundcloud.com/forss/flickermood",
  "inputUrl": "https://soundcloud.com/forss/flickermood",
  "title": "Flickermood",
  "artistUsername": "Forss",
  "artistPermalink": "forss",
  "genre": "Electronic",
  "durationMs": 213886,
  "fullDurationMs": 213890,
  "playCount": 974802,
  "likeCount": 2623,
  "commentCount": 402,
  "repostCount": 414,
  "createdAt": "2007-09-22T14:45:46Z",
  "sourceLastModifiedAt": "2022-07-11T10:55:58Z",
  "fetchedAt": "2026-11-21T08:24:47.729713+00:00",
  "coverage": "single public track metadata; observed counters may be cached or absent"
}
```

Capture dated metadata for music releases you already have URLs for. Each successful public track becomes one JSON/CSV row: title, artist display name, genre, duration, observed play/like/comment/repost counters and source dates. Missing counters are `null`, not zero. This actor does not download audio or collect emails.

### Input and output

The default input contains five public Forss tracks checked locally and in the cloud on November 21. Replace `trackUrls` with 1–50 public HTTPS SoundCloud track URLs. Duplicate normalized URLs are removed. Profiles, playlists, search, audio, private links, redirects and query strings are unsupported. Two public pages are fetched at a time, each with a 15-second deadline and 2 MiB body limit. Refused pages receive no retry or alternate access method. After two consecutive source errors, no new pages are fetched. Already in-flight valid results are retained; unstarted inputs are marked `source_circuit_open`. This bounds uncharged failure work. Start a new run after correcting URLs or waiting for source recovery.

Download rows from the default dataset; read `TRACK-REPORT` for each input's outcome, retained rows, delivered rows, source errors and billing stops. A run with no readable track fails explicitly; mixed failures preserve good rows. A completed run can still have incomplete input coverage; check `allInputsDelivered`.

### Pricing

| Event | Free | Bronze | Silver | Gold / Platinum / Diamond |
|---|---:|---:|---:|---:|
| 1,000 delivered track snapshots | $1.00 | $0.90 | $0.80 | $0.70 |
| Actor start, up to 1 GB | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

No report or source-error fee. Five tracks cost $0.00505 at base pricing, including start. Platform usage is included. This actor uses a fixed 512 MiB memory allocation to bound failed-request costs.

Already delivered rows remain charged after cancellation or later source errors. Restarting the same run adds another start fee, reads its retained dataset, skips previously delivered identities and applies track fees only to newly delivered rows. The original input and dataset must be preserved. Starting a new run fetches and charges a new snapshot; there is no persistent only-new mode. A rare interruption between SDK dataset insertion and charging can leave a delivered row uncharged; recovery does not retroactively bill it or duplicate it.

### Accuracy and limits

Public-page counters can be cached, stale, missing or approximate. `fetchedAt` is retrieval time, not the age of the counters. `sourceLastModifiedAt` is the source field, not proof of recent counter updates. These snapshots are not unique listeners, royalties, impressions or authenticated analytics. Duration may describe a preview; `fullDurationMs` remains separate. A changed/removed/private URL or oversized/challenge page is an explicit source error, not an empty success. No login, proxy or challenge solving is used.

### FAQ

**Can I obtain all tracks for an artist?** No. Supply known individual track URLs.

**Are unavailable counters zero?** No, they remain null.

**Can I compare daily snapshots?** Join on `id`, retain `fetchedAt`, and treat negative or missing changes as unknown. Counters can be revised; differences are observations, not verified daily listeners.

**Does recovery prevent double charging?** The same run's retained dataset is the delivery ledger. A fresh run is a fresh snapshot. Do not change input or delete retained storage during recovery.

### Changelog

- 0.1: public-track metadata, bounded source requests, charged delivery, explicit source errors and same-run dataset recovery.

# Actor input Schema

## `trackUrls` (type: `array`):

One to fifty HTTPS soundcloud.com/artist/track URLs. No query strings, private tokens, profiles or playlists. Duplicate URLs are collapsed. Two pages fetched at a time; failed tracks are reported without track fees. New runs take new paid snapshots. Two consecutive source errors stop new page requests; unstarted inputs are reported explicitly.

## Actor input object example

```json
{
  "trackUrls": [
    "https://soundcloud.com/forss/flickermood",
    "https://soundcloud.com/forss/lux-aeterna",
    "https://soundcloud.com/forss/veniam",
    "https://soundcloud.com/forss/somnio-somnium",
    "https://soundcloud.com/forss/regulus"
  ]
}
```

# Actor output Schema

## `tracks` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "trackUrls": [
        "https://soundcloud.com/forss/flickermood",
        "https://soundcloud.com/forss/lux-aeterna",
        "https://soundcloud.com/forss/veniam",
        "https://soundcloud.com/forss/somnio-somnium",
        "https://soundcloud.com/forss/regulus"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("varnmill/soundcloud-tracks").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "trackUrls": [
        "https://soundcloud.com/forss/flickermood",
        "https://soundcloud.com/forss/lux-aeterna",
        "https://soundcloud.com/forss/veniam",
        "https://soundcloud.com/forss/somnio-somnium",
        "https://soundcloud.com/forss/regulus",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("varnmill/soundcloud-tracks").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "trackUrls": [
    "https://soundcloud.com/forss/flickermood",
    "https://soundcloud.com/forss/lux-aeterna",
    "https://soundcloud.com/forss/veniam",
    "https://soundcloud.com/forss/somnio-somnium",
    "https://soundcloud.com/forss/regulus"
  ]
}' |
apify call varnmill/soundcloud-tracks --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,varnmill/soundcloud-tracks"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IbqcycRau3a49ey3G/builds/TPx5ayM8HcsiIHZdO/openapi.json
