# Facebook Details API (facebook.profile)

- Canonical page: https://everyinfra.com/en/facebook-api/profile
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "facebook", "action": "profile", "params": {...}}
- Price: $0.002778 per call ($2.78 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: async by default (202 + job_id, poll GET /api/v1/jobs/{job_id})

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=facebook&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| follower_count | Followers. null means not disclosed, not 0. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| phone | Contact phone number, passed through without format normalization. |
| email | Contact email address, passed through as is. |
| website | External website entered by the account or business. |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "facebook",
  "action": "profile",
  "params": {
    "url": "https://www.facebook.com/nasa"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "facebook",
        "action": "profile",
        "params": {
            "url": "https://www.facebook.com/nasa",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "facebook",
  "action": "profile",
  "results": {
    "id": "•••",
    "name": "NASA - National Aeronautics and Space Administration",
    "url": "https://www.facebook.com/nasa",
    "bio": "Explore the universe and discover our home planet. \nThere's space for everybody. ✨",
    "category": [
      "Page",
      "Government organization"
    ],
    "like_count": 0,
    "follower_count": 28743710,
    "email": "•••",
    "website": "https://www.nasa.gov/nasa-app/",
    "avatar_url": "https://scontent-iad3-2.xx.fbcdn.net/•••",
    "platform": "facebook"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=facebook
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
