{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Business Presence & Dormant Page Auditor",
    "description": "[ 1k/1.49$ ] Facebook Business Presence & Dormant Page Auditor scores how complete and active a business Facebook Page is: 0-100 presence score, letter grade, dormant and incomplete-profile flags, plus prioritised recommendations. Public data only, no login or cookies.",
    "version": "0.1",
    "x-build-id": "BXuLDiyzymgHEfcxG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~facebook-business-presence-dormant-page-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-business-presence-dormant-page-auditor",
        "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/alpha-scraper~facebook-business-presence-dormant-page-auditor/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-facebook-business-presence-dormant-page-auditor",
        "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/alpha-scraper~facebook-business-presence-dormant-page-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-facebook-business-presence-dormant-page-auditor",
        "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": "Start URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Facebook Page URLs, @usernames or numeric Page ids to audit, e.g. https://www.facebook.com/thepizzaplanet. Use this and/or 'Usernames' (at least one entry is required). Entries with spaces (business names) are skipped with a reason.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames",
            "uniqueItems": true,
            "type": "array",
            "description": "Page usernames (with or without @) or numeric Page ids, e.g. nike or 100064027242849. Handled exactly like 'Start URLs'; a Page listed twice is audited once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dormantDays": {
            "title": "Dormant threshold",
            "minimum": 0,
            "type": "integer",
            "description": "A Page is flagged dormant when its newest visible post or public reel is older than this many days (or none is visible). If the Page still shows recent interactions (10 or more people talking about it in the last 7 days) the verdict is 'unclear' and the activityUnclear flag is set instead.",
            "default": 90
          },
          "incompleteBelow": {
            "title": "Incomplete profile threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "The incompleteProfile flag is set when the profile completeness score is below this percentage. Completeness is scored from category, description, email, phone, website, address, opening hours, profile photo, cover photo, rating and social links.",
            "default": 70
          },
          "includePersonalProfiles": {
            "title": "Include personal profiles",
            "type": "boolean",
            "description": "Also audit personal profiles. By default they are skipped with a reason, because the audit is meant for business Pages.",
            "default": false
          },
          "includeAbout": {
            "title": "Include About page",
            "type": "boolean",
            "description": "One extra request per Page: reads the About tab for email, phone, website, address, opening hours, price range, rating and social links. When off, only the contact details shown in the Page header are used.",
            "default": true
          },
          "includeDetails": {
            "title": "Include About description",
            "type": "boolean",
            "description": "One extra request per Page: reads the full About description. When off, the short intro from the Page header is used for the description check.",
            "default": true
          },
          "checkReels": {
            "title": "Check Reels",
            "type": "boolean",
            "description": "One extra request per Page: opens the public Reels tab to see whether the Page has reels and when the latest one was published (a recent reel counts as activity).",
            "default": true
          },
          "maxPosts": {
            "title": "Max posts to sample",
            "minimum": 1,
            "type": "integer",
            "description": "Number of latest posts sampled per Page to measure activity (last post date, posts in the last 30 / 90 / 365 days, average gap, post types, engagement). About 3 posts are loaded per request. The 30 / 90 / 365-day counts are lower bounds when the whole sample falls inside a window; raise this value for exact numbers.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}