从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。
文档
LinkedIn Ad Library API - Search Ads and Ad Detail
试用Search ads running across LinkedIn by keyword and/or advertiser company id, returning each ad's advertiser, ad copy, format, promoted label, thumbnail and a detail link, then open one ad in full with its media, headline, who paid for it and the advertiser's company URL. 2 endpoints, 6 credits each, structured JSON.
它能做什么
Search the ads running across LinkedIn by keyword and/or advertiser, then open any ad in full with its creative, headline, format, who paid for it and the advertiser's company URL. Both endpoints return structured JSON.
技能文档
LinkedIn Ad Library via Scavio
Search the ads running across LinkedIn by keyword and/or advertiser, then open any ad in full with its creative, headline, format, who paid for it and the advertiser's company URL. Both endpoints return structured JSON.
When to trigger
Use this skill when the user asks to:
- Find LinkedIn ads for a keyword, topic or advertiser
- See what ads a company is running on LinkedIn and pull the creative
- Build a competitor swipe file of B2B / sponsored-content ads
- Get one ad in full: advertiser, ad copy, headline, format, media and who paid for it
- Do paid-social, demand-gen or ad-intelligence research on LinkedIn
Setup
Get a free API key at scavio.dev (50 free credits to get started, no card required):
export SCAVIO_API_KEY=sk_live_your_key
Every request is a POST with a JSON body and:
Authorization: Bearer $SCAVIO_API_KEY
Endpoints
Base URL: https://api.scavio.dev. Every LinkedIn Ads endpoint costs 6 credits.
| Endpoint | Credits | What it returns |
|---|---|---|
POST /api/v1/linkedin/ads/search | 6 | The ads on the page for a keyword and/or advertiser: ad_id, advertiser, ad copy, format, creative type, sponsored flag, headline, thumbnail, advertiser logo, and a detail link |
POST /api/v1/linkedin/ads/detail | 6 | One ad in full: advertiser and company URL, who paid for it, ad copy, headline, format, the media items, and a detail link |
Parameters
ads/search
Provide a keyword or a company_id (or both).
| Parameter | Type | Default | Description |
|---|---|---|---|
keyword | string | -- | Keyword to search ads by |
company_id | string | -- | The advertiser's numeric LinkedIn company id |
countries | string or string[] | -- | One or more 2-letter country codes to restrict results to |
date_option | string | -- | Restrict to ads seen within a recent time window |
ads/detail
Provide an ad_id or a url (one is required).
| Parameter | Type | Default | Description |
|---|---|---|---|
ad_id | string | -- | The ad's numeric id, as carried by every search result |
url | string | -- | A full ad detail URL (linkedin.com/ad-library/detail/...), as an alternative to ad_id |
Scope notes
ads/searchrequires a keyword or a company_id - a bare call with neither is rejected.searchreturns the ads on one page and atotal_seencount; it does not deep-paginate the whole library.company_idis the numeric LinkedIn company id (the digits in a company URL likelinkedin.com/company/1035), not the vanity handle.detailcarriesimpressionsanddemographicsonly where LinkedIn publishes them - for most non-political ads these arenull, andabout.run_datesmay benulltoo.- The
thumbnail,advertiser_logoandmedia[].urlare LinkedIn CDN links - fetch them promptly.
Examples
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. Search ads by keyword, restricted to the US
search = requests.post(f"{BASE}/api/v1/linkedin/ads/search", headers=HEADERS,
json={"keyword": "ai search", "countries": "US"}).json()
print(search["data"]["total_seen"], "ads seen")
for ad in search["data"]["ads"]:
print(ad["ad_id"], ad["advertiser"], ad["format"])
# 2. Every ad from one advertiser, by numeric company id
by_company = requests.post(f"{BASE}/api/v1/linkedin/ads/search", headers=HEADERS,
json={"company_id": "1035"}).json()
# 3. One ad in full, by an id from search
ad_id = search["data"]["ads"][0]["ad_id"]
detail = requests.post(f"{BASE}/api/v1/linkedin/ads/detail", headers=HEADERS,
json={"ad_id": ad_id}).json()
d = detail["data"]
print(d["advertiser"], d["paid_for_by"], d["headline"])
curl:
curl -s https://api.scavio.dev/api/v1/linkedin/ads/search \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"ai search","countries":"US"}'
Response shape
Every response uses the envelope { data, response_time, credits_used, credits_remaining }. On search, data carries ads[] plus a total_seen count; on detail, data is the ad object with a media[] array and an about block.
Guardrails
- Every LinkedIn Ads call is 6 credits - more than the other social endpoints, so paginate deliberately.
- Never fabricate advertisers, ad copy, headlines or media. Only return what the API returned.
impressionsanddemographicsare usuallynull- do not invent spend or reach figures when they are not present.- CDN media links expire - fetch them promptly rather than storing the URL.
Failure handling
400means an invalid request - most oftensearchcalled with neitherkeywordnorcompany_id, ordetailwith neitherad_idnorurl. Fix and retry.401means the API key is invalid or missing. CheckSCAVIO_API_KEY.404means the ad id or URL was not found.429means rate or usage limit exceeded. Wait before retrying. See rate limits.502/503mean the source is temporarily unavailable - wait a few seconds and retry.- If
SCAVIO_API_KEYis not set, prompt the user to export it before continuing.
相关技能
把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。
诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
为自然搜索排名提供站点审计、内容撰写与竞品分析。
scavio-ai 的更多技能
浏览全部技能通过托管 OAuth 接入 GitHub REST API,覆盖仓库、Issue、PR、Commit、分支与用户等接口。
Pull a Facebook page's profile, posts, reels and photos, one post with its comments, a single reel/video with downloadable URLs, a public group and its posts, an event, and hashtag posts. 11 endpoints, 1 credit each, structured JSON.
Search the Meta Ad Library by keyword or Facebook Page id and walk full cursor pagination through every ad, with creative, run dates, platforms and political spend. 3 endpoints, 1 credit per page.
Search YouTube and retrieve videos, shorts, comments, transcripts, streams, channel data, and community posts with their comments as structured JSON. 17 endpoints across video and channel surfaces.
Search live or SOLD eBay listings, read a listing in full, and look up a seller's profile card as structured JSON. 3 endpoints, 1 credit each. Sold-listing search is the price-research feature eBay itself hides.
Search Google Hotels for a destination and dates, then fetch per-property vendor pricing and full details — as structured JSON. Price, rating, class, and amenity filters. v2 engine, 1 credit per request.