# Resolve a Facebook profile URL to its profile id

Resolves the Facebook profile ID associated with a submitted profile-path value.

|  |  |
| --- | --- |
| Tool id | `justoneapi.x-facebook-get-profile-id-v1` |
| Platform | [Facebook](https://www.orcarouter.ai/tools/facebook.md) |
| Capability | [Resolve user ID from a link](https://www.orcarouter.ai/tools/facebook/user-resolve-id.md) |
| Price | $0.032472 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | yes |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The path portion of the Facebook profile URL, such as /\<profile-path>. Do not include the scheme or host. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/justoneapi.x-facebook-get-profile-id-v1/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"<url>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/justoneapi.x-facebook-get-profile-id-v1/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"url":"<url>"}},
)
print(resp.json())
```

## FAQ

### How much does Resolve a Facebook profile URL to its profile id cost?

Resolve a Facebook profile URL to its profile id costs $0.032472 per call: 1,000 calls cost $32.472.

### What does a $10 budget buy with Resolve a Facebook profile URL to its profile id?

About 307 calls at $0.032472 per call.

### What inputs does Resolve a Facebook profile URL to its profile id need?

Required inputs: url.

### How do I call Resolve a Facebook profile URL to its profile id?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/facebook/user-resolve-id/x-facebook-get-profile-id-v1
