# Facebook Profile ID Finder — URLs & Usernames (`arjun_code/facebook-profile-id-finder`) Actor

Find numeric Facebook profile IDs from links or usernames in bulk. Match accounts across your records and export IDs with profile links to JSON, CSV or Excel. No Facebook login, cookies or proxy setup required. Get a clear result for every unique input, including profiles that could not be resolved.

- **URL**: https://apify.com/arjun_code/facebook-profile-id-finder.md
- **Developed by:** [ArjunAI Data](https://apify.com/arjun_code) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 facebook profile id resolveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 profile ID lookup for your records and workflows

Turn personal Facebook profile links and usernames into **numeric Facebook IDs**. Add a small batch, get an ID or a clear message for each unique input, then export the results to JSON, CSV or Excel. No Facebook login, cookies or proxy setup is required.

Use Facebook Profile ID Finder to match accounts across existing records, normalize different profile-link formats, or prepare IDs for tools that accept a Facebook UID.

### How to use

1. Add up to **25 unique profiles** to **Facebook profile links or usernames**, one per line.
2. Click **Start** and open **Profile IDs** to review the results.
3. Export the dataset or use it in your next workflow.

Try a username such as `CodyDLoveland`, or paste its full profile link.

```json
{
  "facebookProfiles": [
    "CodyDLoveland",
    "https://www.facebook.com/jean.l.alamo"
  ]
}
```

Blank lines are ignored. A username, `@username` and its equivalent profile URL count as one input. The first version you entered is retained in the results. Results follow your input order.

If the list contains more than 25 unique supported inputs, the Actor returns a message asking you to split the list before it starts any profile lookups.

### Supported inputs

| Format | Example | What happens |
| --- | --- | --- |
| Username | `CodyDLoveland` | Looks up the numeric ID |
| Handle | `@CodyDLoveland` | Looks up the numeric ID |
| Personal-profile URL | `https://www.facebook.com/CodyDLoveland` | Looks up the numeric ID |
| Numeric ID | `714900507` | Reads the ID from your input |
| Numeric profile URL | `https://www.facebook.com/profile.php?id=714900507` | Reads the ID from the link |

Mobile profile links are normalized automatically. Numeric links in the forms `/people/name/ID`, `/ID` and `/friends/suggestions/?profile_id=ID` are also supported.

This Actor focuses on profile inputs. Group, post, photo, video and sharing links receive an `invalid_input` message. A username-style URL can belong to a personal account or a Page; the ID alone does not identify the account type.

For API requests, put numeric IDs in quotes so each input is a JSON string.

### Example results

These results correspond to the two inputs above:

```json
[
  {
    "input": "CodyDLoveland",
    "status": "resolved",
    "uid": "1603517830",
    "facebook_url": "https://www.facebook.com/profile.php?id=1603517830"
  },
  {
    "input": "https://www.facebook.com/jean.l.alamo",
    "status": "resolved",
    "uid": "714900507",
    "facebook_url": "https://www.facebook.com/profile.php?id=714900507"
  }
]
```

When the input already contains an ID, the result explains that no profile-availability check was made:

```json
{
  "input": "714900507",
  "status": "extracted",
  "uid": "714900507",
  "facebook_url": "https://www.facebook.com/profile.php?id=714900507",
  "message": "The ID was read from your input. Profile availability was not checked."
}
```

#### Result fields

| Field | Meaning |
| --- | --- |
| `input` | Your original entry with surrounding spaces removed; may be null for a batch-level message |
| `status` | The outcome of processing that input |
| `uid` | Numeric Facebook ID, kept as text |
| `facebook_url` | A profile link constructed from the numeric ID |
| `message` | An explanation when one is needed |

Rows without an ID omit `uid` and `facebook_url`. Different usernames that resolve to the same ID retain their own rows, so you can match each result to its input.

#### What each status means

| Status | Meaning |
| --- | --- |
| `resolved` | A lookup returned a numeric ID |
| `extracted` | The ID was already in your input; availability was not checked |
| `not_resolved` | No ID could be obtained; this does not prove the account does not exist |
| `invalid_input` | An entry has an unsupported format, or the batch exceeds the input limit |
| `request_failed` | The lookup could not finish; try the affected input again later |

### Pricing

Pay for **successfully resolved profile IDs**, plus a startup fee. The result price depends on your Apify subscription:

| Subscription | Per 1,000 successful lookups |
| --- | ---: |
| Free | $4.00 |
| Bronze | $3.60 |
| Silver | $3.30 |
| Gold | $3.00 |
| Platinum | $3.00 |
| Diamond | $3.00 |

At the default memory setting, the **startup fee is $0.005 per run**, including runs with no successful lookups. Apify increases the number of startup units for runs above 1 GB of memory.

Only `resolved` results incur a lookup fee. `extracted`, `not_resolved`, `invalid_input` and `request_failed` rows have **no result fee**. Equivalent duplicate inputs are processed once. Platform usage is included in these prices.

For example, at the Free subscription rate, one successful lookup costs **$0.009** in total: $0.005 to start plus $0.004 for the result. A run with no resolved IDs costs **$0.005** at the default memory setting.

### API, exports and automation

You can export the results from Apify Console, call the Actor from your application, or connect it to a workflow using Apify integrations or MCP.

Example with the Apify Python client (version 3.x):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("arjun_code/facebook-profile-id-finder").call(
    run_input={"facebookProfiles": ["CodyDLoveland"]}
)
for item in client.dataset(run.default_dataset_id).list_items().items:
    print(item)
```

The API token is for your Apify account. You do not need Facebook login details.

### Frequently asked questions

#### Why can I open a profile but still get no ID?

Facebook may show different content to a signed-in browser and an automated lookup. Check the spelling and the result message. If you already have a numeric profile link, you can use it to extract the ID. A `not_resolved` result is not an account-existence verdict.

#### Does an extracted ID prove that the profile exists?

No. `extracted` means the ID was present in the input. The Actor does not check availability for those entries.

#### Will an unsuccessful profile stop the other inputs?

An individual unresolved or failed lookup receives its own message while the other supported inputs continue. A batch over the 25-input limit receives a message before profile lookups begin.

#### Are duplicate inputs queried again?

Equivalent inputs are processed once per run. For example, a username and its matching profile URL count once. Two different aliases are retained separately even if their returned IDs match.

### Related Actor

Have a Facebook ID and need to check for an available public business-contact record? See [Facebook Profile Lookup](https://apify.com/arjun_code/facebook-profile-lookup). It supports a different lookup workflow and has its own data availability and pricing.

### Support

If a supported format does not work as expected, open an issue from this Actor's **Issues** tab with the input format and run URL. Do not include passwords, login cookies or API tokens.

# Actor input Schema

## `facebookProfiles` (type: `array`):

Enter up to 25 unique profiles, one per line: a personal-profile link such as https://www.facebook.com/CodyDLoveland, a username such as CodyDLoveland, or a numeric ID such as 714900507. Blank lines are ignored. A username and its equivalent profile link count as one entry. If an input already contains a numeric ID, it is extracted without checking whether the profile exists. Group, post, photo, video and sharing links are not supported.

## Actor input object example

```json
{
  "facebookProfiles": [
    "CodyDLoveland"
  ]
}
```

# Actor output Schema

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

Resolved or extracted IDs and messages for unsuccessful inputs.

## `summary` (type: `string`):

Outcome counts, duplicate inputs skipped, request counts and elapsed time.

# 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 = {
    "facebookProfiles": [
        "CodyDLoveland"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arjun_code/facebook-profile-id-finder").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 = { "facebookProfiles": ["CodyDLoveland"] }

# Run the Actor and wait for it to finish
run = client.actor("arjun_code/facebook-profile-id-finder").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 '{
  "facebookProfiles": [
    "CodyDLoveland"
  ]
}' |
apify call arjun_code/facebook-profile-id-finder --silent --output-dataset

```

## MCP server setup

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

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/QvEFvcDON94SdtPiX/builds/Nmkd8iOnmCBkjdpF7/openapi.json
