Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

LinkedIn Ad Search

API 文档
https://api.sandbase.ai/v1/api/linkedin/ads-search

Search the LinkedIn Ad Library by company or keyword and list matching ads (advertiser, headline, creative text, format, CTA, and run dates) with pagination.

价格
起价 $0.0012美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 7 个可选

Playground

输入
Company name to search (e.g. "microsoft").
Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.
Keyword term for the ad search.
LinkedIn company identifier.
Comma-separated two-letter country codes (e.g. "US,CA,MX").
Search start date in YYYY-MM-DD format. An earlier date is moved up to one year ago in UTC when your range overlaps LinkedIn's accepted dates.
Opaque pagination token from a previous response's nextCursor.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

LinkedIn Ad Search API

This API searches the LinkedIn Ad Library and returns a page of matching ads. Each ad includes the advertiser, headline, body text, format, call to action, run dates and impression range. Send a company name, a companyId or a keyword, and optionally narrow the results by country and date range.

Use cases

  • Track which ads a competitor runs on LinkedIn and how their messaging changes over time.
  • Collect ad creative text and headlines for a swipe file or messaging research.
  • Check which countries and date ranges a company targets by filtering with countries, startDate and endDate.
  • Compare the ad formats a brand uses, such as single image and carousel ads.

Request

curl -X POST "https://api.sandbase.ai/v1/api/linkedin/ads-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company": "microsoft"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
companystringNoCompany name to search (e.g. "microsoft").
companyIdstringNoLinkedIn company identifier.
countriesstringNoComma-separated two-letter country codes (e.g. "US,CA,MX").
endDatestringNoSearch end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC,
keywordstringNoKeyword term for the ad search.
paginationTokenstringNoOpaque pagination token from a previous response's nextCursor.
startDatestringNoSearch start date in YYYY-MM-DD format. An earlier date is moved up to one year ago in UTC when your range overlaps LinkedIn's accepted dates.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "ads": [
      {
        "adType": "Single Image Ad",
        "advertiser": "Microsoft",
        "advertiserLinkedinPage": "https://www.linkedin.com/company/1035",
        "advertiserLogo": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/B5…",
        "cta": "Registrieren",
        "description": "Nehmen Sie am 10. November beim Microsoft Frontier Transformation Day in Wien te…",
        "destinationUrl": "https://msevents.microsoft.com/event?id=4123375389&wt.mc_id=3084764_QSG_PD_SCL_6…",
        "endDate": "2026-11-03T00:00:00.000Z",
        "headline": "Frontier Transformation Day | 10. Nov.",
        "id": "1624217084",
        "startDate": "2026-10-30T00:00:00.000Z",
        "totalImpressions": "10k-20k"
      }
    ],
    "nextCursor": "1624207074-1793359876270",
    "totalAds": 26901
  },
  "found": true
}

Response fields

FieldMeaning
data.ads[].idAd ID. Use it to build or look up the ad detail page.
data.ads[].urlLink to the ad's page in the LinkedIn Ad Library.
data.ads[].advertiserName of the advertiser running the ad.
data.ads[].advertiserLinkedinPageURL of the advertiser's LinkedIn company page. The number at the end is the LinkedIn company ID.
data.ads[].adTypeAd format, for example Single Image Ad or Carousel Ad.
data.ads[].headline / data.ads[].description / data.ads[].ctaHeadline, body text and call-to-action label of the ad. They are in the ad's own language and can be empty strings.
data.ads[].destinationUrlLanding page URL the ad links to. It is empty for some ads.
data.ads[].startDate / data.ads[].endDateISO 8601 timestamps for when the ad ran. They are empty strings when the library shows no dates.
data.ads[].totalImpressionsImpression range as a text bucket, for example 10k-20k. It is empty when not shown.
data.nextCursorToken for the next page of results.
data.totalAdsTotal number of ads that match the search.

Notes

  • Send data.nextCursor as paginationToken in the next request to get the following page.
  • Dates use the YYYY-MM-DD format in requests. Ad dates in the response are full ISO timestamps.
  • Some ads return empty strings for headline, cta, endDate and totalImpressions, so check for blanks before you use them.
  • To get more detail on a single ad, pass its id to LinkedIn Ad Details.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
LinkedIn每次调用从 $0.0012 起JSON
LinkedIn每次调用从 $0.0012 起JSON
LinkedIn每次调用从 $0.0331 起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

问题

常见问题

如何使用 LinkedIn Ad Search API?

向 https://api.sandbase.ai/v1/api/linkedin/ads-search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

LinkedIn Ad Search API 的价格是多少?

起价每次调用 $0.0012,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

LinkedIn Ad Search API 接受哪些参数?

无需参数。 可选:company (string), endDate (string), keyword (string), companyId (string), countries (string) 和 startDate (string) 以及另外 1 项。 Parameters 表和本页的 Playground 列出了每个字段。

LinkedIn Ad Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 LinkedIn 开发者账户或 API key 吗?

不需要。LinkedIn Ad Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 LinkedIn API 访问权限。