# Resolver & Page Meta Scraper (`scrapepilot/resolver-page-meta-scraper`) Actor

Resolve Facebook share links to their final page URL and extract public page metadata like name, username, avatar, and about text. Ideal for lead enrichment, social profile cleanup, public page lookup, and fast Facebook page data extraction.

- **URL**: https://apify.com/scrapepilot/resolver-page-meta-scraper.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 7 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$7.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Facebook Share URL Resolver

Resolve Facebook share links and extract basic public page metadata in a clean, structured JSON format.

This Apify Actor is designed for users who need a simple, reliable Facebook page metadata extractor for public pages, share URLs, and redirect-based links. It follows the share URL, finds the final destination, and collects the most useful public page details in one run.

---

### What this Actor does

This Actor takes a Facebook URL, resolves redirects if needed, and extracts basic metadata from the final page.

It can return:

- input URL
- resolved final URL
- page name
- username or page slug
- avatar image
- about/description text
- HTTP status
- error information

The output is clean and easy to use in automation workflows, datasets, spreadsheets, and downstream tools.

---

### Why use this Actor

Facebook links are often shared through redirect-style URLs or share links. This Actor helps by resolving the real page URL first, then extracting the most useful public metadata from the page.

It is useful when you need:

- page identity checks
- share link resolution
- public page metadata extraction
- lightweight Facebook data collection
- structured output for analysis or automation
- simple public page lookup workflows

---

### Main use cases

Use this Actor for:

- Facebook page discovery
- public page metadata lookup
- share link resolution
- social media research
- brand monitoring
- page verification
- content tracking
- lead enrichment
- automation workflows
- dataset building

---

### What it extracts

Depending on what the page exposes, the Actor can return:

- `input_url`
- `real_url`
- `name`
- `username`
- `avatar`
- `about`
- `http_status`
- `error`

---

### Example output

```json
{
  "input_url": "https://www.facebook.com/share/...",
  "real_url": "https://www.facebook.com/examplepage",
  "name": "Example Page",
  "username": "examplepage",
  "avatar": "https://scontent....jpg",
  "about": "Example page description text...",
  "http_status": 200,
  "error": ""
}
````

***

### Input options

You can provide the Actor with either:

- `url`
- `urls`

#### Input examples

##### Single URL

```json
{
  "url": "https://www.facebook.com/share/....",
  "useApifyProxy": true
}
```

##### Multiple URLs

```json
{
  "urls": "https://www.facebook.com/share/....\nhttps://www.facebook.com/examplepage",
  "useApifyProxy": true
}
```

***

### Input fields

#### `url`

A single Facebook page or share URL.

#### `urls`

A multiline list of URLs. The Actor will use the first non-empty line.

#### `useApifyProxy`

Whether to use Apify Proxy. Default: `true`

#### `apifyProxyGroups`

Proxy groups to use when Apify Proxy is enabled. Default: `["RESIDENTIAL"]`

***

### How it works

1. The Actor receives a Facebook URL.
2. It resolves redirects and share links.
3. It requests the final page.
4. It parses the HTML.
5. It extracts metadata from the page title and meta tags.
6. It pushes the result to the Apify Dataset.
7. It also saves the result as `facebook_share_resolved.json` in Key-Value Store.

***

### Features

#### Share URL resolution

The Actor follows redirect-based Facebook share links and captures the final URL.

#### Public page metadata extraction

It extracts basic information such as page name, username, avatar, and description.

#### Proxy support

Supports Apify Proxy for more stable outbound requests.

#### Clean JSON output

Returns data in a structured format that is easy to store and reuse.

#### Simple workflow

Designed to be lightweight, fast, and easy to run.

***

### Result format

The Actor is made for users who want output that is ready for:

- JSON export
- database ingestion
- spreadsheet import
- API workflows
- automation pipelines
- lead enrichment
- page verification

***

### Best use cases by user type

#### Researchers

Look up public Facebook page metadata for analysis.

#### Marketers

Check page identity and collect basic public page details.

#### Agencies

Use it for quick page lookup and reporting.

#### Automation users

Feed the output into other workflows and systems.

#### Data builders

Collect structured page metadata in bulk.

***

### Notes on extracted values

#### `name`

Usually taken from the page title with `| Facebook` removed.

#### `username`

Extracted from the final URL path when possible.

#### `avatar`

Collected from the `og:image` meta tag when available.

#### `about`

Collected from the page description meta tag when available.

#### `http_status`

Returns the HTTP status code of the final request.

#### `error`

Contains error details if resolution or scraping fails.

***

### Limitations

This Actor works best on public pages and pages that expose metadata in standard HTML tags.

Some fields may be missing because of:

- privacy restrictions
- page changes
- broken or blocked share links
- redirect behavior
- Facebook HTML changes
- regional differences
- anti-bot restrictions

For best results, use public URLs and stable page links.

***

### Recommended practices

- Use public URLs only
- Use Apify Proxy for better reliability
- Keep inputs clean and valid
- Test a few URLs before bulk runs
- Review output structure before building automation on top of it

***

### Output destination

The Actor writes results to:

- **Apify Dataset**
- **Key-Value Store** as `facebook_share_resolved.json`

This makes the output easy to export, reuse, and connect to other tools.

***

### Example workflow

1. Paste a Facebook share URL or page URL.
2. Run the Actor.
3. Get the resolved final URL and metadata.
4. Export the JSON or connect it to another workflow.
5. Use the data for research, monitoring, or automation.

***

### FAQ

#### Does this Actor resolve Facebook share links?

Yes. It follows redirects and returns the final resolved URL.

#### Does it extract page metadata?

Yes. It extracts name, username, avatar, about text, and HTTP status when available.

#### Can it handle multiple URLs?

Yes. You can provide a multiline `urls` input and it will use the first valid URL.

#### Does it support proxies?

Yes. It supports Apify Proxy.

#### What format does it return?

Structured JSON output.

***

### Suggested store summary

Resolve Facebook share links and extract basic public page metadata in clean JSON. Get the final URL, page name, username, avatar, description, and HTTP status in one simple Apify Actor.

***

### Keywords

facebook scraper, facebook page scraper, facebook share url resolver, facebook metadata extractor, facebook page metadata, facebook about scraper, facebook avatar scraper, public facebook page scraper, apify facebook scraper, facebook link resolver, facebook page lookup, social media metadata extractor

***

# Actor input Schema

## `url` (type: `string`):

A Facebook share link or page URL (single).

## `urls` (type: `string`):

If you paste multiple URLs here, the actor will use the first non-empty line.

## `useApifyProxy` (type: `boolean`):

Route requests through Apify Proxy (recommended to reduce blocking).

## `apifyProxyGroups` (type: `array`):

Proxy groups to request.

## Actor input object example

```json
{
  "url": "https://www.facebook.com/Cristiano/",
  "useApifyProxy": true,
  "apifyProxyGroups": [
    "RESIDENTIAL"
  ]
}
```

# 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 = {
    "url": "https://www.facebook.com/Cristiano/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/resolver-page-meta-scraper").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 = { "url": "https://www.facebook.com/Cristiano/" }

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

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

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

```

## CLI example

```bash
echo '{
  "url": "https://www.facebook.com/Cristiano/"
}' |
apify call scrapepilot/resolver-page-meta-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapepilot/resolver-page-meta-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Resolver & Page Meta Scraper",
        "description": "Resolve Facebook share links to their final page URL and extract public page metadata like name, username, avatar, and about text. Ideal for lead enrichment, social profile cleanup, public page lookup, and fast Facebook page data extraction.",
        "version": "0.0",
        "x-build-id": "yqris4FdcV91QaTL7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapepilot~resolver-page-meta-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapepilot-resolver-page-meta-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/scrapepilot~resolver-page-meta-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapepilot-resolver-page-meta-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/scrapepilot~resolver-page-meta-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapepilot-resolver-page-meta-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",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "Facebook URL",
                        "type": "string",
                        "description": "A Facebook share link or page URL (single)."
                    },
                    "urls": {
                        "title": "Facebook URLs (one per line)",
                        "type": "string",
                        "description": "If you paste multiple URLs here, the actor will use the first non-empty line."
                    },
                    "useApifyProxy": {
                        "title": "Use Apify Proxy",
                        "type": "boolean",
                        "description": "Route requests through Apify Proxy (recommended to reduce blocking).",
                        "default": true
                    },
                    "apifyProxyGroups": {
                        "title": "Proxy Groups",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Proxy groups to request.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "RESIDENTIAL",
                                "DATACENTER",
                                "GOOGLE"
                            ]
                        },
                        "default": [
                            "RESIDENTIAL"
                        ]
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
