urlstringจำเป็น
LinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035).
https://api.sandbase.ai/v1/api/linkedin/adsSearch the LinkedIn Ad Library by search URL and list the matching ads (advertiser, creative text, format).
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a list of ads from the LinkedIn Ad Library that match a search URL or a LinkedIn company page URL. Each ad includes the advertiser name, the ad text, the ad format, and a link to the ad detail page. The url parameter is required, and limit caps the number of ads returned (1-20).
VIDEO, SINGLE_IMAGE and MESSAGE that a brand uses.curl -X POST "https://api.sandbase.ai/v1/api/linkedin/ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/company/stripe", "limit": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | LinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035). |
limit | integer | No | Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"advertiser": "Stripe",
"advertiserLogo": "https://media.licdn.com/dms/image/v2/D560BAQE2ZfJyfn-VCg/company-logo_100_100/B5…",
"format": "MESSAGE",
"id": "1662503636",
"image": "",
"text": "%FIRSTNAME% 様、Stripe Japan チームの Youngah Lee と申します。11月24日 (火) に開催される SaaS Platfor…",
"url": "https://www.linkedin.com/ad-library/detail/1662503636"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].advertiser | Name of the company that runs the ad. |
data.items[].advertiserLogo | URL of the advertiser logo image. It can be an empty string. |
data.items[].format | Ad format, for example MESSAGE, VIDEO or SINGLE_IMAGE. |
data.items[].id | ID of the ad in the LinkedIn Ad Library, given as a string. |
data.items[].text | Creative text of the ad. Long text may end with an ellipsis. |
data.items[].image | URL of the ad image. It is an empty string when the ad has no image, such as MESSAGE and VIDEO ads in this sample. |
data.items[].url | Link to the ad detail page in the LinkedIn Ad Library. |
found | true when the lookup returned results. |
https://www.linkedin.com/company/stripe, or an Ad Library search URL such as https://www.linkedin.com/ad-library/search?companyIds=1035.limit (maximum 20) to control how many ads come back.id value of an ad with LinkedIn Ad Details to get more on a single ad.Billed at the actual cost of each call, about $0.0331 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/company/stripe",
"limit": 3
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
urlstringจำเป็นLinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035).
limitintegerMaximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
LinkedIn Ads LibraryAPI นี้ LinkedIn | เริ่มต้นที่ $0.0331 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.00569 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0026 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0026 ต่อครั้ง | JSON |
คู่มือ:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/linkedin/ads โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0331 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: url (string). ตัวเลือก: limit (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น LinkedIn Ads Library ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง LinkedIn API แยกต่างหาก