{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Hashtag Search Scraper: Post Counts",
    "description": "Instagram hashtag search by keyword or name, no login: up to 5,000 hashtags a keyword with deep search, or a real-time API. Rows carry the post count Instagram's hashtag search reports, tag id, rank, popularity and difficulty; add-ons: related hashtags, top posts. JSON, CSV or API; pay per hashtag.",
    "version": "0.1",
    "x-build-id": "DOqL8aoVzOTQc4tED"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~instagram-hashtag-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-instagram-hashtag-search-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/automation_craft~instagram-hashtag-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-instagram-hashtag-search-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/automation_craft~instagram-hashtag-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-instagram-hashtag-search-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",
            "type": "array",
            "description": "Words to find hashtags for, one keyword per line (up to 500): a niche, a trade, a brand, a topic or a place (\"coffee roaster\", \"sourdough\", \"nail art\"). Instagram lists the hashtags that start with the keyword, the most used first, each with the post count Instagram's hashtag search reports. A leading # is dropped and the words are read joined (\"coffee roaster\" finds #coffeeroaster, #coffeeroasters, ...). A link to an instagram.com/explore/tags/ page is read as its hashtag.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags to look up",
            "type": "array",
            "description": "Hashtags you already know, one per line (up to 1,000), with or without the # (\"travel\", \"#veganrecipes\") or as an instagram.com/explore/tags/ link: each one gives ONE row with the post count Instagram's hashtag search reports, Instagram's tag id and the add-ons you turn on. A hashtag Instagram does not list gets a free row with the names it lists for that text instead.",
            "items": {
              "type": "string"
            }
          },
          "deepSearch": {
            "title": "Deep search (more than 55 hashtags a keyword)",
            "type": "boolean",
            "description": "On: when Instagram's answer for a keyword is full (55 hashtags), the Actor also searches the keyword followed by each letter, digit and underscore (\"coffeeroastera\", \"coffeeroasterb\", ...) and deeper where those answers are full too, so a broad keyword gives hundreds or thousands of hashtags (about 2,000 for \"coffee\"), up to the cap per keyword below. A deep search stops listing once it has listed 20,000 distinct hashtags for a keyword (before filters; the answer that crosses the bound is still read); a keyword that reaches that bound before your cap is reported as not finished. Off: one search a keyword, up to 55 hashtags.",
            "default": true
          },
          "maxHashtagsPerKeyword": {
            "title": "Max hashtags per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hashtags delivered for one keyword at most (deep search walks until it reaches this). Hashtags left out by a filter do not count.",
            "default": 100
          },
          "maxHashtags": {
            "title": "Max hashtags in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops the run once it delivered this many hashtags across all keywords and named hashtags (named hashtags first, then keywords in the order given). Empty means the run's bound: 100,000 hashtags."
          },
          "minHashtagPosts": {
            "title": "Min posts of a hashtag",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Keep only hashtags used on at least this many posts (the count Instagram's hashtag search reports). Empty means no lower bound."
          },
          "maxHashtagPosts": {
            "title": "Max posts of a hashtag",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Keep only hashtags used on at most this many posts (smaller, less crowded hashtags). Empty means no upper bound."
          },
          "requireKeywordMatch": {
            "title": "Only hashtags that hold every keyword word",
            "type": "boolean",
            "description": "Keep only hashtags whose name holds every word of the keyword (\"vegan bakery\": #veganbakerylondon yes, #veganfood no). Every row carries keywordMatch either way.",
            "default": false
          },
          "includeRelatedHashtags": {
            "title": "Related hashtags (add-on)",
            "type": "boolean",
            "description": "On: each hashtag row also carries the hashtags used most often with it in its top public reels (relatedHashtags: up to 10, each with how many of those reels use it, the post count Instagram's hashtag search reports and popularity band), grouped as relatedFrequent (1,000,000 posts or more), relatedAverage (10,000 to 999,999) and relatedRare (under 10,000). Billed as a Related hashtag list per hashtag where at least one related hashtag was found. The reads draw on the run's work allowance for add-ons: when it is spent, the remaining hashtags come without the list (relatedHashtagsStatus allowance, not charged).",
            "default": false
          },
          "includeTopPosts": {
            "title": "Top posts and their statistics (add-on)",
            "type": "boolean",
            "description": "On: each hashtag row also carries its top public reels as Instagram shows them to a visitor who is not logged in (topPosts: link, caption, hashtags, plays, post time, cover and the creator's username, id and verified flag), a statistics block (topPostsStats: median and average plays, the share of those reels that carry the hashtag, the top creators, hashtags per caption, newest and oldest post) and the related searches Instagram shows (relatedSearches). Billed as a Top post list per hashtag where at least one reel was found. When the run's work allowance for add-ons is spent, the remaining hashtags come without it (topPostsStatus allowance, not charged).",
            "default": false
          },
          "maxTopPosts": {
            "title": "Max top posts per hashtag",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Top posts kept on a row (the statistics always count every reel read, up to 24).",
            "default": 12
          },
          "addOnsMinPosts": {
            "title": "Add-ons only for hashtags with at least this many posts",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "The add-ons read the hashtag's public popular reels page, which Instagram shows mostly for larger hashtags. They are read only for hashtags with at least this many posts; smaller hashtags get the status below_min_posts (not read, not charged). 0 reads them for every hashtag.",
            "default": 10000
          },
          "includeRawData": {
            "title": "Raw data",
            "type": "boolean",
            "description": "On: each hashtag row also carries Instagram's own search entry for it, as served (raw). Free.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel reads",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many add-on reads (popular pages, related hashtag counts) run at once. The hashtag searches themselves run one at a time per keyword.",
            "default": 4
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stops the run after this many seconds, with a row for each keyword or hashtag not finished. Empty means the platform timeout."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "How long one request may take before it is retried.",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How often a failed request is retried on a fresh connection.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default: Apify Proxy without a group or country, which reads from the run's own address first and moves a request type to Apify's datacenter proxy when it is refused there. Choose a group or a country to read only through Apify Proxy, or give your own proxy links. A residential group is read through the datacenter pool instead (no extra cost).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}