← 瀏覽全部 API
皮皮蝦 post API
一次 REST 呼叫取得 皮皮蝦 post 資料——以 FetchPI 全平台共用的穩定 JSON 結構標準化輸出。
- 1 個已發布端點
- GET /v1/pipixia/posts/{id}
契約摘要(英文): Get a normalized Pipixia work (capability pipixia.post)
- 標準化回應實體
- pipixia/post
- capability
- pipixia.post
每個回應都附帶新鮮度(cache / default / live)與計費中繼資料。
使用場景
- 為內容分析管線提供結構化的 {{platform}} 貼文:內文、指標、時間戳記與媒體引用。
- 支撐需要原始內容與互動數據的審核、研究與監測流程。
- 以穩定的標準化 JSON 歸檔 {{platform}} 內容,告別脆弱的網頁爬取。
回應欄位
Pipixia Post (normalized)
Normalized Pipixia post — the ONLY upper-layer format; provider-private fields are dropped. Serves pipixia.post and the post lists of /v1/pipixia.
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| id | string | 必填 | Platform-native post id (pk / activity id / message id / cell id). |
| platform | "pipixia" | 必填 | — |
| type | "post" | 必填 | — |
| author.id | string | 必填 | Author platform id. |
| author.username | string | 必填 | Author addressing key without leading @. |
| author.display_name | string | null | 必填 | Author display name. |
| author.verified | boolean | 必填 | — |
| title | string | null | 可選 | Post title (the work title). |
| text | string | null | 必填 | Post text (null for media-only posts). |
| created_at | string | 必填 | Post publish time, UTC RFC3339. |
| metrics.likes | integer | 必填 | Like (digg) count. |
| metrics.comments | integer | 必填 | Comment count. |
| metrics.shares | integer | 必填 | Share count. |
| metrics.views | integer | 必填 | Play/view count. |
| attachments | object[] | 可選 | Media attachments (max 8): photo urls and/or the video block. |
| fetched_at | string | 必填 | Normalization time of the stored snapshot (UTC). |
欄位備註為契約英文原文。
回應中繼資料
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| 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/pipixia/posts/{id}curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
"https://api.fetchpi.com/v1/pipixia/posts/1842951234567890123"{
"data": {
"id": "9259000000001001",
"platform": "pipixia",
"type": "post",
"author": {
"id": "9255000122",
"username": "皮皮虾数据站",
"display_name": "皮皮虾数据站",
"verified": false
},
"title": "皮皮虾:数据 API 实战",
"text": "一条关于数据 API 的作品。",
"created_at": "2026-09-16T11:20:00Z",
"metrics": {
"likes": 21000,
"comments": 158,
"shares": 74,
"views": 780000
},
"attachments": [
{
"type": "photo",
"url": "https://cdn.example.com/images/pipixia-9259000000001001-1.jpeg"
},
{
"type": "video",
"preview_image_url": "https://cdn.example.com/cover/pipixia-9259000000001001.jpeg",
"duration_ms": 45000
}
],
"fetched_at": "2026-09-21T09:00:00Z"
},
"meta": {
"request_id": "req_01HTXQ8Z9HTQ",
"freshness": {
"mode": "default",
"age_seconds": 0,
"source_layer": "upstream",
"stale": false
},
"billing": {
"amount_credits": 100,
"cache_hit": false
}
}
}免費試用
註冊免費帳號、取得 API Key,即可在瀏覽器版 Playground 直接呼叫該端點。
在 Playground 試用該端點的參數表、錯誤碼與回應語義見 API 文件。
查看端點參考常見問題
回應包含哪些內容欄位?
回應攜帶標準化的內容實體(內文、作者、時間戳記、互動指標與媒體引用),欄位見下方欄位表,並附帶新鮮度與計費中繼資料。
可以免費試用該端點嗎?
可以——註冊帳號、取得 API Key 後,即可在主控台的 Playground 呼叫該端點。
post 能力怎麼計費?
Data API 按請求以點數計費,cache/live 新鮮度有不同倍率。目前各能力的價格以價格頁為準。