{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Search Posts Scraper: Keyword Search, No Login",
    "description": "Facebook posts by keyword, hashtag or search link from Facebook's own post search: text, time, author, exact reactions by type, comments, shares, media, links, group, place. Top or recent, dates and words checked on every post, videos and reels search, first 10 comments. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "dcRWp7RnWtkqcogx9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~facebook-search-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-facebook-search-posts-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/hyperbach~facebook-search-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-facebook-search-posts-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/hyperbach~facebook-search-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-facebook-search-posts-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": {
          "searchQueries": {
            "title": "Search queries",
            "maxItems": 1000,
            "type": "array",
            "description": "Keywords, phrases or hashtags, one per line, e.g. \"coffee\", \"#blackfriday\", \"iPhone 17 battery\". A Facebook search link also works: https://www.facebook.com/search/posts/?q=coffee (its date, recent and location filters are kept, and its dates are checked on every post), https://www.facebook.com/search/videos/?q=coffee (the videos search) or https://www.facebook.com/hashtag/coffee. Facebook's search is fuzzy: it ranks related posts too, so turn on 'Only posts that contain the query' for strict results. The posts' language follows the keyword's language.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "posts",
              "videos"
            ],
            "type": "string",
            "description": "posts = Facebook's posts search (every public post kind). videos = Facebook's videos search: reels and videos, each with its view count (exact where Facebook gives it, else Facebook's rounded figure with video_views_exact false).",
            "default": "posts"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "top = Facebook's default ranking (popular posts of any age). recent = Facebook's recent list: recent public posts in Facebook's own order (mostly newest first, not strictly); it ends after about 75 to 95 posts on one view, so use a date range with 'Search the date range by' to read further back.",
            "default": "top"
          },
          "startDate": {
            "title": "Posted after",
            "type": "string",
            "description": "An absolute date (2026-09-01), a time back from now (7 days, 3 weeks, 2 months, 1 year) or a day count (1 = today, 2 = yesterday and today). Sent to Facebook as its date filter and checked again on every post by the post's own time (Facebook's filter lets 7 to 37 % of a window's posts through; those are left out free and counted). Leave empty for no lower bound.",
            "default": ""
          },
          "endDate": {
            "title": "Posted before",
            "type": "string",
            "description": "An absolute date or a time back from now (e.g. 30 days). A date includes its whole UTC day. Combine with 'Posted after' for a window such as 2026-01-01 to 2026-06-30, or the same date in both for one day. Leave empty for up to today.",
            "default": ""
          },
          "locationUid": {
            "title": "Location (Facebook place id)",
            "type": "string",
            "description": "Facebook's numeric id of a city or region, to keep posts tagged there, e.g. 108424279189115 (New York, NY), or a Facebook place page link whose last number is the id. A city name is not read: a value that is not an id runs the search without the location and the run says so. Leave empty for a global search.",
            "default": ""
          },
          "mustContainQuery": {
            "title": "Only posts that contain the query",
            "type": "boolean",
            "description": "Keep only posts whose text holds the search query as whole words in order (case-insensitive; a hashtag's # ignored). Facebook's search also returns related posts without the words; every row says so in matches_query either way. Posts left out are not charged. When Facebook's first 3 pages for a keyword hold no post with its words (it answered related posts only), that keyword stops there and its row says so.",
            "default": false
          },
          "keywordFilter": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Keep only posts whose text, author name or link title holds this word or phrase, e.g. \"recipe\" or \"discount, sale, promo\" (comma = any of them). Leave empty for no filter.",
            "default": ""
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "string",
            "description": "Leave out posts whose text holds any of these words or phrases, comma-separated, e.g. \"giveaway, contest\". Leave empty for no exclusion.",
            "default": ""
          },
          "postType": {
            "title": "Post type",
            "enum": [
              "all",
              "photo",
              "video",
              "link",
              "text"
            ],
            "type": "string",
            "description": "Keep only one kind of post: photo (an image or an album), video (a video or a reel), link (a link preview), text (no media and no link); a shared post with nothing of its own counts as what the shared post carries (a shared reel is a video).",
            "default": "all"
          },
          "postSource": {
            "title": "Posted in",
            "enum": [
              "all",
              "groups",
              "pages_and_profiles",
              "business_pages"
            ],
            "type": "string",
            "description": "groups = posts in public groups; pages_and_profiles = posts outside groups; business_pages = posts by business Pages, outside groups.",
            "default": "all"
          },
          "minReactions": {
            "title": "Minimum reactions",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Keep only posts with at least this many reactions. 0 = no minimum.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Keep only posts with at least this many comments. 0 = no minimum.",
            "default": 0
          },
          "minShares": {
            "title": "Minimum shares",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Keep only posts with at least this many shares. 0 = no minimum.",
            "default": 0
          },
          "includePostDetails": {
            "title": "Include each post's first comments",
            "type": "boolean",
            "description": "Adds Facebook's first 10 comments of each delivered post (ranked as Facebook shows them: text, author, time, reactions, replies count) in top_comments. One extra request per post; charged as the post-details event only for posts that received them.",
            "default": false
          },
          "includeAuthorDetails": {
            "title": "Include the author page's facts",
            "type": "boolean",
            "description": "For posts by a Facebook Page: the page's exact followers and 'talking about' count, its category, creation date, whether it runs ads and its verification, read once per page per run. Free; a few seconds per page. Posts by persons get author_details_status not_a_page.",
            "default": false
          },
          "sliceBy": {
            "title": "Search the date range by",
            "enum": [
              "none",
              "month",
              "week",
              "day"
            ],
            "type": "string",
            "description": "Facebook serves a limited list per search, so a long date range in one search returns a fraction of it. none = one search per keyword. month, week or day = one search per keyword and window; every row carries search_window, and a post is delivered once however many windows list it. Needs 'Posted after'.",
            "default": "none"
          },
          "maxPagesPerSlice": {
            "title": "Max search pages per keyword and window",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "Pages read per keyword (and per window with 'Search the date range by'); a page holds 5 to 7 posts. 0 = no limit.",
            "default": 0
          },
          "maxPostsPerQuery": {
            "title": "Max posts per keyword",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The cap per search query, after your filters, over all its windows: your main cost control (you pay per delivered post). 0 = as many as Facebook serves, up to 1,000 per keyword.",
            "default": 50
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Core fields only (id, link, text, time, author, counts, the query); the other columns are left empty. Sized for AI agents and MCP clients.",
            "default": false
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}