GET /v1/linkedin/stored/company/ads
LinkedIn stored company ads API: saved Ad Library ads of an advertiser
Returns the Ad Library ads we have stored for one advertiser, newest first by first impression day: ad copy, format, payer, media, run dates, impression range and targeting. Send q as a company slug, URL or numeric id; a numeric q reads the advertiser id even when its company page is not stored. It reads our database only, so a miss is a 404, is not billed and never starts a crawl; collect more with the LinkedIn company ads API.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/linkedin/stored/company/ads?q=microsoft' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/linkedin/stored/company/ads",
params={
"q": "microsoft",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
q required | query | string | A company slug or linkedin.com/company URL, or its numeric company id. |
cursor | query | string | next_cursor from the previous page. |
limit | query | integer | Rows per page. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"ads": [
{
"linkedin_ad_id": "1611650554",
"advertiser_name": "Microsoft",
"advertiser_type": "company",
"advertiser_url": "https://www.linkedin.com/company/1035",
"advertiser_native_id": "1035",
"payer": "ZENITH UK (MEDIA) LIMITED",
"format": "Video Ad",
"ad_copy": "Every organization wants to move faster with AI. Every IT leader knows that speed without security, compliance and control doesn't last.\n\nJoin me at Microsoft Ignite, November 17–20, to see what's coming across AI and cloud first, and how c…",
"media_urls": [
"https://dms.licdn.com/playlist/vid/v2/D4E05AQG7J7AN_LabpQ/mp4-720p-30fp-crf28/B4EaFnsZgOGwCA-/0/1792741057150?e=2147483647&v=beta&t=SYTNC1_Is1NVNv_rTiMDdWJCRf_xrFydpIYCjmfiQdI",
"https://media.licdn.com/dms/image/v2/D4E05AQG7J7AN_LabpQ/videocover-high/B4EaFnsZgOGwBQ-/0/1792755330776?e=2147483647&v=beta&t=lleAG0LL5vSFmLHZf-N_4v12-gIGtSr5FxfigAhycPg"
],
"destination_urls": [
"https://lnkd.in/e78rdssQ"
],
"impression_start": "2026-10-23",
"impression_end": "2026-10-27",
"impressions_exact": null,
"impressions_min": 300000,
"impressions_max": 500000,
"targeting": {
"language": {
"includes": [
"English"
]
},
"location": {
"includes": [
"Greece",
"Türkiye",
"Italy"
]
},
"parameters": {
"job": {
"excluded": false,
"targeted": true
},
"company": {
"excluded": true,
"targeted": false
},
"audience": {
"excluded": false,
"targeted": false
},
"education": {
"excluded": false,
"targeted": false
},
"demographic": {
"excluded": false,
"targeted": false
},
"member_interests_and_traits": {
"excluded": false,
"targeted": false
}
}
},
"restricted": false,
"first_scraped_at": "2026-10-27T20:42:43.487790Z",
"last_scraped_at": "2026-10-27T20:42:43.487790Z"
},
{
"linkedin_ad_id": "1611641184",
"advertiser_name": "Microsoft",
"advertiser_type": "company",
"advertiser_url": "https://www.linkedin.com/company/1035",
"advertiser_native_id": "1035",
"payer": "ZENITH UK (MEDIA) LIMITED",
"format": "Single Image Ad",
"ad_copy": "What we announce at Ignite lands in the systems you already run. Hear from Microsoft leaders on what's changing, what it means for your technical teams, and how to deploy it securely. Register free to watch online.",
"media_urls": [
"https://media.licdn.com/dms/image/v2/D4E10AQHKw49ODozEZw/image-shrink_1280/B4EaFUPpTmHwAc-/0/1792414750135/EMEA_FY27_Q2_Ignite_EN_IMGbpng?e=2147483647&v=beta&t=v7iSxTDTpN3mu07ozhhpxzS1zhR_SbpFlt485AD_2nY"
],
"destination_urls": [
"https://register.ignite.microsoft.com/flow/microsoft/ignite27/welcome/page/welcome#:~:text=Digital%20pass,17%E2%80%9320,%202026&wt.mc_ID=msignite26_mcaps_fld_northeu_pd_scl_lin_0239?trk=ad_library_ad_preview_content_image",
"https://register.ignite.microsoft.com/flow/microsoft/ignite27/welcome/page/welcome#:~:text=Digital%20pass,17%E2%80%9320,%202026&wt.mc_ID=msignite26_mcaps_fld_northeu_pd_scl_lin_0239?trk=ad_library_ad_preview_headline_content"
],
"impression_start": "2026-10-23",
"impression_end": "2026-10-27",
"impressions_exact": null,
"impressions_min": 1000,
"impressions_max": 5000,
"targeting": {
"language": {
"includes": [
"English"
]
},
"location": {
"includes": [
"Finland",
"Poland",
"Denmark"
]
},
"parameters": {
"job": {
"excluded": false,
"targeted": true
},
"company": {
"excluded": true,
"targeted": false
},
"audience": {
"excluded": false,
"targeted": false
},
"education": {
"excluded": false,
"targeted": false
},
"demographic": {
"excluded": false,
"targeted": false
},
"member_interests_and_traits": {
"excluded": false,
"targeted": false
}
}
},
"restricted": false,
"first_scraped_at": "2026-10-27T20:42:43.487790Z",
"last_scraped_at": "2026-10-27T20:42:43.487790Z"
}
],
"next_cursor": "WzI2ODQsIjIwMjYtMTAtMjMiXQ",
"has_more": true
},
"meta": {
"cost": "$0.0005",
"balance": "$0.9820",
"request_id": "req_16eae095dda5a9a20895a3b622cb0a2e"
}
}How it works
The stored Ad Library ads of one advertiser, by first impression day. Newest first, with an opaque next_cursor while has_more is true; send it back as cursor. A numeric q reads the advertiser id even when its company page is not stored.
Strictly DB: this reads what the crawler already stored and never crawls. A miss is a 404 and is not billed. Collect more with /v1/linkedin/company_ads.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | The company is not stored. You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |