{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Hashtag Scraper",
    "description": "Collect public Facebook posts by hashtag: text, author, reactions with breakdown, comments, shares, media, timestamps and matched hashtags. Multi-hashtag dedupe, format/date filters, only-new monitoring. No Facebook login or cookies.",
    "version": "1.0",
    "x-build-id": "BpenzbTDRglgsCpyx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~facebook-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-facebook-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/coregent~facebook-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-coregent-facebook-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/coregent~facebook-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-facebook-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": "One or more hashtags, with or without the leading #, e.g. sustainability, #travel. Any script works (#রেস্টুরেন্ট). A post found under several of them is returned once, with every match listed in matchedHashtags. Up to 50 per run.",
            "default": [
              "sustainability"
            ],
            "items": {
              "type": "string"
            }
          },
          "hashtagUrls": {
            "title": "Hashtag URLs",
            "type": "array",
            "description": "Facebook hashtag page URLs, e.g. https://www.facebook.com/hashtag/travel. Combined with the hashtags above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerHashtag": {
            "title": "Maximum posts per hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop collecting a hashtag once this many matching posts are found. Facebook's public (logged-out) hashtag lists usually end at about 100–150 posts per hashtag, so larger values return what Facebook shows and say so in coverageStatus.",
            "default": 100
          },
          "maxPostsTotal": {
            "title": "Maximum posts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap on unique posts for the whole run, across all hashtags. 0 = no cap.",
            "default": 0
          },
          "postFormats": {
            "title": "Post formats",
            "type": "array",
            "description": "Return only these formats. Leave empty for all. ALBUM = several photos; POST = a post that shares another post; TEXT = no media.",
            "items": {
              "type": "string",
              "enum": [
                "POST",
                "PHOTO",
                "ALBUM",
                "VIDEO",
                "REEL",
                "LINK",
                "TEXT"
              ],
              "enumTitles": [
                "Shared post",
                "Photo",
                "Album",
                "Video",
                "Reel",
                "Link",
                "Text only"
              ]
            },
            "default": []
          },
          "dateFrom": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts published at or after this time: 2026-10-01, an ISO timestamp, or a relative time such as \"7 days ago\". Applied to the posts Facebook's public list returns — it does not reach further back than that list.",
            "default": ""
          },
          "dateTo": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts published at or before this time (same formats; a bare date includes the whole day).",
            "default": ""
          },
          "strictHashtagMatch": {
            "title": "Only posts that contain the #hashtag",
            "type": "boolean",
            "description": "Facebook's hashtag page also shows posts it relates to the topic without the # written in them (about half, measured). On: keep only posts whose text contains #<your hashtag>. Off: return everything Facebook's hashtag page shows; each row's hashtagInText says which kind it is.",
            "default": false
          },
          "feeds": {
            "title": "Hashtag feeds",
            "type": "array",
            "description": "Facebook's public hashtag page has a Top and a Recent list. Reading both finds the most posts (they overlap by about half).",
            "items": {
              "type": "string",
              "enum": [
                "TOP",
                "RECENT"
              ],
              "enumTitles": [
                "Top",
                "Recent"
              ]
            },
            "default": [
              "TOP",
              "RECENT"
            ]
          },
          "includeAuthor": {
            "title": "Include author",
            "type": "boolean",
            "description": "Author name, ID, profile URL and picture.",
            "default": true
          },
          "includeEngagement": {
            "title": "Include engagement",
            "type": "boolean",
            "description": "Reaction, comment and share counts.",
            "default": true
          },
          "includeReactionBreakdown": {
            "title": "Include reaction breakdown",
            "type": "boolean",
            "description": "Counts per reaction type (Like, Love, Care, Haha, Wow, Sad, Angry) where Facebook shows them.",
            "default": true
          },
          "includeMedia": {
            "title": "Include media",
            "type": "boolean",
            "description": "Photos, videos and Reels attached to the post, with image/video/thumbnail URL lists.",
            "default": true
          },
          "includeOCR": {
            "title": "Include text in images (Facebook's alt text)",
            "type": "boolean",
            "description": "Adds ocrText: the text Facebook's own automatic alt text says is written in the post's images. Only present when Facebook published it; this Actor runs no OCR of its own.",
            "default": false
          },
          "onlyNewPosts": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Monitor mode: return only posts this monitor has not returned before. The first run records a baseline and returns nothing (unless \"Return baseline posts\" is on). Needs a Monitor key. Schedule it daily.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "A name for this monitor, e.g. brand-campaign-q4. Runs with the same key share their memory of seen posts. Letters, digits, - _ . only.",
            "default": ""
          },
          "emitBaselinePosts": {
            "title": "Return baseline posts",
            "type": "boolean",
            "description": "On a monitor's first run (and for hashtags newly added to it), also return the posts found, marked isNewPost: false.",
            "default": false
          },
          "deduplicateAcrossHashtags": {
            "title": "One row per post across hashtags",
            "type": "boolean",
            "description": "On (recommended): a post matched by several hashtags is one row, charged once, with all matches in matchedHashtags. Off: one row per hashtag-and-post pair, each delivered and charged separately.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Hashtags in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many hashtags are read at the same time.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Datacenter proxy (default) or no proxy. Apify Residential is not supported — a run that selects it uses Apify Datacenter instead, with a warning. To route through residential, use your own provider under Custom proxy URLs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debug": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Verbose logging.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}