{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Hashtag Scraper: Views, Likes & Date Filter",
    "description": "Scrape Instagram posts and reels by hashtag with views, likes and comments on every row. Filter by date (e.g. last 30 days), reels only, or minimum views/likes, and pull older posts from creators using the tag. No login or cookies. Get more with no duplicates.",
    "version": "0.1",
    "x-build-id": "xU8xq9RXMEwayzFeT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ziyank~instagram-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ziyank-instagram-hashtag-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/ziyank~instagram-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ziyank-instagram-hashtag-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/ziyank~instagram-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ziyank-instagram-hashtag-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": [
          "hashtags"
        ],
        "properties": {
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "One or more hashtags, with or without #. Each is scraped separately; duplicates across hashtags are removed.",
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts newer than this. A date (2026-01-31), an ISO timestamp, or a relative window such as \"30 days\" or \"6 months\"."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts older than this. Same formats as \"Posted after\"."
          },
          "includeOlderPosts": {
            "title": "Include older posts (creator backfill)",
            "type": "boolean",
            "description": "Also checks the latest posts of creators who use the hashtag and keeps those inside your date range that carry the exact hashtag. Finds far more dated posts, at an extra per-result fee. This is a broad sample, not Instagram's complete hashtag archive.",
            "default": false
          },
          "completeMetrics": {
            "title": "Complete metrics (views + likes + comments)",
            "type": "boolean",
            "description": "Fill in likes and comments for reels found on hashtag pages (which only show views) with one lightweight extra request per result. Included in the result price. Turn off for the fastest, views-only run.",
            "default": true
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "reels",
              "posts"
            ],
            "type": "string",
            "description": "Keep everything, only reels/videos, or only photo/carousel posts.",
            "default": "all"
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Drop reels with fewer plays. Posts without a view count are dropped when this is above 0.",
            "default": 0
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer likes. Needs \"Complete metrics\" on for reels found on hashtag pages.",
            "default": 0
          },
          "strictHashtag": {
            "title": "Exact hashtag only",
            "type": "boolean",
            "description": "Keep only posts whose caption contains the exact #hashtag. Turn off to also get posts from Instagram's related topics (labelled matchType = related_topic).",
            "default": true
          },
          "maxResultsPerHashtag": {
            "title": "Max results per hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Results per hashtag in this run (default 20 keeps runs fast and cheap). Need more? Run again with \"Continue from run\" to get the next batch with no duplicates.",
            "default": 20
          },
          "continueFromRunId": {
            "title": "Continue from run",
            "type": "string",
            "description": "Paste the run ID of a previous run of this Actor (same hashtags) to get the next batch of results. Results already delivered are skipped and not charged again. The ID is shown in that run's OUTPUT as continueWith."
          },
          "maxPagesPerHashtag": {
            "title": "Max page loads per hashtag",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on pages visited per hashtag. Keeps run time and cost predictable.",
            "default": 40
          },
          "relatedTopics": {
            "title": "Related topics to explore",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many of Instagram's related topic pages to explore per hashtag. Each adds up to ~12 posts. 0 = only the hashtag's own page.",
            "default": 5
          },
          "relatedDepth": {
            "title": "Related topic depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many hops of related topics to follow. 1 = only topics linked from the hashtag page.",
            "default": 1
          },
          "maxCreatorsPerHashtag": {
            "title": "Creators to backfill per hashtag",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "During older-post backfill, how many creators who used the hashtag to check.",
            "default": 10
          },
          "creatorMissLimit": {
            "title": "Skip a creator after N misses",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "During backfill, stop checking a creator after this many posts in a row without the hashtag. Saves page loads (and your money) on creators who rarely use it.",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Hashtags in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many hashtags to scrape at the same time.",
            "default": 3
          },
          "datacenterFirst": {
            "title": "Try cheaper datacenter proxies first",
            "type": "boolean",
            "description": "With the default residential proxy, each request first tries a cheaper datacenter IP; anything that fails is retried on residential, and datacenter is switched off for the run if it keeps failing. Results are identical either way. Ignored when you set your own proxy.",
            "default": true
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Residential proxies are recommended for Instagram.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}