# Facebook 评价 API (facebook.reviews)

- Canonical page: https://everyinfra.com/facebook-api/reviews
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "facebook", "action": "reviews", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 按接口传目标：profile/user_posts 传公开主页，post/comments 传帖子，group_posts 传群组主页或群组标识，reviews 传商家主页（会补 /reviews）。不是任意 Facebook 链接均可用于所有接口。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| is_recommended | 是否为推荐评价（FB 用推荐/不推荐替代星级）。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| author_id | 评论作者的数字用户 ID（稳定标识，可用于跨请求去重）。 |
| author_name | 作者昵称（显示名）。 |
| author_url | 评论作者的主页链接。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "reviews",
  "params": {
    "url": "https://www.facebook.com/copperkettleyqr"
  }
}'
```

```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": "reviews",
        "params": {
            "url": "https://www.facebook.com/copperkettleyqr",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "facebook",
  "action": "reviews",
  "results": [
    {
      "id": "UzpfSTEwMDAwODg0Mjg0MTAzMDozNDMzNTYyNDMzNjE1MTUxOjM0MzM1NjI0MzM2MTUxNTE=",
      "url": "https://www.facebook.com/daniel.masih.313/posts/pfbid0bJEQctpZPUSgWwMcZ1UGDwW7fuzVMAMjC28zyXFZF4JEZ33WBxCPrTKWhMZ1MbGol",
      "text": "They offers a cozy atmosphere, friendly service, and a menu of tasty comfort food at reasonable prices. It’s a great spot for casual dining.",
      "is_recommended": true,
      "posted_at": "2024-09-11T17:57:58+00:00",
      "like_count": 0,
      "comment_count": 0,
      "author_id": "•••",
      "author_name": "•••",
      "author_url": "https://www.facebook.com/•••",
      "platform": "facebook"
    },
    {
      "id": "UzpfSTUyNTU3NTA0MzoxMDE1OTM2NzE2MzM2NTA0NDoxMDE1OTM2NzE2MzM2NTA0NA==",
      "url": "https://www.facebook.com/jayna.nicholson/posts/pfbid02JrHEMNK2efM6N4pwVTRBcmRwgLYqBwTQmBPVo8VAE8TVzKPpFF1zYdZwgz5hXp5fl",
      "text": "Normally the food from here is really good but we got pizza last night and it was somewhere in the range of sub par to just really not good. The whole thing was barely cooked and was so soggy. The crust was literally wet. Maybe it’s because it’s the deluxe 🤷‍♀️ \nAnyway, I don’t t…",
      "is_recommended": false,
      "posted_at": "2024-04-11T17:40:55+00:00",
      "like_count": 1,
      "comment_count": 2,
      "author_id": "•••",
      "author_name": "•••",
      "platform": "facebook"
    }
  ],
  "count": 20,
  "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
