{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook URL to ID Finder: Pages, Profiles, Groups",
    "description": "Facebook URL to ID finder: turn up to 10,000 links into numeric IDs, no login. Page, group, post, video, reel, photo, event, share and fb.watch links give their IDs (person profiles on request), both Page IDs, group privacy and the Page that posted. Pay per resolved link, misses free. CSV or API.",
    "version": "0.1",
    "x-build-id": "cWYDb4dX5Kygxb5Yd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-url-to-id/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-facebook-url-to-id",
        "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/automation_craft~facebook-url-to-id/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-facebook-url-to-id",
        "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/automation_craft~facebook-url-to-id/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-facebook-url-to-id",
        "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": "Facebook links",
            "type": "array",
            "description": "Facebook links to turn into numeric ids, one per line: Pages and profiles (facebook.com/nike, profile.php?id=, /people/ links), groups, posts (pfbid links included), videos, reels, photos, events, share links (facebook.com/share/...) and fb.watch links, in any form (m., web., mbasic., fb.com, fb.me, with or without https). An @handle (@nike) or a bare id also works. Up to 10,000 links a run, together with the file below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Links from a file",
            "type": "array",
            "description": "Upload a text or CSV file of Facebook links (one per line or one per cell), or give one link to such a file (a shared Google Sheet works). Its links are looked up after the ones above. Optional.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "Off (default): a link to a person's profile gives a free row without ids, and the owner of a post, video or reel that is a person is not named. On: the person's profile id, address name, name and professional page id, the owner's profile id and the post's story id. A person's ids are personal data: you are responsible for a lawful use, GDPR included.",
            "default": false
          },
          "checkContentOwner": {
            "title": "Check the owner of posts, videos and reels",
            "type": "boolean",
            "description": "On (default): the owner of a post, video or reel is checked once per run; a Page owner is named with both its ids and its name. Off: no owner check (faster); the owner's profile id is then given only with personal data on, since it may be a person's.",
            "default": true
          },
          "pageFollowers": {
            "title": "Exact followers and talking about",
            "type": "boolean",
            "description": "For every Page this run resolved and charged, one more free row (pageFollowers) with the exact follower count and the talking about count from the Page's own page (no extra charge; one more page read per Page, so a large run is slower). Off (default): the rounded follower text and the exact like count on the link row only.",
            "default": false
          },
          "adLibraryCheck": {
            "title": "Ad Library check (add-on)",
            "type": "boolean",
            "description": "For every Page found, one more row: whether the Page runs ads now and how many active ads the Meta Ad Library shows, with the Ad Library link. Charged per Page checked (Ad Library check event); a check that cannot be read is free.",
            "default": false
          },
          "pageContact": {
            "title": "Page contact (add-on)",
            "type": "boolean",
            "description": "For every Page found, one more row with the contact fields the Page shows publicly: websites, phones, emails, address, rating and review count, hours, price range and services. Charged per Page read (Page contact event); a Page whose contact section cannot be read is free.",
            "default": false
          },
          "linkOnly": {
            "title": "Link only (no lookup)",
            "type": "boolean",
            "description": "Read the ids the links themselves carry (profile.php?id=, group, event, post, video, reel and photo ids) without asking Facebook: faster, charged as ID from link. Links without an id of their own (an address name, a share link) give a free row. A profile id read this way is given only with personal data on. Cannot be combined with exact followers or the add-ons.",
            "default": false
          },
          "maxItems": {
            "title": "Max links",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Look up only the first N links of the list; the rest get a free skipped row. Empty: every link."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many requests run at once, 1 to 4. Empty: 4."
          },
          "residentialFallback": {
            "title": "Residential retry",
            "type": "boolean",
            "description": "When a request was refused on the run's own address and on the Apify datacenter proxy, try it once more through a US residential proxy (no extra charge). Off (default): such a link gets a free lookup_failed row to run again later.",
            "default": false
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Adds a raw object to each row with Facebook's own answer behind it (the route, the page plugin's ids and the Ad Library's page record). A person's raw data only with personal data on.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (automatic, default): Facebook is read from the run's own address first and through the Apify datacenter proxy on a refusal. A datacenter group: the datacenter proxy only. No proxy: the run's own address only. Your own proxy links are used for every request. A residential group is read as the datacenter group."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}