# Discogs (`canadesk/discogs`) Actor

Get or search for prices, artists, releases, labels and more from Discogs. It's fast and costs little!

- **URL**: https://apify.com/canadesk/discogs.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** Social media, Videos, E-commerce
- **Stats:** 22 total users, 1 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

$12.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

⚡ For a higher maximum, pagination and more filters, please use **canadesk/discogs-plus**!

💡 Some data will be returned based on the IP address location, such as sales statistics and availability.

🛑 Discogs marketplace (= "Sell") is sensitive to scraping. Use your own cookies, set longer waiting times, reduce batch number and use high-quality proxies.

### Input

- Keywords (array)

  Returns data for the keywords.

  Expected format:

  - **Get**

    - Default: ID ("32515302") or URL (<https://www.discogs.com/sell/release/32515302>).

    - User: Name ("discogs") or ID.

  - **Sell**

    - Releases: ID (32515302) or URL (<https://www.discogs.com/sell/release/32515302>).

    - List: Free text. Any search terms. 💡 We strongly recommend using the **GTIN** or **barcode** or **ID**! Discogs' search is fairly limited.

  - **Search**

    Free text. Any search terms ("purple rain prince").

- Custom Input (object)

  Alternative to/overrides Keywords.

  You can set a different process/category combination for each keyword.

  ⭐ For 6+ entries at a time, please use **canadesk/discogs-plus**!

- Process (select)

  - **Get**

    Returns data for the specified category. Requires a specific ID (or Name or URL).

  - **Search**

    Returns data for the specified category based on the search terms.

  - **Sell**

    Returns prices for the specified release (with statistics) or free text search.

- Category (select)

  Each Process/Category combination must be valid.

  Possible options are:

  - **Get**

    "artist", "artistReleases", "release", "master", "masterVersions", "label", "labelReleases", "profile", "inventory", "listing", "collectionFolders", "collectionFolder", "collectionItemsByFolder"

  - **Search**

    "artist", "release", "master", "label", "all"

  - **Sell**

    "release", "list"

- Media format (select)

  Only applicable to "Sell" for category LIST.

- Ships From / Media condition (select)

  Only applicable to "Sell".

- Currency (select)

  Only applicable to "Sell".

  - **Currency filter**

    Returns results sold in the specified currency.

  - **Currency conversion**

    Converts the total price in the specified currency (original total is still available).

- Cookie (string)

  Only for Sell. You are less likely to be blocked by providing your own cookies from Discogs marketplace.

  Leave empty for default!

- Maximum results (integer)

  Per keyword.

  ⭐ For pagination, please use **canadesk/spotify-plus**!

- Batch (integer)

  Number of parallel requests to be executed - only relevant when there is more than 1 keyword.

  Default is 1. The higher the number, the more chances you have to be blocked.

  💡 Make sure to increase the Actor's memory and timeout for long runs!

- Delay (integer)

  For high-volume scraping, make sure to set a reasonable waiting time.

### Example Custom Input

Limited to 5 entries with this actor.

```
{
    "input": [
        {
            "id": "32515302",
            "process": "sell",
            "category": "release"
        },
        {
            "id": "00602508108556",
            "process": "sell",
            "category": "list"
        },
        {
            "id": "https://www.discogs.com/label/1430979-Daft-Punk",
            "process": "get",
            "category": "label"
        },
        {
            "id": "855971",
            "process": "get",
            "category": "artist"
        },
        {
            "id": "855971",
            "process": "get",
            "category": "artistReleases"
        },
        {
            "id": "daft punk",
            "process": "search",
            "category": "artist"
        },
        {
            "id": "4988006799202",
            "process": "search",
            "category": "all"
        },
        {
            "id": "32515302",
            "process": "get",
            "category": "release"
        },
        {
            "id": "26647",
            "process": "get",
            "category": "master"
        },
        {
            "id": "26647",
            "process": "get",
            "category": "masterVersions"
        },
        {
            "id": "1430979",
            "process": "get",
            "category": "label"
        },
        {
            "id": "1430979",
            "process": "get",
            "category": "labelReleases"
        },
        {
            "id": "jamescaton",
            "process": "get",
            "category": "profile"
        },
        {
            "id": "jamescaton",
            "process": "get",
            "category": "inventory"
        },
        {
            "id": "3396468555",
            "process": "get",
            "category": "listing"
        },
        {
            "id": "jamescaton",
            "process": "get",
            "category": "collectionFolders"
        },
        {
            "id": "jamescaton",
            "process": "get",
            "category": "collectionFolder"
        },
        {
            "id": "jamescaton",
            "process": "get",
            "category": "collectionItemsByFolder"
        }
    ]
}
```

### Output

**Search/Release** returns (category-dependent):

```
{
	"discogsId": 4723572,
	"siteUrl": "https://www.discogs.com/release/4723572-Daft-Punk-Get-Lucky-Daft-Punk-Remix",
	"title": "Get Lucky (Daft Punk Remix)",
	"formats": [
		{
			"name": "Vinyl",
			"quantity": "1",
			"description": [
				"12\"",
				"33 ⅓ RPM",
				"Single"
			],
			"text": "180 gram"
		}
	],
	"primaryArtists": [
		{
			"displayName": "Daft Punk",
			"nameVariation": null,
			"joiningText": "",
			"artist": {
				"discogsId": 1289,
				"name": "Daft Punk"
			}
		}
	],
	"inWantlist": null,
	"collectionItems": null,
	"myListings": {
		"totalCount": 0
	},
	"listings": {
		"totalCount": 58
	},
	"lowestPrice": {
		"converted": {
			"amount": 41.13,
			"currency": "USD"
		}
	},
	"images": {
		"edges": [
			{
				"node": {
					"thumbnail": {
						"width": 149,
						"height": 150,
						"sourceUrl": "https://i.discogs.com/3JWdFDUGrNy21wEx55oPI2w8ZDAAyKugc2egyGaP7sg/rs:fit/g:sm/q:40/h:300/w:300/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9SLTQ3MjM1/NzItMTM3MzUzNTc3/OS03OTk2LmpwZWc.jpeg",
						"webpUrl": "https://i.discogs.com/3JWdFDUGrNy21wEx55oPI2w8ZDAAyKugc2egyGaP7sg/rs:fit/g:sm/q:40/h:300/w:300/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9SLTQ3MjM1/NzItMTM3MzUzNTc3/OS03OTk2LmpwZWc.jpeg"
					},
					"nsfw": false
				}
			}
		]
	},
	"type": "Release"
}
```

**Get/LabelReleases** returns:

```
{
	"data": [
		{
			"status": "Accepted",
			"format": "12\", Single, Promo",
			"catno": "7087 6 16491 1 6, SPRO-16491",
			"thumb": "",
			"resource_url": "https://api.discogs.com/releases/20045",
			"title": "Harder Better Faster Stronger",
			"id": 20045,
			"year": 2001,
			"artist": "Daft Punk",
			"uri": "https://www.discogs.com/release/20045-Harder-Better-Faster-Stronger"
		},
		{
			"status": "Accepted",
			"format": "DVD-V, Multichannel, PAL",
			"catno": "VDVD8, 7243 4909529 8",
			"thumb": "",
			"resource_url": "https://api.discogs.com/releases/251953",
			"title": "Interstella 5555 (The 5tory Of The 5ecret 5tar 5ystem)",
			"id": 251953,
			"year": 2003,
			"artist": "Daft Punk & Leiji Matsumoto",
			"uri": "https://www.discogs.com/release/251953-Interstella-5555-(The-5tory-Of-The-5ecret-5tar-5ystem)"
		},
		...
	]
}
```

**Sell/Release** returns:

Statistics are available for Sell/Release. Details are available for Sell/List.

```
{
	"keyword": "32515302",
	"category": "release",
	"data": {
		"statistics": {
			"have": 3315,
			"want": 1334,
			"avg_rating": 4.91,
			"ratings": 167,
			"last_sold": "06 Jan 25",
			"lowest": 111.12,
			"median": 159.4,
			"highest": 201.25,
			"demand_level": "medium"
		},
		"prices": [
			{
				"uri": "https://www.discogs.com/sell/item/3398619150",
				"name": "Daft Punk = ダフト・パンク* - Discovery = ディスカバリー (2xLP, Album, Ltd, RE)",
				"media_condition": "Mint (M)",
				"sleeve_condition": "Mint (M)",
				"description": "Label:Daft Life, ADA France",
				"seller": "ABpaolinobeatbitAB",
				"seller_rating": 4.91,
				"seller_reviews": 3315,
				"ships_from": "Italy",
				"price": 740,
				"shipping_fee": null,
				"shipping_fee_exists": "yes, but not specified",
				"total_estimate": 740,
				"total_estimate_currency": 1099.5675,
				"currency": "EUR",
				"details": {							// Only available when Statistics are not provided
					"availability_ip": null,			// True = Can be sent to the IP location
                    "unavailability_location_ip": null,	// If availability_ip is False, shows the current IP location
					"label": null,
					"gtin": null,
					"release_link": null,
					"rating": null,
					"have": null,
					"want": null
				}
			},
			{
				"uri": "https://www.discogs.com/sell/item/3387500613",
				"name": "Daft Punk = ダフト・パンク* - Discovery = ディスカバリー (2xLP, Album, Ltd, RE)",
				"media_condition": "Mint (M)",
				"sleeve_condition": "Mint (M)",
				"description": "Factory sealed. Hype sticker. All in perfect conditions. Fast and secured shipment. Shipping with tracking.",
				"seller": "27max",
				"seller_rating": 4.91,
				"seller_reviews": 3315,
				"ships_from": "Portugal",
				"price": 204,
				"shipping_fee": 23.8023,
				"shipping_fee_exists": "yes",
				"total_estimate": 227.8023,
				"total_estimate_currency": 338.4919,
				"currency": "EUR",
				"details": {
					"availability_ip": null,			// True = Can be sent to the IP location
                    "unavailability_location_ip": null,	// If availability_ip is False, shows the current IP location
					"label": null,
					"gtin": null,
					"release_link": null,
					"rating": null,
					"have": null,
					"want": null
				}
			},
			...
		]
	}
}
```

### Support

Always use high-quality proxies and set a reasonable waiting time.

Open a new issue for bugs or feature requests. Please share the run URL.

Cheers!

# Actor input Schema

## `process` (type: `string`):

See Information tab.

## `category` (type: `string`):

See Information tab.

## `ids` (type: `array`):

Must match the process/category. See Information tab.

## `myids` (type: `object`):

Overrides Keywords. Use canadesk/discogs-plus for 5+. See Information tab!

## `sort` (type: `string`):

Only for Sell.

## `sort_order` (type: `string`):

Only for Sell.

## `mediaFormat` (type: `string`):

Only for Sell LIST.

## `shipsFilter` (type: `string`):

Only for Sell. Set to Any (default) for all.

## `mediaConditionFilter` (type: `string`):

Only for Sell.

## `currencyFilter` (type: `string`):

Only for Sell. Set to Any (default) for all.

## `currencyConversion` (type: `string`):

Only for Sell. Will convert the sales total price.

## `mycookie` (type: `string`):

Only for Sell. See Information tab.

## `maximum` (type: `integer`):

Per keyword.

## `batch` (type: `integer`):

See Information tab.

## `delay` (type: `integer`):

Waiting time between requests.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "process": "sell",
  "category": "release",
  "ids": [
    "32515302"
  ],
  "myids": {
    "input": [
      {
        "id": "https://www.discogs.com/label/1430979-Daft-Punk",
        "process": "get",
        "category": "label"
      },
      {
        "id": "855971",
        "process": "get",
        "category": "artist"
      },
      {
        "id": "855971",
        "process": "get",
        "category": "artistReleases"
      },
      {
        "id": "daft punk",
        "process": "search",
        "category": "artist"
      },
      {
        "id": "https://www.discogs.com/sell/release/32515302",
        "process": "sell",
        "category": "release"
      },
      {
        "id": "00602508108556",
        "process": "sell",
        "category": "list"
      }
    ]
  },
  "sort": "price",
  "sort_order": "asc",
  "mediaFormat": "default",
  "shipsFilter": "default",
  "mediaConditionFilter": "default",
  "currencyFilter": "default",
  "currencyConversion": "ZAR",
  "maximum": 50,
  "batch": 1,
  "delay": 3,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "ids": [
        "32515302"
    ],
    "myids": {
        "input": [
            {
                "id": "https://www.discogs.com/label/1430979-Daft-Punk",
                "process": "get",
                "category": "label"
            },
            {
                "id": "855971",
                "process": "get",
                "category": "artist"
            },
            {
                "id": "855971",
                "process": "get",
                "category": "artistReleases"
            },
            {
                "id": "daft punk",
                "process": "search",
                "category": "artist"
            },
            {
                "id": "https://www.discogs.com/sell/release/32515302",
                "process": "sell",
                "category": "release"
            },
            {
                "id": "00602508108556",
                "process": "sell",
                "category": "list"
            }
        ]
    },
    "mycookie": "",
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/discogs").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 = {
    "ids": ["32515302"],
    "myids": { "input": [
            {
                "id": "https://www.discogs.com/label/1430979-Daft-Punk",
                "process": "get",
                "category": "label",
            },
            {
                "id": "855971",
                "process": "get",
                "category": "artist",
            },
            {
                "id": "855971",
                "process": "get",
                "category": "artistReleases",
            },
            {
                "id": "daft punk",
                "process": "search",
                "category": "artist",
            },
            {
                "id": "https://www.discogs.com/sell/release/32515302",
                "process": "sell",
                "category": "release",
            },
            {
                "id": "00602508108556",
                "process": "sell",
                "category": "list",
            },
        ] },
    "mycookie": "",
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/discogs").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 '{
  "ids": [
    "32515302"
  ],
  "myids": {
    "input": [
      {
        "id": "https://www.discogs.com/label/1430979-Daft-Punk",
        "process": "get",
        "category": "label"
      },
      {
        "id": "855971",
        "process": "get",
        "category": "artist"
      },
      {
        "id": "855971",
        "process": "get",
        "category": "artistReleases"
      },
      {
        "id": "daft punk",
        "process": "search",
        "category": "artist"
      },
      {
        "id": "https://www.discogs.com/sell/release/32515302",
        "process": "sell",
        "category": "release"
      },
      {
        "id": "00602508108556",
        "process": "sell",
        "category": "list"
      }
    ]
  },
  "mycookie": "",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call canadesk/discogs --silent --output-dataset

```

## MCP server setup

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

```

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/CAg1sd925EUfAZpYc/builds/ji7JnPyxNvM5wRdZL/openapi.json
