LargitData 開發者中心
LargitData 提供兩種可程式化介接的服務。公開內容 API 免費、唯讀、不需要金鑰, 回傳的就是本站以 HTML 發佈的產品目錄、知識中心索引與部落格內容。 商用資料 API,也就是社群媒體 API 與跨境電商數據 API,屬於簽約交付的服務, 以 API 金鑰認證。前者本頁即可完整使用,後者請從索取試用金鑰開始。
快速開始
不必註冊、不必金鑰、不必安裝 SDK,一行就能拿到資料:
curl -s https://www.largitdata.com/api/v1/products | jq '.data[].id'
想知道有哪些資源可用,從服務索引開始:
curl -s https://www.largitdata.com/api/v1/
下面所有端點的機器可讀規格放在
/openapi.json
(另有 YAML 版),可直接餵給程式碼產生器:
npx @openapitools/openapi-generator-cli generate \
-i https://www.largitdata.com/openapi.json \
-g python -o ./largitdata-client
端點清單
基底網址:https://www.largitdata.com/api/v1/。所有端點僅支援 GET
(同時回應 HEAD 與 OPTIONS),並開放跨來源讀取(CORS)。
| 端點 | 回傳內容 | 查詢參數 |
|---|---|---|
GET /api/v1/ |
服務索引:可用端點、支援語言、錯誤格式約定。 | 無 |
GET /api/v1/products |
產品與服務目錄,含各語言版本的正式頁面網址。 | lang、page、page_size |
GET /api/v1/products/{product_id} |
單一產品,例如 infominer、ragi、qubicx。 |
lang |
GET /api/v1/pages |
知識中心、解決方案、應用情境、產品比較、案例、關於與資源頁面。 | lang、section、page、page_size |
GET /api/v1/pages/{page_key} |
單一頁面,例如 knowledge/what-is-rag。 |
lang |
GET /api/v1/posts |
部落格文章,依時間新到舊排序;列表不含 HTML 內文。 | lang、page、page_size |
GET /api/v1/posts/{slug} |
單篇部落格文章,含 HTML 內文。 | 無 |
lang 可填 zh-tw(預設)、en 或 ja;
page_size 範圍 1 到 100,預設 50。
目錄中的產品
| id | 產品 | 產品頁 |
|---|---|---|
infominer |
InfoMiner 輿情與風險情報平台 | https://www.largitdata.com/infominer%E8%BC%BF%E6%83%85%E5%88%86%E6%9E%90%E5%B9%B3%E5%8F%B0/ |
ragi |
RAGi 企業 AI 檢索增強生成引擎 | https://www.largitdata.com/RAGi%E4%BC%81%E6%A5%ADAI%E6%AA%A2%E7%B4%A2%E5%A2%9E%E5%BC%B7%E7%94%9F%E6%88%90%E5%BC%95%E6%93%8E/ |
qubicx |
QubicX:RAGi 地端部署方案 | https://www.largitdata.com/qubicx/ |
aimochi |
AIMochi 會議內容與決策脈絡整理 | https://www.largitdata.com/aimochi/ |
social-media-api |
社群媒體 API(商用 API) | https://www.largitdata.com/%E7%A4%BE%E7%BE%A4%E5%AA%92%E9%AB%94API/ |
ecommerce-data-api |
跨境電商數據 API(商用 API) | https://www.largitdata.com/%E8%B7%A8%E5%A2%83%E9%9B%BB%E5%95%86%E6%95%B8%E6%93%9AAPI/ |
ai-content-analysis |
AI 影音內容分析雲服務 | https://www.largitdata.com/AI%E5%BD%B1%E9%9F%B3%E5%85%A7%E5%AE%B9%E5%88%86%E6%9E%90%E9%9B%B2%E6%9C%8D%E5%8B%99/ |
ocr |
OCR 光學字元辨識 | https://www.largitdata.com/ocr%E5%85%89%E5%AD%B8%E5%AD%97%E5%85%83%E8%BE%A8%E8%AD%98/ |
asr |
ASR 語音轉文字 | https://www.largitdata.com/asr%E8%AA%9E%E9%9F%B3%E8%BD%89%E6%96%87%E5%AD%97/ |
回應格式
所有成功回應使用同一組外層結構:集合型端點帶 meta 與 links,
單筆端點只有 data。
{
"data": [ { "id": "infominer", "name": "InfoMiner ...", "url": "https://..." } ],
"meta": { "total": 9, "page": 1, "page_size": 50, "total_pages": 1, "lang": "zh-tw" },
"links": {
"self": "https://www.largitdata.com/api/v1/products?page=1",
"next": null,
"prev": null,
"documentation": "https://www.largitdata.com/developers/"
}
}
翻頁時持續跟隨 links.next,直到它變成 null。
回應可快取 10 分鐘,並帶有 X-API-Version 標頭。
錯誤與錯誤碼
錯誤一律不是 HTML。/api/ 底下所有失敗都回傳
RFC 9457 的
application/problem+json,帶有穩定的 code
以及說明如何修正的 hint:
{
"type": "https://www.largitdata.com/developers/#error-invalid_parameter",
"title": "Bad Request",
"status": 400,
"code": "invalid_parameter",
"detail": "page_size=9999 is outside the supported range.",
"instance": "/api/v1/pages",
"hint": "page_size must be an integer between 1 and 100.",
"documentation_url": "https://www.largitdata.com/developers/",
"parameter": "page_size"
}
| code | HTTP | 意義 | 如何修正 |
|---|---|---|---|
invalid_parameter | 400 | 查詢參數缺漏、格式錯誤或超出範圍,出問題的參數名放在 parameter。 |
修正回應中指出的參數後重送。 |
not_found | 404 | 該路徑沒有對應的 API 資源。 | 到 /api/v1/ 查看可用端點。 |
product_not_found | 404 | 沒有這個產品 id。 | 到 /api/v1/products 取得完整 id 清單。 |
page_not_found | 404 | 沒有這個頁面 key。 | 到 /api/v1/pages 取得完整 key 清單。 |
post_not_found | 404 | 沒有這個部落格 slug。 | 到 /api/v1/posts 取得完整 slug 清單。 |
method_not_allowed | 405 | 使用了寫入類方法,本 API 唯讀。 | 改用 GET,可參考 Allow 標頭。 |
server_error | 500 | 伺服器端發生問題。 | 以退避策略重試;若持續發生,請附上 instance 值來信。 |
非 API 路徑若不存在,會回傳真正的 HTTP 404。
送出 Accept: text/markdown 時,回傳的是一份列出後續查找位置的 markdown 文件,
而不是有版面的 HTML 錯誤頁。
機器可讀資源
以下資源讓程式與 AI agent 不需爬取網頁就能導覽本站:
| 資源 | 說明 |
|---|---|
/openapi.json | 公開內容 API 的 OpenAPI 3.1 規格,另可從 /api/openapi.json 與 /.well-known/openapi.json 取得。 |
/openapi.yaml | 同一份規格的 YAML 版,另可從 /api/openapi.yaml 取得。 |
/api/v1/ | 公開內容 API 的即時服務索引。 |
/llms.txt | 供 LLM 檢索的網站索引,每個公開頁面一行。 |
/llms-full.txt | 供檢索增強生成使用的完整內容包。 |
/sitemap.xml | XML 網站地圖,含三語 hreflang 對應。 |
/robots.txt | 爬取政策,本站歡迎 AI 爬蟲。 |
/.well-known/api-catalog | RFC 9727 API 目錄 linkset。 |
/.well-known/agent-card.json | 描述本站能力的 A2A agent card。 |
/.well-known/agent-skills/index.json | Agent Skills Discovery 索引,含內容雜湊值。 |
商用 API 與認證
LargitData 有兩項服務以簽約方式交付資料,不從本站提供,認證方式為
X-API-Key 請求標頭:
curl -H "X-API-Key: $LARGITDATA_API_KEY" https://<專屬主機>/...
| 服務 | 資料內容 | 產品說明 |
|---|---|---|
| 社群媒體 API | PTT、Dcard、Facebook、Instagram,以及微博、小紅書、抖音的結構化貼文與留言。 | 產品頁 |
| 跨境電商數據 API | 商品、價格、排名、評論、問答與公開消費者討論資料,供市場研究與競品情報使用。 | 產品頁 |
/openapi.json 中的 ApiKeyAuth
則記載了這兩項服務使用的認證方式。
索取試用金鑰請來信 [email protected], 並附上:需要的平台、關鍵字或品類範圍、預估請求量、希望的交付格式。 我們會回覆試用金鑰、對應範圍的端點文件,以及介接協助。
合理使用與支援
- 公開內容 API 目前未設速率限制。請將頻率控制在每秒約 1 次以內,
並設定可辨識的
User-Agent,讓我們在調整前能先聯絡到你。 - 回應可快取 10 分鐘,請遵循
Cache-Control而非持續輪詢。 - API 回傳的內容仍受網站條款規範,轉載時請標註來源為 LargitData。
- 破壞相容性的變更會改用新的版本前綴(
/api/v2/),/api/v1/的約定維持不變。
這個 API 沒有你需要的東西?
告訴我們你要做什麼。如果需要大量的社群、電商或新聞資料,需要地端部署, 或需要依你的流程量身設計的專屬端點,我們可以一起把規格談清楚。
來信 [email protected]