{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Hashtag Scraper: Hashtag Posts, No Login",
    "description": "Facebook hashtag scraper for public posts by #hashtag, no login: the hashtag page's top and recent posts, then Facebook's post search for the tag month by month, only posts that carry the tag by default. Rows: text, author, reactions, comments, shares, media. JSON, CSV, API; pay per post.",
    "version": "0.1",
    "x-build-id": "gDiPEgiETxxshTTOV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~facebook-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~facebook-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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": "The Facebook hashtags to read, one per line (up to 100): a word (nike), the word with # (#nike), or the link of its hashtag page (facebook.com/hashtag/nike). Letters of any language, digits and _ ; case does not matter. A value that is not one hashtag (a phrase with spaces, another link) is skipped free and named by its position in a row. Each hashtag is read on its own and every row names it. Also read from keywordList, searchQuery, hashtag and startUrls (hashtag page links).",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerHashtag": {
            "title": "Posts per hashtag",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most new posts delivered per hashtag (and per location). Left empty: 20. Facebook's hashtag page shows about 90 to 97 posts a tab; with Deep search on, the walk goes on through Facebook's post search for the #tag and then month by month. Also read from resultsLimit, maxResultsPerHashtag, resultsCount and maxResults."
          },
          "maxPosts": {
            "title": "Posts per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most posts delivered in the whole run, across hashtags. Left empty: no cap beyond the per hashtag number and your charge limit. Also read from maxItems and maxTotalItems."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "top: the hashtag page's Top tab, then its Recent tab, then (Deep search) Facebook's post search for the #tag. recent: Facebook's post search for the #tag newest first, then the hashtag page's Recent and Top tabs (the hashtag page's own Recent tab is Facebook's mix, not a time order). Left empty: top. Also read from searchType (latest and newest read as recent)."
          },
          "deepSearch": {
            "title": "Deep search",
            "type": "boolean",
            "description": "When the hashtag page's posts run out before the hashtag's post number, go on with Facebook's post search for the #tag, then month by month backwards (this month, the month before, back to the start date or 24 months), each month a search of its own. Every post is still checked for the tag. Repeats are free. Off: the hashtag page only (in Recent order the post search newest first is read first either way).",
            "default": true
          },
          "onlyPostsWithHashtag": {
            "title": "Only posts that carry the hashtag",
            "type": "boolean",
            "description": "On (the default): a post is delivered only when it carries the hashtag itself, in its text, the post it shares, its link preview or its event (hashtagFoundIn says where); Facebook's hashtag page is a topic feed and about half of its posts do not carry the tag. Those posts are left out and not charged. Off: every post Facebook shows for the hashtag is delivered, and hasHashtag says whether it carries the tag.",
            "default": true
          },
          "startDate": {
            "title": "Posted on or after",
            "type": "string",
            "description": "The first day of a date window (UTC): YYYY-MM-DD, today, yesterday, or a time back from the run's start such as 7 days, 3 weeks, 2 months, 1 year. Checked on every post (the hashtag page takes no date filter; the post search gets it as Facebook's own filter); posts outside the window are left out and not charged. Left empty: no start. Also read from postedAfter, dateFrom and onlyPostsNewerThan."
          },
          "endDate": {
            "title": "Posted on or before",
            "type": "string",
            "description": "The last day of the date window (UTC), in the same forms as the start. Left empty: today. Also read from postedBefore, dateTo and onlyPostsOlderThan."
          },
          "timeRange": {
            "title": "Time range",
            "type": "string",
            "description": "A quick date window counted back from the run's start: day, week, month or year (lastMonth and lastYear read the same); any: no window. Do not send it with a start date. Also read from timeFilter."
          },
          "locations": {
            "title": "Tagged locations",
            "type": "array",
            "description": "Only posts tagged at a place, one per line: a Facebook location id (108424279189115 is New York, New York) or a place's full name as Facebook writes it (New York, New York; London, United Kingdom), looked up in Facebook's own place list. The hashtag page takes no location, so a hashtag with a location is read through Facebook's post search for the #tag only. A name that names no single place gets a free row with Facebook's suggestions and its searches are not run. Up to 20. Also read from location, locationUid and locationId.",
            "items": {
              "type": "string"
            }
          },
          "postTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Only these kinds of post (any of them). Left empty: every kind. Posts of other kinds are left out and not charged. The format names photos (one photo or an album), videos and reels are read too, and any or all alone means every kind. Also read from postType and postFormats.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "text",
                "photo",
                "album",
                "video",
                "reel",
                "link",
                "share",
                "event",
                "listing",
                "unavailable_attachment"
              ],
              "enumTitles": [
                "Text only",
                "One photo",
                "Several photos or videos",
                "Video",
                "Reel",
                "Link",
                "Shared post",
                "Event",
                "Marketplace listing",
                "Attachment no longer available"
              ]
            }
          },
          "postSources": {
            "title": "Posted by",
            "type": "array",
            "description": "Only posts by these sources (any of them): a page, a business page (a page with a business account), a person, or a post made in a public group. Left empty: every source. Also read from postSource.",
            "items": {
              "type": "string",
              "enum": [
                "page",
                "business_page",
                "person",
                "group"
              ],
              "enumTitles": [
                "A page",
                "A business page",
                "A person",
                "Posted in a group"
              ]
            }
          },
          "minReactions": {
            "title": "Minimum reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many reactions (posts with fewer, or with no count shown, are left out and not charged)."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many comments."
          },
          "minShares": {
            "title": "Minimum shares",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many shares."
          },
          "includeKeywords": {
            "title": "Keep posts with any of these words",
            "type": "array",
            "description": "Only posts whose text holds at least one of these words or phrases (whole words, case and accents aside). Up to 50. Also read from keywordFilter and keywords.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Leave out posts with any of these words",
            "type": "array",
            "description": "Posts whose text holds any of these words or phrases are left out and not charged (the same matching rule). Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerHashtag": {
            "title": "Pages per hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most pages read per hashtag search, every phase together (about 6 posts a page). Left empty: no page limit (the posts per hashtag cap and Facebook's own end decide)."
          },
          "maxCommentsPerPost": {
            "title": "Comments per post (add-on)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Read the comments of each delivered post, up to this many (replies included), each as its own row (the Comment event). 0 or empty: no comments are read. Also read from maxComments."
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "oldest",
              "newest",
              "relevant",
              "all"
            ],
            "type": "string",
            "description": "The order Facebook lists the comments in, when comments are read. Left empty: oldest first. Also read from commentOrder."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "With comments on: read the replies of each comment too (they count toward the number per post).",
            "default": false
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "With comments on: read up to this many replies of each comment (they count toward the number per post too); above 0 turns replies on. 0 or empty: replies follow Include replies, with no cap per comment."
          },
          "includeAllPhotos": {
            "title": "Complete albums (add-on)",
            "type": "boolean",
            "description": "For a post whose first answer lists only its first photos, read the post's photo set page and add the photos and videos it holds that were not listed (the Complete album event, charged only when the set added items; albumComplete says whether every item of the post was read). Also read from scrapePhotos."
          },
          "outputFormat": {
            "title": "Row form",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "full: every field; compact: the main fields of a post one level deep (text, author, counts, first image or video, link). Left empty: full. Also read from compact (true or false)."
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "Off (the default): the fields that name or reach a private person are empty: a person author's id, profile link, picture and story id, the ids and links of people tagged or mentioned and of commenters, a listing's seller, and the phones and emails lists read from a text; a person's post link (and its photo, video and comment links) is kept only in a form without the person's profile name or id (a group post, photo, video or reel link), else empty; so is any other link to Facebook (a link preview, an attachment, an address in `links`), and contact links (WhatsApp, Messenger) and addresses with an e-mail in them are emptied. The names of authors, commenters and people tagged or mentioned, and every text, are delivered as Facebook shows them, either way. On: those fields are filled (and Include Facebook's raw post data may be turned on); you are responsible for a lawful use of personal data (GDPR included).",
            "default": false
          },
          "includeRawData": {
            "title": "Include Facebook's raw post data",
            "type": "boolean",
            "description": "Add Facebook's own story object of each post as rawStory (large: tens of kilobytes a post). It names the people in the post, so it needs Include personal data on. Also read from includeRaw."
          },
          "maxConcurrency": {
            "title": "Hashtags at once",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many hashtag searches are read at the same time, each on its own exit. Left empty: 1 (one after another)."
          },
          "requestDelayMs": {
            "title": "Pause between pages (ms)",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "The pause between two calls of one hashtag search, in milliseconds. Left empty: 400."
          },
          "maxRunSeconds": {
            "title": "Run deadline (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop starting new work after this many seconds and end with the coverage rows and the summary (what was delivered stays delivered and charged). Left empty: the run's own timeout."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy, the datacenter pool by default; choose the RESIDENTIAL group with a country for exits of that country, your own proxies (http(s) links with their port; each new exit takes the next one), or no proxy for the run's own address. Also read from proxy."
          },
          "resumeToken": {
            "title": "Resume token",
            "type": "string",
            "description": "Go on with the hashtag searches an earlier run stopped before their end (its post number, its page limit, the charge limit, the run deadline, a refusal): paste the resumeToken of that run's summary row here and run the same hashtags again, given the same way (the same hashtags, order, date window, and the same place ids or place names). Each hashtag search starts where it stopped (the phase and the page), those that run read to the end are not read again, and each skips, free, the posts it delivered in that run. A post another hashtag of that run delivered can come again and is charged, as in any two separate runs. Left empty: every hashtag starts at its first page."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}