{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Hashtag Scraper",
    "description": "Instagram hashtag scraper: the posts and reels under a hashtag, one row per post with caption, likes, comments, video views, image and video URLs, owner, mentions and timestamp. A tag feed is the slice Instagram chooses to show, not every post ever tagged. $0.40 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "tJAKw7ffCnxKaxKiH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~instagram-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~instagram-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~instagram-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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",
        "properties": {
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Tags, with or without the #. You get each tag's top posts.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Hashtag URLs",
            "type": "array",
            "description": "Or paste /explore/tags/ URLs.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search words (optional)",
            "type": "array",
            "description": "Words or phrases to find posts and reels by, like sunset beach. Up to 10. They are read after your tags and charged per post the same way.",
            "items": {
              "type": "string"
            }
          },
          "feed": {
            "title": "Which posts",
            "type": "string",
            "description": "Top is what a tag shows first, posts and reels together. Reels only reads the tag's reels. This applies to tags; search words have their own order.",
            "default": "top"
          },
          "newerThan": {
            "title": "Only posts newer than (optional)",
            "type": "string",
            "description": "A day like 2026-10-01, or a window like 7 days or 12 hours. Older posts are skipped and not charged."
          },
          "resultsLimit": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Posts for the whole run, across all your tags and search words. 1 to 5,000, charged per post.",
            "default": 50
          },
          "maxPostsPerHashtag": {
            "title": "Max posts per tag (optional)",
            "minimum": 13,
            "maximum": 5000,
            "type": "integer",
            "description": "The most posts from each tag, and from each search word: 13 to 5,000. Leave it empty for no limit per tag; Max posts still caps the whole run."
          },
          "relatedTags": {
            "title": "Keep going through related tags",
            "type": "boolean",
            "description": "Off by default. A tag can run out of posts before Max posts. Tick this and the run reads on through the tags its posts are most often seen with, and keeps only the posts that also carry your tag. Each post comes once and is charged like any other.",
            "default": false
          },
          "photosOnly": {
            "title": "Photos and carousels only",
            "type": "boolean",
            "description": "Optional add-on. Leaves out reels and other videos and keeps photos and carousels. It can't be combined with Reels only.",
            "default": false
          },
          "includeHashtagStats": {
            "title": "Tag post count",
            "type": "boolean",
            "description": "Optional add-on. Adds each tag's id and how many posts it holds to its rows (hashtagId, hashtagPostsCount).",
            "default": false
          },
          "includePosterLinks": {
            "title": "Poster's Facebook page and Threads link",
            "type": "boolean",
            "description": "Optional add-on. Adds the Facebook page linked to the poster's account and their Threads profile, when they have one.",
            "default": false
          },
          "commentsPerPost": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Optional add-on. Up to this many of each post's comments, 1 to 15, in the order Instagram shows them. Read only on posts with enough comments to be worth it; leave it empty for none."
          },
          "includeFacebookCounts": {
            "title": "Instagram and Facebook plays",
            "type": "boolean",
            "description": "Optional add-on. Adds Instagram plays, and Facebook plays and likes for posts that were also shared to Facebook.",
            "default": false
          },
          "includeShareCount": {
            "title": "Share count",
            "type": "boolean",
            "description": "Optional add-on. Adds how many times each post was shared.",
            "default": false
          },
          "notionConnector": {
            "title": "Notion connector ID (optional)",
            "type": "string",
            "description": "Optional Notion delivery."
          },
          "notionParentId": {
            "title": "Notion data-source ID (optional)",
            "type": "string",
            "description": "Optional Notion data-source id."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave this empty unless you have your own proxy servers you would rather use. Your own are used exactly as given."
          },
          "sessionCookies": {
            "title": "Account cookies (not needed)",
            "type": "array",
            "description": "Optional: your own session, used only for your run. You are responsible for using it within the site's terms. Runs work without it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}