{
  "openapi": "3.0.1",
  "info": {
    "title": "Openverse Creative Commons Image & Audio Finder",
    "description": "Search Openverse for Creative Commons images or audio by keyword, license, provider and format, or fetch a specific item by ID, with attribution text included.",
    "version": "2.0",
    "x-build-id": "L2X97MI44Bbdiju3c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~openverse-creative-commons-image-and-audio-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-openverse-creative-commons-image-and-audio-finder",
        "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/dataspryva~openverse-creative-commons-image-and-audio-finder/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-openverse-creative-commons-image-and-audio-finder",
        "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/dataspryva~openverse-creative-commons-image-and-audio-finder/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-openverse-creative-commons-image-and-audio-finder",
        "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": "What to collect",
            "enum": [
              "searchImages",
              "searchAudio",
              "byId",
              "related",
              "listSources"
            ],
            "type": "string",
            "description": "Search images or audio, fetch specific items by ID/link, find media related to an item, or list Openverse's sources.",
            "default": "searchImages"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keywords, e.g. 'mountain landscape' or 'jazz piano'. Leave blank to browse using only the filters below.",
            "default": "mountain landscape"
          },
          "searchIn": {
            "title": "Search in",
            "enum": [
              "all",
              "title",
              "tags",
              "creator"
            ],
            "type": "string",
            "description": "Which metadata field the query searches. Openverse cannot combine these with a full-text query, so pick one.",
            "default": "all"
          },
          "licenses": {
            "title": "Licenses",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these Creative Commons licences. Leave empty for all licences.",
            "items": {
              "type": "string",
              "enum": [
                "by",
                "by-sa",
                "by-nc",
                "by-nc-sa",
                "by-nd",
                "by-nc-nd",
                "cc0",
                "pdm",
                "sampling+",
                "nc-sampling+"
              ],
              "enumTitles": [
                "CC BY",
                "CC BY-SA",
                "CC BY-NC",
                "CC BY-NC-SA",
                "CC BY-ND",
                "CC BY-NC-ND",
                "CC0",
                "Public Domain Mark",
                "Sampling+",
                "NonCommercial Sampling+"
              ]
            },
            "default": []
          },
          "licenseType": {
            "title": "Usage rights",
            "enum": [
              "",
              "all",
              "all-cc",
              "commercial",
              "modification"
            ],
            "type": "string",
            "description": "Filter by what the licence allows. Empty means no usage restriction.",
            "default": ""
          },
          "sources": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Restrict results to specific Openverse sources (Flickr, Wikimedia Commons, NASA, Jamendo, …). Sources that do not serve the chosen media type are skipped. Leave empty for all sources.",
            "items": {
              "type": "string",
              "enum": [
                "animaldiversity",
                "archief_alkmaar",
                "bib_gulbenkian",
                "bio_diversity",
                "brooklynmuseum",
                "clevelandmuseum",
                "digitaltmuseum",
                "east_riding",
                "europeana",
                "finnish_heritage_agency",
                "finnish_military_museum",
                "finnish_satakunnan_museum",
                "flickr",
                "floraon",
                "geographorguk",
                "inaturalist",
                "justtakeitfree",
                "katmai_nps",
                "met",
                "museumsvictoria",
                "nappy",
                "nasa",
                "national_museum_of_finland",
                "nypl",
                "phylopic",
                "rawpixel",
                "rijksmuseum",
                "sciencemuseum",
                "sketchfab",
                "smk",
                "smithsonian_african_american_history_museum",
                "smithsonian_african_art_museum",
                "smithsonian_air_and_space_museum",
                "smithsonian_american_art_museum",
                "smithsonian_american_history_museum",
                "smithsonian_american_indian_museum",
                "smithsonian_anacostia_museum",
                "smithsonian_cooper_hewitt_museum",
                "smithsonian_freer_gallery_of_art",
                "smithsonian_gardens",
                "smithsonian_hirshhorn_museum",
                "smithsonian_institution_archives",
                "smithsonian_libraries",
                "smithsonian_national_museum_of_natural_history",
                "smithsonian_portrait_gallery",
                "smithsonian_postal_museum",
                "smithsonian_zoo_and_conservation",
                "spacex",
                "stocksnap",
                "svgsilh",
                "thingiverse",
                "waltersartmuseum",
                "wellcome_collection",
                "woc_tech",
                "wordpress",
                "wikimedia",
                "freesound",
                "jamendo",
                "wikimedia_audio"
              ],
              "enumTitles": [
                "Animal Diversity Web",
                "Regionaal Archief Alkmaar",
                "Gulbenkian Art Library",
                "Biodiversity Heritage Library",
                "Brooklyn Museum",
                "Cleveland Museum of Art",
                "Digitalt Museum",
                "East Riding of Yorkshire",
                "Europeana",
                "Finnish Heritage Agency",
                "Finnish Military Museum",
                "Finnish Satakunnan Museum",
                "Flickr",
                "FloraOn",
                "Geograph Britain and Ireland",
                "iNaturalist",
                "Just take it free",
                "Katmai National Park Service",
                "Metropolitan Museum of Art",
                "Museums Victoria",
                "Nappy",
                "NASA",
                "National Museum of Finland",
                "New York Public Library",
                "PhyloPic",
                "Rawpixel",
                "Rijksmuseum",
                "Science Museum – UK",
                "Sketchfab",
                "National Gallery of Denmark (SMK)",
                "Smithsonian National Museum of African American History and Culture",
                "Smithsonian National Museum of African Art",
                "Smithsonian National Air and Space Museum",
                "Smithsonian American Art Museum",
                "Smithsonian National Museum of American History",
                "Smithsonian National Museum of the American Indian",
                "Smithsonian Anacostia Community Museum",
                "Smithsonian Cooper Hewitt Design Museum",
                "Smithsonian Freer Gallery of Art",
                "Smithsonian Gardens",
                "Smithsonian Hirshhorn Museum and Sculpture Garden",
                "Smithsonian Institution Archives",
                "Smithsonian Libraries",
                "Smithsonian National Museum of Natural History",
                "Smithsonian National Portrait Gallery",
                "Smithsonian National Postal Museum",
                "Smithsonian National Zoo",
                "SpaceX",
                "StockSnap.io",
                "SVG Silh",
                "Thingiverse",
                "Walters Art Museum",
                "Wellcome Collection",
                "WOCinTech Chat",
                "WP Photo Directory",
                "Wikimedia Commons",
                "Freesound",
                "Jamendo",
                "Wikimedia Commons Audio"
              ]
            },
            "default": []
          },
          "excludedSources": {
            "title": "Excluded sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Drop results from these sources. Sources that do not serve the chosen media type are ignored.",
            "items": {
              "type": "string",
              "enum": [
                "animaldiversity",
                "archief_alkmaar",
                "bib_gulbenkian",
                "bio_diversity",
                "brooklynmuseum",
                "clevelandmuseum",
                "digitaltmuseum",
                "east_riding",
                "europeana",
                "finnish_heritage_agency",
                "finnish_military_museum",
                "finnish_satakunnan_museum",
                "flickr",
                "floraon",
                "geographorguk",
                "inaturalist",
                "justtakeitfree",
                "katmai_nps",
                "met",
                "museumsvictoria",
                "nappy",
                "nasa",
                "national_museum_of_finland",
                "nypl",
                "phylopic",
                "rawpixel",
                "rijksmuseum",
                "sciencemuseum",
                "sketchfab",
                "smk",
                "smithsonian_african_american_history_museum",
                "smithsonian_african_art_museum",
                "smithsonian_air_and_space_museum",
                "smithsonian_american_art_museum",
                "smithsonian_american_history_museum",
                "smithsonian_american_indian_museum",
                "smithsonian_anacostia_museum",
                "smithsonian_cooper_hewitt_museum",
                "smithsonian_freer_gallery_of_art",
                "smithsonian_gardens",
                "smithsonian_hirshhorn_museum",
                "smithsonian_institution_archives",
                "smithsonian_libraries",
                "smithsonian_national_museum_of_natural_history",
                "smithsonian_portrait_gallery",
                "smithsonian_postal_museum",
                "smithsonian_zoo_and_conservation",
                "spacex",
                "stocksnap",
                "svgsilh",
                "thingiverse",
                "waltersartmuseum",
                "wellcome_collection",
                "woc_tech",
                "wordpress",
                "wikimedia",
                "freesound",
                "jamendo",
                "wikimedia_audio"
              ],
              "enumTitles": [
                "Animal Diversity Web",
                "Regionaal Archief Alkmaar",
                "Gulbenkian Art Library",
                "Biodiversity Heritage Library",
                "Brooklyn Museum",
                "Cleveland Museum of Art",
                "Digitalt Museum",
                "East Riding of Yorkshire",
                "Europeana",
                "Finnish Heritage Agency",
                "Finnish Military Museum",
                "Finnish Satakunnan Museum",
                "Flickr",
                "FloraOn",
                "Geograph Britain and Ireland",
                "iNaturalist",
                "Just take it free",
                "Katmai National Park Service",
                "Metropolitan Museum of Art",
                "Museums Victoria",
                "Nappy",
                "NASA",
                "National Museum of Finland",
                "New York Public Library",
                "PhyloPic",
                "Rawpixel",
                "Rijksmuseum",
                "Science Museum – UK",
                "Sketchfab",
                "National Gallery of Denmark (SMK)",
                "Smithsonian National Museum of African American History and Culture",
                "Smithsonian National Museum of African Art",
                "Smithsonian National Air and Space Museum",
                "Smithsonian American Art Museum",
                "Smithsonian National Museum of American History",
                "Smithsonian National Museum of the American Indian",
                "Smithsonian Anacostia Community Museum",
                "Smithsonian Cooper Hewitt Design Museum",
                "Smithsonian Freer Gallery of Art",
                "Smithsonian Gardens",
                "Smithsonian Hirshhorn Museum and Sculpture Garden",
                "Smithsonian Institution Archives",
                "Smithsonian Libraries",
                "Smithsonian National Museum of Natural History",
                "Smithsonian National Portrait Gallery",
                "Smithsonian National Postal Museum",
                "Smithsonian National Zoo",
                "SpaceX",
                "StockSnap.io",
                "SVG Silh",
                "Thingiverse",
                "Walters Art Museum",
                "Wellcome Collection",
                "WOCinTech Chat",
                "WP Photo Directory",
                "Wikimedia Commons",
                "Freesound",
                "Jamendo",
                "Wikimedia Commons Audio"
              ]
            },
            "default": []
          },
          "imageCategory": {
            "title": "Image categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Image searches only: photograph, illustration or digitized artwork.",
            "items": {
              "type": "string",
              "enum": [
                "digitized_artwork",
                "illustration",
                "photograph"
              ],
              "enumTitles": [
                "Digitized artwork",
                "Illustration",
                "Photograph"
              ]
            },
            "default": []
          },
          "audioCategory": {
            "title": "Audio categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Audio searches only: music, podcast, sound effect, audiobook, news or pronunciation.",
            "items": {
              "type": "string",
              "enum": [
                "audiobook",
                "music",
                "news",
                "podcast",
                "pronunciation",
                "sound_effect"
              ],
              "enumTitles": [
                "Audiobook",
                "Music",
                "News",
                "Podcast",
                "Pronunciation",
                "Sound effect"
              ]
            },
            "default": []
          },
          "aspectRatio": {
            "title": "Image aspect ratio",
            "uniqueItems": true,
            "type": "array",
            "description": "Image searches only: wide, tall or square.",
            "items": {
              "type": "string",
              "enum": [
                "square",
                "tall",
                "wide"
              ],
              "enumTitles": [
                "Square",
                "Tall",
                "Wide"
              ]
            },
            "default": []
          },
          "imageSize": {
            "title": "Image size",
            "uniqueItems": true,
            "type": "array",
            "description": "Image searches only: large, medium or small.",
            "items": {
              "type": "string",
              "enum": [
                "large",
                "medium",
                "small"
              ],
              "enumTitles": [
                "Large",
                "Medium",
                "Small"
              ]
            },
            "default": []
          },
          "audioLength": {
            "title": "Audio length",
            "uniqueItems": true,
            "type": "array",
            "description": "Audio searches only: long, medium, short or shortest.",
            "items": {
              "type": "string",
              "enum": [
                "long",
                "medium",
                "short",
                "shortest"
              ],
              "enumTitles": [
                "Long",
                "Medium",
                "Short",
                "Shortest"
              ]
            },
            "default": []
          },
          "imageFormat": {
            "title": "Image formats",
            "uniqueItems": true,
            "type": "array",
            "description": "Image searches only: jpg, png, gif, svg, webp or tiff.",
            "items": {
              "type": "string",
              "enum": [
                "jpg",
                "png",
                "gif",
                "svg",
                "webp",
                "tiff"
              ],
              "enumTitles": [
                "JPG",
                "PNG",
                "GIF",
                "SVG",
                "WebP",
                "TIFF"
              ]
            },
            "default": []
          },
          "audioFormat": {
            "title": "Audio formats",
            "uniqueItems": true,
            "type": "array",
            "description": "Audio searches only: mp3, mp32, ogg, ogx, flac, wav or oga.",
            "items": {
              "type": "string",
              "enum": [
                "mp3",
                "mp32",
                "ogg",
                "ogx",
                "flac",
                "wav",
                "oga"
              ],
              "enumTitles": [
                "MP3",
                "MP3 (Jamendo mp32)",
                "OGG",
                "OGX",
                "FLAC",
                "WAV",
                "OGA"
              ]
            },
            "default": []
          },
          "includeMature": {
            "title": "Include sensitive results",
            "type": "boolean",
            "description": "Include items Openverse marks as sensitive/mature. Off by default.",
            "default": false
          },
          "filterDeadLinks": {
            "title": "Filter dead links",
            "type": "boolean",
            "description": "Ask Openverse to drop results whose media link returns 404. On by default.",
            "default": true
          },
          "itemType": {
            "title": "Item type",
            "enum": [
              "image",
              "audio"
            ],
            "type": "string",
            "description": "Image or audio, used by the byId and related modes when the input is a bare UUID.",
            "default": "image"
          },
          "itemId": {
            "title": "Item ID or link",
            "type": "string",
            "description": "One Openverse UUID, API URL or openverse.org image/audio link."
          },
          "itemIds": {
            "title": "Item IDs or links",
            "type": "array",
            "description": "Batch lookup: multiple UUIDs or links, one per line.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum records to return (1–10,000). Search runs above 240 combine Openverse facets to go deeper; lookup modes cap the number of items processed.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}