{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Trending Audio Scraper - Reels Sounds & Music",
    "description": "Find Instagram Reels audio by keyword or link: song and original sound details, artist, duration, Reel counts, and the top Reels using each sound. Track how fast a sound is growing between runs. No login, no cookies.",
    "version": "1.0",
    "x-build-id": "ENjVho0g0PESpMshd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~instagram-trending-audio-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-instagram-trending-audio-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/coregent~instagram-trending-audio-scraper/runs": {
      "post": {
        "operationId": "runs-sync-coregent-instagram-trending-audio-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/coregent~instagram-trending-audio-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-instagram-trending-audio-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",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Song names, artists, moods or niches to search Instagram's audio library for (for example: lofi, workout, Taylor Swift). Each keyword returns up to 10 sounds. Leave empty when you only want the audio links below.",
            "items": {
              "type": "string"
            }
          },
          "audioUrls": {
            "title": "Audio links or IDs",
            "maxItems": 500,
            "type": "array",
            "description": "Instagram audio page links (https://www.instagram.com/reels/audio/<id>/) or numeric audio IDs. Works for songs and original sounds.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxAudiosPerKeyword": {
            "title": "Max sounds per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many sounds to return from Instagram's audio search for each keyword, in its search order. The audio search returns at most 10 per keyword; for more, add keywords or turn on \"Also find sounds used in Reels\" below.",
            "default": 10
          },
          "soundsFromReels": {
            "title": "Also find sounds used in Reels about each keyword",
            "type": "boolean",
            "description": "Also search Reels for each keyword and return the sounds those Reels use, beyond the audio search's 10. Shows how many of the scanned Reels used each sound (reelsInSearch). Each page of Reels searched adds a small data cost, so it's off by default.",
            "default": false
          },
          "reelSearchPagesPerKeyword": {
            "title": "Reel search pages per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only used when \"Also find sounds used in Reels\" is on. More pages find more sounds.",
            "default": 2
          },
          "includeReels": {
            "title": "Include top Reels for each sound",
            "type": "boolean",
            "description": "Also return the Reels that use each sound (creator, plays, likes, comments, date), as separate rows. Billed per Reel.",
            "default": false
          },
          "maxReelsPerAudio": {
            "title": "Max Reels per sound",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Only used when Reels are included.",
            "default": 12
          },
          "minReelCount": {
            "title": "Minimum Reel count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip sounds used in fewer Reels than this. Sounds whose Reel count Instagram doesn't show are kept. Skipped sounds are not charged. 0 = no filter.",
            "default": 0
          },
          "onlyTrending": {
            "title": "Only trending sounds",
            "type": "boolean",
            "description": "Keep only sounds Instagram marks as trending. Sounds without a trending flag in the data are kept.",
            "default": false
          },
          "originalSoundsOnly": {
            "title": "Original sounds only",
            "type": "boolean",
            "description": "Keep only original sounds (audio made by a creator). Keyword search mostly returns licensed songs, so use this with audio links.",
            "default": false
          },
          "licensedMusicOnly": {
            "title": "Licensed music only",
            "type": "boolean",
            "description": "Keep only licensed songs. Don't combine with \"Original sounds only\".",
            "default": false
          },
          "trackGrowth": {
            "title": "Track Reel-count growth between runs",
            "type": "boolean",
            "description": "Remember each sound's Reel count and show the change since this task's previous run. Schedule the task (daily or weekly) to see which sounds are picking up.",
            "default": true
          },
          "historyName": {
            "title": "History name",
            "type": "string",
            "description": "Leave empty to keep a separate history for each saved task. Use the same name in several tasks to share one history.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}