{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Hashtag Analytics",
    "description": "Instagram hashtag analytics with Reel and creator insights. One report per hashtag from up to 500 sampled posts and Reels: Reel share, plays, length and original audio; unique, verified and top creators and how concentrated they are; median engagement, media mix and co-occurring hashtags.",
    "version": "1.0",
    "x-build-id": "pXe3yCuOnf2KkLVAO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~instagram-hashtag-analytics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-instagram-hashtag-analytics",
        "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-hashtag-analytics/runs": {
      "post": {
        "operationId": "runs-sync-coregent-instagram-hashtag-analytics",
        "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-hashtag-analytics/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-instagram-hashtag-analytics",
        "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": [
          "hashtags"
        ],
        "properties": {
          "hashtags": {
            "title": "Hashtags",
            "maxItems": 100,
            "type": "array",
            "description": "One hashtag per line, with or without # (fitness, #travel). Hashtag URLs such as https://www.instagram.com/explore/tags/ai/ work too. Case doesn't matter and duplicates are removed. You get one analytics report per hashtag. Up to 100 hashtags per run.",
            "items": {
              "type": "string"
            },
            "default": [
              "fitness"
            ]
          },
          "sampleMode": {
            "title": "Sample mode",
            "enum": [
              "TOP_AND_RECENT",
              "TOP",
              "RECENT"
            ],
            "type": "string",
            "description": "Which Instagram hashtag feed to sample. TOP is Instagram's ranked feed (a quality / high-engagement snapshot). RECENT is the newest posts (current activity). TOP_AND_RECENT splits the sample about 50/50 between the two for a balanced view; a post that shows up in both is counted once.",
            "default": "TOP_AND_RECENT"
          },
          "sampleSizePerHashtag": {
            "title": "Sample size per hashtag",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Total number of unique posts/Reels to analyze for each hashtag (split between Top and Recent in TOP_AND_RECENT mode). Bigger samples give steadier medians and more co-occurring hashtags, and take longer. Common values: 25, 50, 100, 250, 500. Small or niche hashtags may return fewer; the report says how many were actually sampled.",
            "default": 100
          },
          "minPostDate": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Optional. Only sample posts published on or after this date, for recent-campaign analysis. Use an ISO date (2026-09-01) or a period like \"7 days\" or \"24 hours\". The Recent feed stops early once it reaches older posts; the Top feed is ranked, so older posts there are skipped. Leave empty for no date limit.",
            "default": ""
          },
          "includeMediaMix": {
            "title": "Content mix",
            "type": "boolean",
            "description": "Count Reels, images, carousels and other videos in the sample, with their shares.",
            "default": true
          },
          "includeReelAnalytics": {
            "title": "Reel analytics",
            "type": "boolean",
            "description": "Average and median Reel likes, comments, plays and views, average Reel length, and the share of Reels using original audio.",
            "default": true
          },
          "includeCreatorAnalytics": {
            "title": "Creator analytics",
            "type": "boolean",
            "description": "Unique creators, verified creators, the share of the sample posted by the 10 most frequent creators, and up to 10 top creators. Built from the sampled posts only; no extra profile lookups.",
            "default": true
          },
          "includeCooccurringHashtags": {
            "title": "Co-occurring hashtags",
            "type": "boolean",
            "description": "Other hashtags used in the sampled captions, with how many sampled posts use each. Derived from the sample, not an Instagram-provided related-hashtags list.",
            "default": true
          },
          "maxRelatedHashtags": {
            "title": "Max co-occurring hashtags",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many co-occurring hashtags to list per report, most frequent first.",
            "default": 25
          },
          "includeTopExamples": {
            "title": "Top posts",
            "type": "boolean",
            "description": "Compact examples of the best-performing sampled posts (by visible likes + comments): link, type, caption preview, creator, likes, comments, plays/views and date.",
            "default": true
          },
          "maxTopExamples": {
            "title": "Max top posts",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many top posts to include per report.",
            "default": 10
          },
          "includeRawSample": {
            "title": "Include the sampled posts",
            "type": "boolean",
            "description": "Also attach every sampled post to its report (compact form: link, type, creator, engagement, date and whether it came from Top, Recent or both). Off by default to keep reports small.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many hashtags are analyzed in parallel. One hashtag's pages are always fetched in order.",
            "default": 5
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Verbose logging for troubleshooting.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}