# Facebook Page Finder & ID Resolver (`alpha-scraper/facebook-page-finder-id-resolver`) Actor

\[ 1k/1.49$ ] Facebook Page Finder & ID Resolver converts Facebook Page or profile URLs, usernames, numeric IDs, business names and website domains into a canonical record: IDs, name, category, verified status and followers. Names and domains get a match score and confidence label.

- **URL**: https://apify.com/alpha-scraper/facebook-page-finder-id-resolver.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Facebook Page Finder & ID Resolver

**Facebook Page Finder & ID Resolver** turns almost any Facebook identifier into a clean, canonical Page or profile record with its ids. Give Facebook Page Finder & ID Resolver a Facebook URL, a username, a numeric id, a business name or a website domain, and it returns the resolved URL, username, user id, Page id, name, category, verified flag and follower count.

Facebook Page Finder & ID Resolver works with publicly visible Facebook data only. You do not need a Facebook account, a login or an API key. URLs, usernames and ids are resolved exactly, and business names and domains are matched with a score and a confidence label that tell you how far to trust each result.

> **📌 At a glance**
>
> - **Input:** Facebook Page or profile URLs, usernames, numeric ids, business names and website domains
> - **Output:** one record per input with ids, name, category, verified, followers, method and confidence
> - **Matching:** a match score from 0 to 1 for business names and domains
> - **Control:** `minMatchScore` and `maxGuesses` decide how strict and how wide the matching is

Teams use Facebook Page Finder & ID Resolver to clean contact lists, connect Facebook ids to CRM rows, find the Facebook Page of a business and prepare input lists for other Facebook tools. Every answer comes back in the same JSON shape, so the data is easy to merge into a spreadsheet or a database.

### 🔹 Facebook Page Finder & ID Resolver – Key Features

Facebook Page Finder & ID Resolver focuses on one job: finding the right Facebook Page and its ids.

- **Mixed inputs in one run:** URLs, @usernames, numeric ids, business names and domains can share one list.
- **Exact id resolution:** a Facebook username, a profile id or a Page id is resolved to its canonical Facebook address.
- **Messy URL support:** `profile.php?id=`, `/people/` and legacy `/pages/` URLs, plus `facebook.com/share/` links, are understood.
- **Business name matching:** Facebook Page Finder & ID Resolver reads the Facebook link on a business website and tries likely usernames.
- **Match score and confidence:** every name or domain match carries a score and a `high`, `medium` or `none` label.
- **Alternatives:** Facebook Page Finder & ID Resolver lists weaker candidates so you can review them yourself.
- **City hint:** a location helps Facebook Page Finder & ID Resolver narrow down businesses with common names.
- **Duplicate handling:** Facebook Page Finder & ID Resolver skips repeated inputs, and different inputs that resolve to the same Facebook Page are flagged.
- **Clear status:** each record says whether the Page was found, not found, unresolved or unsupported.

> **✅ Why use this Actor**
>
> Facebook Page Finder & ID Resolver replaces manual searching on Facebook. Facebook Page Finder & ID Resolver checks each input for you and returns ids you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Page Finder & ID Resolver Extract?

Each dataset item describes the result for one input. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Input | `input`, `inputType`, `query` | Your original entry, its detected type and the parsed business query |
| Result | `status`, `exists`, `reason`, `error` | Whether the Facebook Page was found and why not |
| Identity | `resolvedUrl`, `username`, `userId`, `pageId`, `name` | Canonical Facebook address and ids |
| Profile facts | `category`, `verified`, `followers`, `entityType`, `isPage` | Basic public facts and the kind of Facebook entity |
| Method | `method`, `inputIdMatches`, `duplicateOf` | How the input was resolved |
| Matching | `confidence`, `matchScore`, `matchEvidence`, `candidatesProbed` | Score and evidence for names and domains |
| Review | `alternatives`, `bestWeakMatch` | Other candidates and the closest weak match |
| Source | `scrapedAt` | Collection time |

The `inputType` field shows how Facebook Page Finder & ID Resolver read each entry, for example `page_url`, `username`, `numeric_id`, `profile_php`, `people_url`, `name` or `domain`.

### 🚀 How to Use Facebook Page Finder & ID Resolver

Running Facebook Page Finder & ID Resolver takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Page Finder & ID Resolver from the Apify Store and go to the Input tab.
- **Step 2 – Add your queries:** enter URLs, usernames, ids, business names or domains in *Queries*, one entry per line.
- **Step 3 – Add a hint if needed:** fill *Location* with a city to help match business names.
- **Step 4 – Set the strictness:** adjust *Minimum match score* and *Max username guesses* if you want.
- **Step 5 – Run:** start Facebook Page Finder & ID Resolver and watch the dataset fill with one record per input.
- **Step 6 – Export:** download the results as JSON, CSV or Excel, or read them through the Apify API.

> **💡 Tip:** the input is prefilled with eight sample queries of different kinds. Replace them with your own list before you run Facebook Page Finder & ID Resolver.

### 📥 Facebook Page Finder & ID Resolver Input

Facebook Page Finder & ID Resolver has six input fields. You need at least one entry in `queries`, `startUrls` or `usernames`.

| Field | Type | Description |
|---|---|---|
| `queries` | array | One entry per item: Facebook URLs, usernames (`nike`, `@nike`), numeric ids, business names or website domains. A business can be written as `Name \| City \| domain.com`. Duplicates are skipped. |
| `startUrls` | array | Optional extra Facebook Page or profile URLs. Merged with `queries`. Default is an empty list. |
| `usernames` | array | Optional extra usernames or numeric ids. Merged with `queries`. Default is an empty list. |
| `location` | string | Optional city used as a hint for business names and domains. Entries written with their own city use that city instead. |
| `minMatchScore` | number | Minimum score from 0 to 1 for a name or domain match to count as found. Default is 0.75. URLs, usernames and ids are not affected. |
| `maxGuesses` | integer | Maximum number of guessed usernames tried per business name or domain. Default is 10. Use 0 to turn guessing off. |

Facebook Page Finder & ID Resolver returns lower-scoring name matches as `unresolved`, together with the weak match and alternatives, so nothing is silently dropped. When you fill in any query list yourself, the prefilled samples are not added to your run.

Here is a sample input for Facebook Page Finder & ID Resolver that mixes an id, a username and a business with a city:

```json
{
  "queries": ["natgeo", "100044541544829", "Sample Coffee Roasters | Portland | samplecoffeeroasters.example.com"],
  "startUrls": ["https://www.facebook.com/nike"],
  "usernames": [],
  "location": "Portland",
  "minMatchScore": 0.8,
  "maxGuesses": 8
}
```

### 📤 Facebook Page Finder & ID Resolver Output

Facebook Page Finder & ID Resolver writes one record per input to the default dataset. Here is an exact match for a username:

```json
{
  "input": "samplecoffeeroasters",
  "inputType": "username",
  "status": "found",
  "exists": true,
  "resolvedUrl": "https://www.facebook.com/samplecoffeeroasters",
  "username": "samplecoffeeroasters",
  "userId": "100000000000001",
  "pageId": "100000000000002",
  "name": "Sample Coffee Roasters",
  "category": "Coffee shop",
  "verified": false,
  "followers": 12480,
  "entityType": "page",
  "isPage": true,
  "inputIdMatches": null,
  "method": "username_lookup",
  "confidence": "exact",
  "scrapedAt": "2026-11-06T14:09:52.000Z"
}
```

A business name or domain adds the score, the evidence and the alternatives:

```json
{
  "input": "Sample Coffee Roasters | Portland | samplecoffeeroasters.example.com",
  "inputType": "name",
  "query": { "name": "Sample Coffee Roasters", "city": "Portland", "domain": "samplecoffeeroasters.example.com" },
  "method": "facebook link found on samplecoffeeroasters.example.com + slug_guess (Facebook has no logged-out name search)",
  "candidatesProbed": ["https://www.facebook.com/samplecoffeeroasters"],
  "status": "found",
  "exists": true,
  "resolvedUrl": "https://www.facebook.com/samplecoffeeroasters",
  "username": "samplecoffeeroasters",
  "userId": "100000000000001",
  "pageId": "100000000000002",
  "name": "Sample Coffee Roasters",
  "followers": 12480,
  "confidence": "high",
  "matchScore": 0.96,
  "matchEvidence": { "nameSimilarity": 1.0, "domainMatch": true, "cityMatch": true, "how": "website_link" },
  "alternatives": [{ "url": "https://www.facebook.com/samplecoffeeroasters2", "title": "Sample Coffee Roasters Fan Page", "matchScore": 0.62 }],
  "scrapedAt": "2026-11-06T14:09:58.000Z"
}
```

When no public Facebook Page exists at an address, the record explains it:

```json
{
  "input": "this-page-does-not-exist-example",
  "inputType": "username",
  "status": "not_found",
  "exists": false,
  "resolvedUrl": null,
  "method": "username_lookup",
  "reason": "no public Page / profile at this address (does not exist, deleted, or not public)",
  "scrapedAt": "2026-11-06T14:13:08.000Z"
}
```

#### 🧾 Output field guide

- `status` is usually `found`, `not_found`, `unresolved` or `unsupported`, and `reason` explains anything other than `found`.
- `resolvedUrl`, `username`, `userId` and `pageId` are the canonical Facebook address and ids.
- `entityType` and `isPage` tell you whether the result is a Page or a personal profile.
- `inputIdMatches` shows whether a numeric input was a `userId` or a `pageId`.
- `confidence` is `exact` for URLs, usernames and ids, and `high`, `medium` or `none` for names and domains.
- `matchScore` and `matchEvidence` explain how well a business matched.
- `alternatives` and `bestWeakMatch` help you review uncertain results.
- `duplicateOf` points to the earlier input that resolved to the same Facebook Page.

### 🏢 How to Find the Facebook Page of a Business with Facebook Page Finder & ID Resolver

Enter the business name, ideally with its website domain, for example `Sample Coffee Roasters | Portland | samplecoffeeroasters.example.com`. Facebook Page Finder & ID Resolver reads the Facebook link on the website, tries likely usernames and compares names, websites and cities.

This is best effort and not a Facebook search engine, because Facebook offers no public name search. A domain gives the strongest evidence. If the score stays below `minMatchScore`, the record is `unresolved` and lists the closest candidates.

### 🎯 Facebook Page Finder & ID Resolver Use Cases

Facebook Page Finder & ID Resolver fits many workflows that need Facebook ids.

- **CRM cleanup:** turn Facebook links of mixed quality into canonical URLs and ids.
- **Lead enrichment:** find the Facebook Page of businesses from a list of names and websites.
- **Id conversion:** learn whether a numeric id is a profile id or a Page id.
- **Input preparation:** build clean Facebook Page lists before you scrape posts, reviews or contacts.
- **Brand protection:** confirm which Facebook Page uses a name or domain you track.
- **Data validation:** check that saved Facebook links still exist and are public.
- **Directory building:** attach verified flags, categories and follower counts to business records.

### 💰 Pricing

Facebook Page Finder & ID Resolver runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of inputs and the resources used by the run.

> **💡 Cost tip:** Facebook Page Finder & ID Resolver makes extra checks for business names and domains, so lower `maxGuesses` or set it to 0 when your list holds only URLs, usernames or ids. Test with a short list first.

### 💡 Tips and Best Practices

- **Add the domain:** a website domain gives Facebook Page Finder & ID Resolver the strongest evidence for a business.
- **Use the city format:** write `Name | City | domain.com` when a business name is common.
- **Tune the score:** raise `minMatchScore` for fewer but safer matches, or lower it to review more candidates.
- **Read the confidence:** treat `medium` matches as suggestions and check them before you rely on them.
- **Prefer ids and URLs:** these are resolved exactly, so they are the most reliable input.
- **Expect public data only:** Facebook Page Finder & ID Resolver returns what a logged-out visitor can see, and some Facebook values can be `null`.
- **Review alternatives:** the `alternatives` list often shows the right Facebook Page when the top score is low.

> **⚠️ Important:** only collect data you are allowed to use. Facebook Pages and profiles can contain personal data, so follow Facebook's terms and the privacy rules that apply to you, such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Page Finder & ID Resolver?

Facebook Page Finder & ID Resolver is an Apify Actor that resolves Facebook URLs, usernames, ids, business names and domains to canonical Page or profile records with ids, name, category, verified and followers.

#### 🧭 How do I find a Facebook Page ID?

Enter the Facebook URL or username in `queries` and start the run. Facebook Page Finder & ID Resolver returns `pageId` and `userId` for the resolved Facebook Page.

#### 🧩 Can I find a Facebook Page from a business name?

Yes. Add the business name, ideally with a city and domain. Facebook Page Finder & ID Resolver returns the best match with a score, or marks it `unresolved` when the match is weak.

#### 🔁 Can I convert a Facebook profile id to a Page id?

Yes, when both ids exist. Enter the numeric id in Facebook Page Finder & ID Resolver and read `userId`, `pageId` and `inputIdMatches` in the record.

#### 🔐 Does Facebook Page Finder & ID Resolver need a Facebook login?

No. Facebook Page Finder & ID Resolver reads publicly visible content, so no account, cookies or API key are required.

#### 📦 What data does Facebook Page Finder & ID Resolver return?

Each record includes the input, status, resolved URL, username, user id, Page id, name, category, verified flag, followers, method and confidence, plus score and alternatives for names.

#### 🎚️ How accurate are business name matches?

Facebook Page Finder & ID Resolver scores matches from 0 to 1 using name, website and city evidence. Anything below `minMatchScore` is reported as `unresolved`, so you can review the alternatives.

#### 🚫 Can I resolve private Facebook profiles?

No. Facebook Page Finder & ID Resolver only returns public content. An address with no public Page or profile returns `not_found`.

#### 📊 Can I export the results to CSV or Excel?

Yes. Every Facebook Page Finder & ID Resolver dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### ⚖️ Is it legal to look up Facebook Pages?

Facebook Page Finder & ID Resolver reads public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share personal information.

### 📞 Support

If you have questions, ideas for new fields or find a Facebook Page that is not matched correctly, send the input you used and the result you expected.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `queries` (type: `array`):

One entry per item: Page / profile URLs, usernames (nike, @nike), numeric ids, profile.php?id= / /people/ / legacy /pages/ URLs, facebook.com/share/ links, business names or website domains. A business can also be written as 'Name | City | domain.com'. Duplicate inputs are skipped.

## `startUrls` (type: `array`):

Optional extra Page / profile URLs. Merged with 'Queries' and handled the same way.

## `usernames` (type: `array`):

Optional extra usernames or numeric ids. Merged with 'Queries' and handled the same way.

## `location` (type: `string`):

Optional city used as a hint when resolving business names and domains (compared with the Page's address and added to the guessed usernames). Entries written as 'Name | City | domain.com' use their own city instead.

## `minMatchScore` (type: `number`):

Minimum score (0 to 1) for a business-name or domain match to count as found. Lower-scoring matches are returned as 'unresolved' with the weak match and alternatives. URLs, usernames and ids are not affected.

## `maxGuesses` (type: `integer`):

Maximum number of guessed usernames probed per business name or domain (one request each). The Facebook link found on a domain's own website is checked in addition. 0 turns guessing off.

## Actor input object example

```json
{
  "queries": [
    "https://www.facebook.com/nike",
    "natgeo",
    "100044541544829",
    "https://www.facebook.com/profile.php?id=100064027242849",
    "https://www.facebook.com/people/Cristiano-Ronaldo/100044296486382/",
    "Blue Bottle Coffee",
    "bluebottlecoffee.com",
    "thispagedoesnotexist1234567xyz"
  ],
  "startUrls": [],
  "usernames": [],
  "minMatchScore": 0.75,
  "maxGuesses": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Facebook Page Finder & ID Resolver and stored in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "https://www.facebook.com/nike",
        "natgeo",
        "100044541544829",
        "https://www.facebook.com/profile.php?id=100064027242849",
        "https://www.facebook.com/people/Cristiano-Ronaldo/100044296486382/",
        "Blue Bottle Coffee",
        "bluebottlecoffee.com",
        "thispagedoesnotexist1234567xyz"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-page-finder-id-resolver").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": [
        "https://www.facebook.com/nike",
        "natgeo",
        "100044541544829",
        "https://www.facebook.com/profile.php?id=100064027242849",
        "https://www.facebook.com/people/Cristiano-Ronaldo/100044296486382/",
        "Blue Bottle Coffee",
        "bluebottlecoffee.com",
        "thispagedoesnotexist1234567xyz",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-page-finder-id-resolver").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "https://www.facebook.com/nike",
    "natgeo",
    "100044541544829",
    "https://www.facebook.com/profile.php?id=100064027242849",
    "https://www.facebook.com/people/Cristiano-Ronaldo/100044296486382/",
    "Blue Bottle Coffee",
    "bluebottlecoffee.com",
    "thispagedoesnotexist1234567xyz"
  ]
}' |
apify call alpha-scraper/facebook-page-finder-id-resolver --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-page-finder-id-resolver"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ehVIRfRugfuF7dpIt/builds/ldkVGi4Zz2ZAq91gB/openapi.json
