{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reviews & Photos Scraper - Pages, No Login",
    "description": "Scrape reviews and photos of public Facebook Pages: review text, recommends or not, tags, date, reviewer, reactions and attached photos; full-size photos with alt text, plus optional upload date, caption and album. No login, no browser. From $0.75 per 1,000 results.",
    "version": "0.1",
    "x-build-id": "nOyFF0KLNmoHsPP7E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eiv~facebook-reviews-photos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eiv-facebook-reviews-photos-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/eiv~facebook-reviews-photos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eiv-facebook-reviews-photos-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/eiv~facebook-reviews-photos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eiv-facebook-reviews-photos-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": {
          "targets": {
            "title": "Facebook Pages",
            "type": "array",
            "description": "One per line: Page URLs (facebook.com/copperkettleyqr), usernames or numeric ids. An address ending in /reviews, /photos or /photos_of gets only that part; a plain Page address gets what \"What to scrape\" says. Single photo links (facebook.com/photo.php?fbid=<id>) work too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (for chaining Actors)",
            "type": "array",
            "description": "The same Pages in the URL-list shape other Actors output (and that apify/facebook-reviews-scraper and apify/facebook-photos-scraper take), so a previous Actor's results can be fed straight in. Use this or the field above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "scrape": {
            "title": "What to scrape",
            "type": "array",
            "description": "What to collect from each plain Page address: reviews, the Page's own photos, and photos other people tagged the Page in. Addresses ending in /reviews, /photos or /photos_of override this for that Page.",
            "items": {
              "type": "string",
              "enum": [
                "reviews",
                "photos",
                "taggedPhotos"
              ],
              "enumTitles": [
                "Reviews (recommendations)",
                "Photos uploaded by the Page",
                "Tagged photos (by others)"
              ]
            },
            "default": [
              "reviews",
              "photos"
            ]
          },
          "maxReviewsPerPage": {
            "title": "Reviews per Page",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Reviews to collect from each Page, newest first. Facebook serves 3 reviews per request (about 0.5 s), so 300 reviews take about a minute per Page; Pages run in parallel. Logged out, Facebook shows up to about 500-550 of a Page's newest reviews.",
            "default": 100
          },
          "maxPhotosPerPage": {
            "title": "Photos per Page",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Photos to collect from each Page, newest first, for the Page's own photos and for tagged photos each. Facebook serves 8 photos per request (about 0.2 s).",
            "default": 100
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many reviews and photos together, across all Pages. You pay per result, so this is also your cost cap for the run.",
            "default": 1000
          },
          "reviewsNewerThan": {
            "title": "Reviews newer than",
            "type": "string",
            "description": "Optional. Keep only reviews posted on or after this date, e.g. 2026-01-31 or \"3 months\". Reviews are read newest first and each Page stops at the first page of older ones, so old reviews are neither read nor charged."
          },
          "recommendationFilter": {
            "title": "Recommends or not",
            "enum": [
              "all",
              "recommends",
              "doesNotRecommend"
            ],
            "type": "string",
            "description": "Keep all reviews, only those that recommend the Page, or only those that do not (the negative ones, for reputation monitoring). Reviews left out are not charged. With a filter, a Page is read until its cap is met, until about 180 reviews in a row do not match, or up to 450 reviews further.",
            "default": "all"
          },
          "includePhotoDetails": {
            "title": "Photo details",
            "type": "boolean",
            "description": "Add each photo's upload date, caption, reaction and comment counts, album, post link and uploader (who posted a tagged photo). One extra request per photo, so photo runs take about 3x longer; charged as a separate \"Photo details\" event per photo.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default. Reviews and photos are read without any proxy cost (Apify's own and datacenter addresses). This setting is used only to look up a Page given by username when Facebook's bulk lookup fails; Apify's datacenter proxy does that for free.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many Pages are processed at the same time. Each Page's reviews and photos are read one request after another.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one response before giving up on it (and moving to another address).",
            "default": 45
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries for failed connections on Apify's own address. Through the proxy, a refused or failed request moves to another address instead.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}