{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Photos Scraper: Pages, Albums, Groups, No Login",
    "description": "Facebook photos scraper and photo downloader, no login: Page, profile, album, post, photo or group links in, one row per photo out. Full-size image, alt text, date, caption, reactions by type, comments, shares, post and album. Albums and tagged photos too. Each list read to its end. Misses free.",
    "version": "0.1",
    "x-build-id": "eg541WqWUAq2JmOcp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~facebook-photos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-facebook-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/hyperbach~facebook-photos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-facebook-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/hyperbach~facebook-photos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-facebook-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": {
          "startUrls": {
            "title": "Facebook links, handles or ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Pages and profiles (https://www.facebook.com/humansofnewyork, humansofnewyork, a numeric id, profile.php?id=…), albums (https://www.facebook.com/media/set/?set=a.…), posts (…/posts/… or permalink.php?story_fbid=…: every photo of the post), single photos (photo/?fbid=…, photo.php?fbid=…) and public groups (https://www.facebook.com/groups/…). A Page's or profile's link reads its own photos newest first (Photos type picks its tagged photos instead). A value that names nothing gets a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Max photos per target",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most photos read from each target's list (a Page's photos, its tagged photos, an album, a group, a post); 0 = every photo Facebook lists, to the end of the list. Set it when you call the Actor over the API: a famous Page holds over 10,000 photos.",
            "default": 0
          },
          "photoType": {
            "title": "Photos type",
            "enum": [
              "photos_by",
              "photos_of",
              "both"
            ],
            "type": "string",
            "description": "For a Page or profile: its own photos (photos_by), the photos it is tagged in (photos_of), or both lists one after the other.",
            "default": "photos_by"
          },
          "includeDetails": {
            "title": "Photo details",
            "type": "boolean",
            "description": "Each photo's own details on its row, at no extra price: the upload date, the caption, the reactions by type, the comments and shares counts, the post and album it belongs to, the people tagged and the first comments Facebook shows. Off: a lighter, faster run with the list's own fields (the id, the link, Facebook's alt text, the image and its size); an album or group photo then carries only Facebook's grid image.",
            "default": true
          },
          "includeAlbums": {
            "title": "Album rows",
            "type": "boolean",
            "description": "For a Page or profile: one free row per album (its title, its photo count and Facebook's text for it, its cover and link) before the photos.",
            "default": false
          },
          "includeAlbumPhotos": {
            "title": "Photos of each album",
            "type": "boolean",
            "description": "For a Page or profile: after its photo list, walk its albums one by one (Profile pictures, Cover photos, Mobile uploads and every album it made); each row names its album. A photo already delivered from the photo list is not delivered or charged twice.",
            "default": false
          },
          "maxAlbums": {
            "title": "Max albums",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "With 'Photos of each album': how many albums to walk, in Facebook's order; 0 = every album.",
            "default": 0
          },
          "maxPhotosPerAlbum": {
            "title": "Max photos per album",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "With 'Photos of each album': the most photos read from each album; 0 = every photo.",
            "default": 0
          },
          "onlyPhotosNewerThan": {
            "title": "Uploaded after",
            "type": "string",
            "description": "An absolute date (2024-05-01), a date and time (2024-05-01T10:00:00Z) or a time back from now (7 days, 3 weeks, 2 months, 1 year). On a Page's photo list Facebook applies the window itself; on an album, a group or a post each photo's own upload date is checked (it needs Photo details). Leave empty for no lower bound.",
            "default": ""
          },
          "onlyPhotosOlderThan": {
            "title": "Uploaded before",
            "type": "string",
            "description": "An absolute date or a time back from now. A date includes its whole UTC day. Leave empty for up to now.",
            "default": ""
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only photos whose Facebook alt text or caption holds one of these words (any case). Photos left out are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out photos whose alt text or caption holds one of these words. Photos left out are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minWidth": {
            "title": "Min width (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Keep only photos at least this wide at full size; 0 = any.",
            "default": 0
          },
          "minReactions": {
            "title": "Min reactions",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep only photos with at least this many reactions (reads each photo's details); 0 = any.",
            "default": 0
          },
          "storeImages": {
            "title": "Store the images",
            "type": "boolean",
            "description": "Keep a copy of each delivered photo's full-size image (≈ 250–400 KB) in the run's key-value store, with its link on the row (storedImage): Facebook's own image links expire after a few days. A stored image is charged as its own event.",
            "default": false
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged photo rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}