{
  "openapi": "3.0.1",
  "info": {
    "title": "Freesound Scraper",
    "description": "Scrape Freesound.org - a community-driven library of 600,000+ Creative Commons-licensed sound effects and samples. Search by keyword, tag, or uploader; get title, license, duration, downloads, rating, tags, and preview audio URLs.",
    "version": "1.0",
    "x-build-id": "hjma4L0kf2M5dOk4A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~freesound-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-freesound-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/crawlerbros~freesound-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-freesound-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/crawlerbros~freesound-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-freesound-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byTag",
              "byUser",
              "similarTo"
            ],
            "type": "string",
            "description": "What to fetch: keyword search, browse all sounds under a tag, or browse all sounds by an uploader.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Keyword(s) to search for, e.g. 'piano', 'rain', 'footsteps', 'explosion'. Can be combined with Tags/Uploader below to narrow a search further.",
            "default": "piano"
          },
          "tags": {
            "title": "Tags (mode=byTag, or extra filter for mode=search)",
            "type": "array",
            "description": "One or more Freesound tags. All listed tags must be present on a sound (AND). Examples: 'piano', 'loop', 'ambient', 'field-recording', 'drums', '120bpm'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "username": {
            "title": "Uploader username (mode=byUser, or extra filter for mode=search)",
            "type": "string",
            "description": "Exact Freesound username to browse/filter by, e.g. 'InspectorJ' or 'unfa'. Case-sensitive, must match the uploader's profile URL slug."
          },
          "soundId": {
            "title": "Sound ID (mode=similarTo)",
            "type": "string",
            "description": "Numeric Freesound sound ID to find similar sounds for, e.g. '468996' (from a sound page URL like freesound.org/people/<user>/sounds/468996/). Uses Freesound's own 'Find similar sounds' recommender."
          },
          "license": {
            "title": "License",
            "enum": [
              "any",
              "creativeCommons0",
              "attribution",
              "attributionNoncommercial",
              "samplingPlus"
            ],
            "type": "string",
            "description": "Only return sounds under this Creative Commons license.",
            "default": "any"
          },
          "fileType": {
            "title": "File type",
            "enum": [
              "any",
              "wav",
              "mp3",
              "aiff",
              "flac",
              "ogg",
              "m4a"
            ],
            "type": "string",
            "description": "Only return sounds uploaded in this audio file format.",
            "default": "any"
          },
          "minDuration": {
            "title": "Minimum duration (seconds)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Only return sounds at least this many seconds long. Leave empty for no minimum."
          },
          "maxDuration": {
            "title": "Maximum duration (seconds)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Only return sounds at most this many seconds long. Leave empty for no maximum."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "durationDesc",
              "durationAsc",
              "dateDesc",
              "dateAsc",
              "downloadsDesc",
              "downloadsAsc"
            ],
            "type": "string",
            "description": "How Freesound orders the results. 'Relevance' requires a search query to be meaningful; browsing by tag/uploader with no query defaults to newest-first automatically.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only return sounds rated at least this many stars (0-5). Applied client-side; unrated sounds are excluded once this is set above 0. 0 means no minimum.",
            "default": 0
          },
          "minDownloads": {
            "title": "Minimum downloads",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only return sounds with at least this many downloads. Applied client-side. 0 means no minimum.",
            "default": 0
          },
          "onlyGeotagged": {
            "title": "Only geotagged sounds",
            "type": "boolean",
            "description": "Only return sounds that have geolocation information attached.",
            "default": false
          },
          "groupByPack": {
            "title": "Group sounds by pack",
            "type": "boolean",
            "description": "When multiple results belong to the same sound pack, Freesound collapses them to one representative result (Freesound's own default behaviour). Turn off to see every individual sound.",
            "default": true
          },
          "fetchFileDetails": {
            "title": "Fetch extra file details (slower)",
            "type": "boolean",
            "description": "For each result, additionally open its Freesound sound page to capture file size, bitrate (lossy formats) or bit depth (lossless formats), and channel count (Mono/Stereo) -- none of these are available on the search-results page. Adds one extra request per sound, so runs take noticeably longer.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on the number of sound records to return.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}