API Hop

文件目錄

API Hop 文件

LinkedIn 介面參考

透過 13 個需要驗證的 LinkedIn Web V2 介面查詢使用者與公司資料、貼文、職缺詳情、職缺搜尋結果和留言。

透過 13 個需要驗證的 LinkedIn Web V2 介面查詢使用者與公司資料、貼文、職缺詳情、職缺搜尋結果和留言。

身分驗證

在 Authorization 標頭中傳送 API Hop API Key。可用性取決於已啟用的閘道及金鑰權限;文件不代表正式環境已開放。

請求

同步操作使用 GET 查詢參數,不接受請求主體。未知欄位與重複的純量欄位會遭拒絕。只有標記為陣列的欄位允許重複鍵,例如 company_ids=1035&company_ids=1441。識別碼與游標須保留為字串,不要將大型整數識別碼轉為 JavaScript 數字。選填空值會被省略。

計費

同步操作:使用者資料、公司資料與貼文詳情每次成功請求為 $0.008(8000 credits),其餘 5 個操作為 $0.05(50000 credits)。這是預設客戶價格,帳戶專屬價格優先。每次請求的分頁單獨計費,不依項目數收費。上游失敗會釋放預扣,結算失敗不會觸發第二次上游呼叫。

分頁與限制

同步操作:使用者貼文僅傳回最新 50 筆:start 與 pagination_token 均無效,即使回應包含權杖也不能翻頁。公司貼文使用 start=0、50、100 等位移,pagination_token 無效。職缺搜尋使用 start=0、25、50 等位移。留言支援從 1 開始的 page 與 pagination_token。不會自動翻頁,60 秒逾時且不自動重試。供應商提示資源不足可能造成間歇性失敗。

範圍

支援 8 個同步 Web V2 操作及 5 個非同步任務操作。以 POST 和含 url 的 JSON 建立使用者資料、公司資料或貼文詳情任務,回傳 HTTP 202 及字串形式的平台十進位任務 ID。GET 狀態與結果僅供同一租戶免費讀取;不存在、其他租戶或其他產品的任務皆回傳 404。狀態回應不含 result;完成前結果為 null。建立時預扣,成功後僅結算一次,預設 $0.008 / 8000 credits;失敗或 30 分鐘逾時釋放預扣。背景每 5 秒輪詢,處理中回應含 Retry-After: 5。結果儲存在平台任務內。使用平台 ID,不可使用供應商任務 ID;提交結果不確定時不會自動重送。 完成後資料位於 result.records。超出 JavaScript 安全範圍的整數以十進位字串儲存及回傳。範例僅供說明,並非實際驗收結果。

使用者資料

web_v2-get_user_profile

GET https://api.apihop.ai/v1/linkedin/web-v2/users/profile

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/users/profile" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/in/williamhgates/"

使用者貼文

web_v2-get_user_posts

GET https://api.apihop.ai/v1/linkedin/web-v2/users/posts

每次成功請求價格: $0.05 (50000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
type否貼文、曾留言的貼文或曾按讚的貼文; string; posts, comments, reactions; 預設值: posts
start否位移量;依各介面限制; integer; >= 0
pagination_token否分頁權杖;依各介面限制; string
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/users/posts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/in/williamhgates/"

公司資料

web_v2-get_company_profile

GET https://api.apihop.ai/v1/linkedin/web-v2/companies/profile

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/companies/profile" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/company/microsoft/"

公司貼文

web_v2-get_company_posts

GET https://api.apihop.ai/v1/linkedin/web-v2/companies/posts

每次成功請求價格: $0.05 (50000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
start否位移量;依各介面限制; integer; >= 0
pagination_token否分頁權杖;依各介面限制; string
sort_by否排序方式; string; top, recent
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/companies/posts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/company/microsoft/"

職缺詳情

web_v2-get_job_detail

GET https://api.apihop.ai/v1/linkedin/web-v2/jobs/detail

每次成功請求價格: $0.05 (50000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
include_skills否包含技能要求; boolean; 預設值: false
include_hiring_team否包含招募團隊; boolean; 預設值: false
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/jobs/detail" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/jobs/view/software-engineer-at-pave-4310512612/"

web_v2-search_jobs

GET https://api.apihop.ai/v1/linkedin/web-v2/jobs/search

每次成功請求價格: $0.05 (50000 credits).

欄位必填約束
keywords否搜尋關鍵字; string
geo_code否地區識別碼;92000000 表示全球; integer; 精確整數識別碼
date_posted否刊登時間篩選; string; Any time, Past month, Past week, Past 24 hours
experience_levels否經驗等級; string[]; 重複查詢鍵; Internship, Entry level, Associate, Mid-Senior level, Director, Executive
company_ids否公司識別碼; integer[]; 重複查詢鍵; 精確整數識別碼
title_ids否職稱識別碼; integer[]; 重複查詢鍵; 精確整數識別碼
onsite_remotes否工作地點類型; string[]; 重複查詢鍵; On-site, Remote, Hybrid
functions否職能; string[]; 重複查詢鍵
industries否產業; string[]; 重複查詢鍵
job_types否僱用類型; string[]; 重複查詢鍵; Full-time, Part-time, Contract, Temporary, Internship, Volunteer
sort_by否排序方式; string; Most relevant, Most recent
easy_apply否僅限快速應徵職缺; boolean; 預設值: false
under_10_applicants否僅限應徵人數少於 10 的職缺; boolean; 預設值: false
start否位移量;依各介面限制; integer; >= 0
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/jobs/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "keywords=data analyst" \
  --data-urlencode "company_ids=1035" \
  --data-urlencode "company_ids=1441"

貼文詳情

web_v2-get_post_detail

GET https://api.apihop.ai/v1/linkedin/web-v2/posts/detail

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/posts/detail" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/posts/orlenchner_scrapecon-activity-7180537307521769472-oSYN"

貼文留言

web_v2-get_post_comments

GET https://api.apihop.ai/v1/linkedin/web-v2/posts/comments

每次成功請求價格: $0.05 (50000 credits).

欄位必填約束
urn是貼文 activity URN; string
sort_by否排序方式; string; Most relevant, Most recent
page否頁碼,從 1 開始; integer; >= 1
pagination_token否分頁權杖;依各介面限制; string
share_urn否分享貼文的 share URN; string
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/posts/comments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "urn=7267273010393358336"

建立使用者資料任務

web_v2-create_user_profile_task

POST https://api.apihop.ai/v1/linkedin/web-v2/users/profile/tasks

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl -X POST "https://api.apihop.ai/v1/linkedin/web-v2/users/profile/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/in/williamhgates/"}'
http
HTTP/1.1 202 Accepted
Location: /v1/linkedin/web-v2/tasks/3850699893338385742
Retry-After: 5
Content-Type: application/json

{"success":true,"data":{"id":"3850699893338385742","status":"PROCESSING","result":null},"requestId":"example-request"}

建立公司資料任務

web_v2-create_company_profile_task

POST https://api.apihop.ai/v1/linkedin/web-v2/companies/profile/tasks

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl -X POST "https://api.apihop.ai/v1/linkedin/web-v2/companies/profile/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/company/microsoft/"}'
http
HTTP/1.1 202 Accepted
Location: /v1/linkedin/web-v2/tasks/3850699893338385742
Retry-After: 5
Content-Type: application/json

{"success":true,"data":{"id":"3850699893338385742","status":"PROCESSING","result":null},"requestId":"example-request"}

建立貼文詳情任務

web_v2-create_post_detail_task

POST https://api.apihop.ai/v1/linkedin/web-v2/posts/detail/tasks

每次成功請求價格: $0.008 (8000 credits).

欄位必填約束
url是LinkedIn 完整 URL; string
bash
curl -X POST "https://api.apihop.ai/v1/linkedin/web-v2/posts/detail/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/posts/orlenchner_scrapecon-activity-7180537307521769472-oSYN"}'
http
HTTP/1.1 202 Accepted
Location: /v1/linkedin/web-v2/tasks/3850699893338385742
Retry-After: 5
Content-Type: application/json

{"success":true,"data":{"id":"3850699893338385742","status":"PROCESSING","result":null},"requestId":"example-request"}

任務狀態

web_v2-get_task_status

GET https://api.apihop.ai/v1/linkedin/web-v2/tasks/:task_id

每次成功請求價格: $0 (0 credits).

欄位必填約束
task_id是URL 路徑中的平台任務 ID;十進位字串,非供應商 ID; string; 精確整數識別碼
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/tasks/397282151069614080" \
  -H "Authorization: Bearer YOUR_API_KEY"
http
HTTP/1.1 200 OK
Retry-After: 5
Content-Type: application/json

{"success":true,"data":{"id":"3850699893338385742","status":"PROCESSING"},"requestId":"example-request"}

任務結果

web_v2-get_task_result

GET https://api.apihop.ai/v1/linkedin/web-v2/tasks/:task_id/result

每次成功請求價格: $0 (0 credits).

欄位必填約束
task_id是URL 路徑中的平台任務 ID;十進位字串,非供應商 ID; string; 精確整數識別碼
bash
curl --get "https://api.apihop.ai/v1/linkedin/web-v2/tasks/397282151069614080/result" \
  -H "Authorization: Bearer YOUR_API_KEY"
http
HTTP/1.1 200 OK
Retry-After: 5
Content-Type: application/json

{"success":true,"data":{"id":"3850699893338385742","status":"PROCESSING","result":null},"requestId":"example-request"}
json
{"success":true,"data":{"id":"3850699893338385742","status":"COMPLETED","result":{"records":[]}},"requestId":"example-request"}

回應

同步操作:保留原始 JSON 的 code/data 結構與數字精度,各介面回應結構不同。HTTP 200 本身不代表成功:業務錯誤及含 error/error_code 的錯誤紀錄會遭拒絕。成功的空結果仍會計費。以下僅為說明性回應,並非實際驗收結果。

json
{"code":200,"data":[]}

錯誤

HTTP 400:參數無效;401:驗證失敗;402:餘額不足;403:無閘道權限;405:不支援的方法;408:請求取消;429:限流;502/503/504:供應商故障、設定不可用或逾時。排查時請保留 X-Request-Id。

來源

於 2026-10-31 核對官方 OpenAPI V5.3.2 與目前端點價格。來源證明介面契約和價格,不代表每個端點均已通過實際呼叫驗收。

TikHub · OpenAPI · 價格