GET /v1/linkedin/stored/ad

LinkedIn stored ad API: a saved Ad Library ad by ad ID

Returns one Ad Library ad we have stored: advertiser, payer, format, ad copy, media and destination URLs, run dates, impression range and targeting. Send q as the numeric ad id. It reads our database only, so a miss is a 404, is not billed and never starts a crawl; read a fresh one with the LinkedIn ad API.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/linkedin/stored/ad?q=1498307266' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/linkedin/stored/ad",
    params={
        "q": "1498307266",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringThe numeric Ad Library ad id. Example 1498307266.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "linkedin_ad_id": "1498307266",
    "advertiser_name": "Kent Kaufman",
    "advertiser_type": "member",
    "advertiser_url": "https://www.linkedin.com/in/kent-kaufman-b475552",
    "advertiser_native_id": null,
    "payer": "KLK Consulting",
    "format": "Single Image Ad",
    "ad_copy": "Two AI Stumbles in One Week: Why Values-Based Leadership Must Be Distributed\n\nIn the space of just three days this month, two major AI companies highlighted a critical weakness in how leadership is practiced today.\n\nOn July 10, Apple filed …",
    "media_urls": [
      "https://media.licdn.com/dms/image/v2/D5622AQHBziNgyJBv3g/feedshare-image-high-res/B56Z9THumEGUAU-/0/1783805962934?e=2147483647&v=beta&t=9FRvZ2QyiNGOqxpEoef85QqhwgJ5NoHDVXvMcMP_now"
    ],
    "destination_urls": [
      "https://radi8.it/nqanzN8"
    ],
    "impression_start": null,
    "impression_end": null,
    "impressions_exact": null,
    "impressions_min": null,
    "impressions_max": null,
    "targeting": {},
    "restricted": false,
    "first_scraped_at": "2026-08-10T09:04:30.801843Z",
    "last_scraped_at": "2026-10-27T20:42:43.511754Z"
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$0.9790",
    "request_id": "req_3c0c926b2012bc626cca2ba98166f318"
  }
}

How it works

One stored Ad Library ad.

Strictly DB: this reads what the crawler already stored and never crawls. A miss is a 404 and is not billed. Fetch a fresh one with /v1/linkedin/ad.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404The ad is not stored. You are not charged.
429Over 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.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.