{
  "openapi": "3.0.1",
  "info": {
    "title": "Discogs",
    "description": "Get or search for prices, artists, releases, labels and more from Discogs. It's fast and costs little!",
    "version": "2.0",
    "x-build-id": "ji7JnPyxNvM5wRdZL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/canadesk~discogs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-canadesk-discogs",
        "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/canadesk~discogs/runs": {
      "post": {
        "operationId": "runs-sync-canadesk-discogs",
        "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/canadesk~discogs/run-sync": {
      "post": {
        "operationId": "run-sync-canadesk-discogs",
        "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",
        "required": [
          "process"
        ],
        "properties": {
          "process": {
            "title": "Process",
            "enum": [
              "get",
              "search",
              "sell"
            ],
            "type": "string",
            "description": "See Information tab.",
            "default": "sell"
          },
          "category": {
            "title": "Category",
            "enum": [
              "artist",
              "artistReleases",
              "release",
              "master",
              "masterVersions",
              "label",
              "labelReleases",
              "profile",
              "inventory",
              "list",
              "listing",
              "collectionFolders",
              "collectionFolder",
              "collectionItemsByFolder",
              "all"
            ],
            "type": "string",
            "description": "See Information tab.",
            "default": "release"
          },
          "ids": {
            "title": "Keywords",
            "type": "array",
            "description": "Must match the process/category. See Information tab.",
            "items": {
              "type": "string"
            }
          },
          "myids": {
            "title": "Custom Input",
            "type": "object",
            "description": "Overrides Keywords. Use canadesk/discogs-plus for 5+. See Information tab!"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "price",
              "listed",
              "condition",
              "seller"
            ],
            "type": "string",
            "description": "Only for Sell.",
            "default": "price"
          },
          "sort_order": {
            "title": "Sort Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Only for Sell.",
            "default": "asc"
          },
          "mediaFormat": {
            "title": "Filter - Media Format",
            "enum": [
              "default",
              "Vinyl",
              "CD",
              "4-Track Cartridge",
              "8-Track Cartridge",
              "Acetate",
              "Betacam",
              "Betacam SP",
              "Betamax",
              "Blu-ray",
              "Blu-ray-R",
              "Box Set",
              "Cassette",
              "CDV",
              "CDr",
              "Cylinder",
              "DAT",
              "DCC",
              "DVD",
              "DVDr",
              "Edison Disc",
              "File",
              "Film Reel",
              "Flexi-disc",
              "Floppy Disk",
              "HD DVD",
              "HD DVD-R",
              "Hybrid",
              "Laserdisc",
              "Lathe Cut",
              "Memory Stick",
              "Microcassette",
              "Minidisc",
              "MiniDV",
              "Pathé Disc",
              "PlayTape",
              "Pocket Rocker",
              "RCA Tape Cartridge",
              "Reel-To-Reel",
              "SACD",
              "SelectaVision",
              "Shellac",
              "Super VHS",
              "Tefifon",
              "U-matic",
              "UMD",
              "Ultra HD Blu-ray",
              "VHD",
              "VHS",
              "Video 2000",
              "Video8",
              "Zip Disk",
              "HitClips"
            ],
            "type": "string",
            "description": "Only for Sell LIST.",
            "default": "default"
          },
          "shipsFilter": {
            "title": "Filter - Ships From",
            "enum": [
              "default",
              "United States",
              "United Kingdom",
              "Germany",
              "Italy",
              "Netherlands",
              "France",
              "Japan",
              "Spain",
              "Canada",
              "Belgium",
              "Greece",
              "Australia",
              "Sweden",
              "Portugal",
              "Denmark",
              "Switzerland",
              "Austria",
              "Poland",
              "Brazil",
              "Hungary",
              "Finland",
              "China",
              "Norway",
              "Lithuania",
              "Czech Republic",
              "Mexico",
              "Israel",
              "Serbia",
              "Argentina",
              "Romania",
              "Ukraine",
              "Ireland",
              "Croatia",
              "Turkey",
              "South Africa",
              "Indonesia",
              "Northern Ireland",
              "Bulgaria",
              "Jamaica",
              "Slovak Republic",
              "Latvia",
              "Peru",
              "Slovenia",
              "Colombia",
              "France (European Territory)",
              "Estonia",
              "Venezuela",
              "Hong Kong",
              "New Zealand",
              "South Korea",
              "Belarus",
              "Macedonia",
              "Chile",
              "Taiwan",
              "Luxembourg",
              "Malaysia",
              "Iceland",
              "Lebanon",
              "Cyprus",
              "Bosnia-Herzegovina",
              "Kazakhstan",
              "United Kingdom (Channel Islands)",
              "Thailand",
              "Malta",
              "Ecuador",
              "Morocco",
              "Uruguay",
              "Georgia",
              "Guadeloupe (French)",
              "Spain (Canary Islands)",
              "Panama",
              "Gibraltar",
              "Armenia",
              "Philippines",
              "Trinidad and Tobago",
              "San Marino",
              "El Salvador",
              "Reunion (French)",
              "Monaco",
              "Vietnam",
              "Nigeria",
              "Fiji",
              "Bahrain",
              "Kenya",
              "Bolivia",
              "Moldova, Republic of",
              "Costa Rica",
              "Dominican Republic",
              "Uganda",
              "Paraguay",
              "United Arab Emirates",
              "Guyana",
              "Egypt",
              "Oman",
              "Uzbekistan",
              "Micronesia",
              "New Caledonia (French)",
              "Montenegro",
              "Polynesia (French)"
            ],
            "type": "string",
            "description": "Only for Sell. Set to Any (default) for all.",
            "default": "default"
          },
          "mediaConditionFilter": {
            "title": "Filter - Media Condition",
            "enum": [
              "default",
              "Mint (M)",
              "Near Mint (NM or M-)",
              "Very Good Plus (VG+)",
              "Very Good (VG)",
              "Good Plus (G+)",
              "Good (G)",
              "Fair (F)",
              "Poor (P)"
            ],
            "type": "string",
            "description": "Only for Sell.",
            "default": "default"
          },
          "currencyFilter": {
            "title": "Filter - Currency",
            "enum": [
              "default",
              "USD",
              "EUR",
              "JPY",
              "GBP",
              "AUD",
              "CAD",
              "CHF",
              "CNY",
              "SEK",
              "NZD",
              "MXN",
              "SGD",
              "HKD",
              "NOK",
              "KRW",
              "TRY",
              "RUB",
              "INR",
              "BRL",
              "ZAR"
            ],
            "type": "string",
            "description": "Only for Sell. Set to Any (default) for all.",
            "default": "default"
          },
          "currencyConversion": {
            "title": "Currency conversion",
            "enum": [
              "USD",
              "EUR",
              "JPY",
              "GBP",
              "AUD",
              "CAD",
              "CHF",
              "CNY",
              "SEK",
              "NZD",
              "MXN",
              "SGD",
              "HKD",
              "NOK",
              "KRW",
              "TRY",
              "RUB",
              "INR",
              "BRL",
              "ZAR"
            ],
            "type": "string",
            "description": "Only for Sell. Will convert the sales total price.",
            "default": "ZAR"
          },
          "mycookie": {
            "title": "Cookie",
            "type": "string",
            "description": "Only for Sell. See Information tab."
          },
          "maximum": {
            "title": "Maximum results",
            "minimum": 25,
            "maximum": 250,
            "type": "integer",
            "description": "Per keyword.",
            "default": 50
          },
          "batch": {
            "title": "Parallel processing",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "See Information tab.",
            "default": 1
          },
          "delay": {
            "title": "Delay",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Waiting time between requests.",
            "default": 3
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}