← 瀏覽全部 API
Lemon8 user_following API
一次 REST 呼叫取得 Lemon8 user_following 資料——以 FetchPI 全平台共用的穩定 JSON 結構標準化輸出。
- 1 個已發布端點
- GET /v1/lemon8/users/{username}/following
契約摘要(英文): List Lemon8 following (capability lemon8.user_following)
- 標準化回應實體
- lemon8/user_following
- capability
- lemon8.user_following
每個回應都附帶新鮮度(cache / default / live)與計費中繼資料。
使用場景
- 分析 {{platform}} 帳號的受眾:以標準化、分頁的 JSON 回傳粉絲與關注列表。
- 找出帳號之間的共同粉絲,繪製受眾關係、辨識互動群組。
- 在洽談合作前評估受眾品質與重合度,無需匯出原始頁面。
回應欄位
Lemon8 lemon8.user_following response (normalized envelope)
Response envelope of the /v1/lemon8 lemon8.user_following capability. Cursor is opaque and platform-independent; page size follows the request's `limit` parameter (1..100, default 20).
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| data | profile[] | 必填 | — |
| next_cursor | string | null | 必填 | Opaque pagination cursor; null when the list is exhausted. |
| meta.request_id | string | 必填 | — |
| meta.freshness.mode | cache | default | live | 必填 | — |
| meta.freshness.age_seconds | integer | null | 可選 | — |
| meta.freshness.source_layer | cache | db | upstream | 必填 | — |
| meta.freshness.stale | boolean | 可選 | — |
| meta.billing.cache_hit | boolean | 必填 | — |
| meta.billing.amount_credits | integer | 必填 | Credits actually charged for this request (the settlement unit; 1 credit = $0.0001, permanent). |
欄位備註為契約英文原文。
回應中繼資料
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| mode | cache | default | live | 必填 | Effective mode after merging param > max_age > source policy (D-004). |
| age_seconds | integer | null | 可選 | Age of served data; null when unknown. |
| source_layer | cache | db | upstream | 必填 | Which layer served the response (PRD §10). |
| stale | boolean | 可選 | True when stale data was served under stale_if_error / SWR (D-004). |
| billing.amount_credits | integer | 必填 | Micro-USD (1e-6 USD) actually charged for this request. |
| billing.cache_hit | boolean | 必填 | — |
欄位備註為契約英文原文。
請求與回應範例
GET
/v1/lemon8/users/{username}/followingcurl -H "Authorization: Bearer $MESHDATA_API_KEY" \
"https://api.fetchpi.com/v1/lemon8/users/newdev/following"{
"data": [
{
"id": "7304994945116",
"platform": "lemon8",
"type": "profile",
"username": "meshdata_lemon",
"display_name": "MeshData on Lemon8",
"description": "Lifestyle data notes.",
"url": "https://fetchpi.com",
"profile_image_url": "https://cdn.example.com/avatar/lemon8-meshdata.jpg",
"verified": false,
"created_at": "2023-04-01T00:00:00Z",
"metrics": {
"followers": 24800,
"following": 150,
"posts": 96,
"likes": 158000
},
"fetched_at": "2026-09-21T09:00:00Z"
}
],
"next_cursor": null,
"meta": {
"request_id": "req_01HTXQ8Z9HTQ",
"freshness": {
"mode": "default",
"age_seconds": 0,
"source_layer": "upstream",
"stale": false
},
"billing": {
"amount_credits": 200,
"cache_hit": false
}
}
}免費試用
註冊免費帳號、取得 API Key,即可在瀏覽器版 Playground 直接呼叫該端點。
在 Playground 試用該端點的參數表、錯誤碼與回應語義見 API 文件。
查看端點參考常見問題
超長的粉絲列表如何處理?
列表使用游標分頁——帶上回傳的 cursor 請求下一頁,直到取夠為止。
可以免費試用該端點嗎?
可以——註冊帳號、取得 API Key 後,即可在主控台的 Playground 呼叫該端點。
user_following 能力怎麼計費?
Data API 按請求以點數計費,cache/live 新鮮度有不同倍率。目前各能力的價格以價格頁為準。