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).
您的输出将显示在这里
完成输入,然后点击运行。
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.
开始构建
具备统一身份验证和使用情况跟踪的平台 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 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_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 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
LinkedIn Ads Library此 API 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
问题
向 https://api.sandbase.ai/v1/api/linkedin/ads 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.0331,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:url (string)。 可选:limit (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。LinkedIn Ads Library 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 LinkedIn API 访问权限。