{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Search Scraper",
    "description": "Facebook Search Scraper SD - Facebook Search Scraper is a social media data tool that extracts Facebook keyword search results: public posts (text, author, date, reactions by type, comments, shares, media), pages, people, places and videos, with date, recent and category filters, page after page, no",
    "version": "1.0",
    "x-build-id": "rVr2LoYIG9eDpFGaK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~facebook-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-facebook-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/neuro-scraper~facebook-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-facebook-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/neuro-scraper~facebook-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-facebook-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Words to search on Facebook, one per line (e.g. coffee, \"electric cars\", #travel). Each keyword is searched on its own and gets its own Max results.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "posts",
              "pages",
              "people",
              "places",
              "videos"
            ],
            "type": "string",
            "description": "Which Facebook search tab to read: public posts, pages, people (public profiles), places (local businesses) or videos.",
            "default": "posts"
          },
          "maxItems": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many results to return for EACH keyword (2 keywords x 20 = 40 rows). The Actor follows Facebook's next-page cursor until this number or the end of the results.",
            "default": 20
          },
          "sortBy": {
            "title": "Sort (posts, videos)",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Posts: Facebook's 'Recent posts' filter. Videos: Facebook's 'Most recent' sort. Ignored for pages, people and places.",
            "default": "top"
          },
          "startDate": {
            "title": "Posts from date",
            "type": "string",
            "description": "Posts only: earliest post date, e.g. 2025-01-01 or \"30 days\". Sent to Facebook as its 'Date posted' filter (whole months) and checked again on every post's exact time."
          },
          "endDate": {
            "title": "Posts to date",
            "type": "string",
            "description": "Posts only: latest post date, e.g. 2025-12-31 or \"today\". Used together with or without Posts from date."
          },
          "locationUid": {
            "title": "Tagged location id (posts)",
            "type": "string",
            "description": "Posts only: Facebook tagged-location filter - the numeric Facebook id of a city or place (e.g. 108424279189115 = New York, New York). Facebook uses it as a preference, not a strict filter (measured: 4 of 20 results tagged there); the taggedLocationId column shows the exact matches."
          },
          "videoDate": {
            "title": "Video upload date (videos)",
            "enum": [
              "",
              "today",
              "this week",
              "this month"
            ],
            "type": "string",
            "description": "Videos only: Facebook's own 'Date posted' filter for video search.",
            "default": ""
          },
          "pageCategory": {
            "title": "Page category (pages)",
            "enum": [
              "",
              "local business or place",
              "company, organization or institution",
              "brand or product",
              "artist, band or public figure",
              "entertainment",
              "cause or community"
            ],
            "type": "string",
            "description": "Pages only: Facebook's own page-category filter (the values are read from Facebook's filter list on every run).",
            "default": ""
          },
          "placeFilters": {
            "title": "Place filters (places)",
            "type": "array",
            "description": "Places only: Facebook's own place filters by name, e.g. open_now, delivery, takeout. Each one is matched against the filter list Facebook sends this run; unknown names are reported in the log.",
            "items": {
              "type": "string"
            }
          },
          "exactMatch": {
            "title": "Exact phrase",
            "type": "boolean",
            "description": "Ask Facebook for results that match the keyword exactly.",
            "default": false
          },
          "mustContainQuery": {
            "title": "Post text must contain the keyword",
            "type": "boolean",
            "description": "Posts only: drop posts whose text does not contain the keyword (checked by the Actor; Facebook also matches comments, authors and links).",
            "default": false
          },
          "minReactions": {
            "title": "Minimum reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Posts only: skip posts with fewer reactions than this (checked by the Actor). 0 = keep all.",
            "default": 0
          },
          "includeProfileDetails": {
            "title": "Add profile details (pages, people, places)",
            "type": "boolean",
            "description": "For pages, people and places: open each result once and add its public profile - category, followers, likes, intro, address, rating, price range, services, websites, other social accounts and recent posts (one extra request per result).",
            "default": true
          },
          "onlyNewResults": {
            "title": "Only new results (monitoring)",
            "type": "boolean",
            "description": "Remember the results delivered by earlier runs (per keyword and search type) and return only new ones - schedule the Actor to monitor a keyword.",
            "default": false
          },
          "maxTotalItems": {
            "title": "Max results in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the whole run after this many dataset rows (all keywords together).",
            "default": 0
          },
          "keywordFilter": {
            "title": "Keyword filter (posts)",
            "type": "string",
            "description": "Posts only: keep only posts whose text contains this word or phrase (checked by the Actor, without regard to case)."
          },
          "postType": {
            "title": "Post type (posts)",
            "enum": [
              "all",
              "photo",
              "video",
              "link",
              "text",
              "share"
            ],
            "type": "string",
            "description": "Posts only: keep only one kind of post.",
            "default": "all"
          },
          "postSource": {
            "title": "Posted in (posts)",
            "enum": [
              "all",
              "groups",
              "pages_and_profiles",
              "business_pages"
            ],
            "type": "string",
            "description": "Posts only: where the post was published.",
            "default": "all"
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Fill only the main columns (link, text, author, time, reactions, comments, shares, media, page basics); every other column stays empty.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel keywords",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many keywords are searched at the same time, each on its own connection.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Facebook limits logged-out visitors per IP address. Residential proxies (the default) give the most reliable results; the Actor switches to a fresh IP when Facebook refuses one.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "debugRaw": {
            "title": "Debug: save raw results",
            "type": "boolean",
            "description": "Developer option: saves the first raw results of each keyword to the key-value store.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}