urlstringbắt buộc
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).
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
urlstringbắt buộcLinkedIn 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.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
LinkedIn Ads LibraryAPI này LinkedIn | Từ $0.0331 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.00569 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0026 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0026 mỗi lần gọi | JSON |
Hướng dẫn:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/linkedin/ads với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
Từ $0.0331 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: url (string). Tùy chọn: limit (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. LinkedIn Ads Library chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của LinkedIn.