{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Posts Search Scraper - Hashtag & Keyword",
    "description": "Search public Facebook posts by keyword, hashtag or search link and get text, author, reactions by type, comments, shares, media and top comments. Filter by date, language and engagement, keep only new posts, and export JSON, CSV or Excel. No login.",
    "version": "1.1",
    "x-build-id": "5k7McJ2YGiQL0rFqx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawl_craft~facebook-posts-search-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawl_craft-facebook-posts-search-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/crawl_craft~facebook-posts-search-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawl_craft-facebook-posts-search-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/crawl_craft~facebook-posts-search-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawl_craft-facebook-posts-search-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": {
          "urls": {
            "title": "🔎 Searches (keywords, hashtags or links)",
            "type": "array",
            "description": "One search per line. Use a keyword or phrase (\"exact phrase\", -exclude, a OR b), a #hashtag, a Facebook search link or a Facebook hashtag link. Each line is its own search and gets its own maximum below.",
            "items": {
              "type": "string"
            }
          },
          "searchesDatasetId": {
            "title": "🗂 Searches from an earlier dataset",
            "type": "string",
            "description": "Optional. Pick the posts table or the Search summary table of an earlier run. Its searches are added to the list above and run again."
          },
          "maxItems": {
            "title": "📊 Max posts per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Posts collected for each line above after filters. 0 means as many as can be found.",
            "default": 10
          },
          "searchType": {
            "title": "🧭 Result order",
            "enum": [
              "top",
              "latest"
            ],
            "type": "string",
            "description": "Top shows the most relevant public posts first. Latest looks at the newest posts first; rows are saved as they are found, so sort the table by Posted to see them in date order.",
            "default": "top"
          },
          "location": {
            "title": "📍 Place name",
            "type": "string",
            "description": "Optional place name, for example Aspen. Only posts that mention it in their text or tagged location are kept.",
            "default": ""
          },
          "matchMode": {
            "title": "🎯 Keyword match",
            "enum": [
              "all",
              "any",
              "phrase",
              "off"
            ],
            "type": "string",
            "description": "How strictly a post must match your keywords: all terms, any term, the exact phrase, or off to keep everything found.",
            "default": "all"
          },
          "startDate": {
            "title": "🗓️ Posted after",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(minute|min|hour|day|week|month|year)s?\\s*(ago)?$",
            "type": "string",
            "description": "Only posts on or after this date. Use YYYY-MM-DD or a relative value such as 7 days or 2 months."
          },
          "endDate": {
            "title": "⏰ Posted before",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(minute|min|hour|day|week|month|year)s?\\s*(ago)?$",
            "type": "string",
            "description": "Only posts on or before this date (the whole day counts). Use YYYY-MM-DD or a relative value such as 1 day."
          },
          "languages": {
            "title": "🌐 Post languages",
            "type": "array",
            "description": "Keep only posts written in these languages, detected from the post text. Posts whose language cannot be detected (very short or media-only) are kept. Empty means any language.",
            "items": {
              "type": "string",
              "enum": [
                "am",
                "ar",
                "bn",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fr",
                "he",
                "hi",
                "id",
                "it",
                "ja",
                "ka",
                "km",
                "ko",
                "my",
                "nl",
                "pt",
                "ru",
                "ta",
                "th",
                "tl",
                "tr",
                "uk",
                "vi",
                "zh"
              ],
              "enumTitles": [
                "Amharic",
                "Arabic",
                "Bengali",
                "German",
                "Greek",
                "English",
                "Spanish",
                "Persian",
                "French",
                "Hebrew",
                "Hindi",
                "Indonesian",
                "Italian",
                "Japanese",
                "Georgian",
                "Khmer",
                "Korean",
                "Burmese",
                "Dutch",
                "Portuguese",
                "Russian",
                "Tamil",
                "Thai",
                "Filipino (Tagalog)",
                "Turkish",
                "Ukrainian",
                "Vietnamese",
                "Chinese"
              ]
            },
            "default": []
          },
          "postTypes": {
            "title": "📸 Post types",
            "type": "array",
            "description": "Keep only these kinds of post. Empty means all kinds.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "photo",
                "album",
                "video",
                "reel",
                "link",
                "share"
              ],
              "enumTitles": [
                "Text",
                "Photo",
                "Photo album",
                "Video",
                "Reel",
                "Link",
                "Shared post"
              ]
            },
            "default": []
          },
          "authorTypes": {
            "title": "👥 Author types",
            "type": "array",
            "description": "Keep only posts written by people, by pages, or both. Empty means all authors. Group posts show their group in the group field.",
            "items": {
              "type": "string",
              "enum": [
                "user",
                "page"
              ],
              "enumTitles": [
                "People",
                "Pages"
              ]
            },
            "default": []
          },
          "minReactions": {
            "title": "👍 Minimum reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer reactions than this.",
            "default": 0
          },
          "minComments": {
            "title": "💬 Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer comments than this.",
            "default": 0
          },
          "minShares": {
            "title": "🔁 Minimum shares",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer shares than this.",
            "default": 0
          },
          "excludeReshares": {
            "title": "🚫 Skip reshared posts",
            "type": "boolean",
            "description": "Leave out posts that only reshare another post.",
            "default": false
          },
          "includeTopComments": {
            "title": "💭 Include top comments",
            "type": "boolean",
            "description": "Add the comments shown with each post to the row and to the Top comments table.",
            "default": true
          },
          "onlyNewPosts": {
            "title": "🆕 Only new posts",
            "type": "boolean",
            "description": "Skip posts that earlier runs already returned for the same search. Useful for scheduled monitoring.",
            "default": false
          },
          "skipPostsDatasetId": {
            "title": "🗂 Skip posts from an earlier dataset",
            "type": "string",
            "description": "Optional. Pick the dataset of an earlier run of this Actor. Every post in it is left out of this run in every search, so you only pay for new posts."
          },
          "enginePagesPerQuery": {
            "title": "🌊 Search depth",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How deeply each search looks. Higher values can find more posts and take longer.",
            "default": 4
          },
          "relatedHashtags": {
            "title": "🏷️ Related hashtag feeds",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Extra hashtag feeds checked per keyword search when the maximum is not reached yet: hashtags seen on found posts and likely variants. 0 turns it off.",
            "default": 30
          },
          "maxScanned": {
            "title": "🧮 Max posts checked per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Most posts reviewed per search before it ends, useful when your filters are very strict. Leave empty for an automatic limit that grows with the maximum posts per search."
          },
          "maxConcurrency": {
            "title": "⚡ Parallel post checks",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many posts are opened at the same time.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Optional. The default suits most runs. Set your own Apify proxy groups or custom proxy URLs to use them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}