Advertising5 min readBy Purrkey teamUpdated

How to look up a LinkedIn ad by URL

Get advertiser, creative, format, CTA, run dates, and impressions for a single LinkedIn Ad Library ad from its URL

On this page

You have 12 LinkedIn Ad Library URLs from a competitor campaign and need advertiser, creative, format, CTA, run dates and impression counts for each ad before planning your next campaign. Use anyapi.linkedin.ad on one URL per call, then assemble a table to compare offers, calls to action and impression counts. No run has been executed for this article, so the worksheet below is a design, not a result

The deliverable table

The table is one row per Ad Library URL. The fields under data that fill the row are id, advertiser, advertiserLinkedinPage, headline, description, adType, cta, startDate, endDate and totalImpressions. Add a campaign note column for your own comparison of the offer or action

idadvertiseradvertiserLinkedinPageheadlinedescriptionadTypectastartDateendDatetotalImpressionscampaign note
(from data.id)(from data.advertiser)(page URL)(headline text)(description text)(ad type)(CTA)(ISO 8601 date)(ISO 8601 date)(impression string)(your note)

Values here are placeholders showing the shape. The campaign note is not a contract field; it is where you record the offer or call to action you want to compare

Put the 12 rows in the same order as your URL list so you can check coverage. A row with found: false stays in the table and gets not_found in the note column. Do not delete the row

Input: one Ad Library URL per call

The catalog input lists url as required. The contract's input example is a LinkedIn Ad Library detail URL. The invented Example for this guide is a placeholder detail URL; replace it with the LinkedIn Ad Library detail URL for the ad you want to inspect. The invented Example URL is not from your 12 URLs

Agents call it through POST /v1/runs with toolId anyapi.linkedin.ad. One call looks up one ad. A missing ad returns found: false with reason: not_found; the contract says a found: false answer is a successful call, not an error

Reading the output fields

Start with found. When it is true, data holds the ad record. When it is false, reason is not_found and there is no ad record to read

Use data.id as the row key and data.advertiser with data.advertiserLinkedinPage to identify the advertiser. Read data.headline, data.description, data.destinationUrl and data.cta to compare the offer wording and the action the ad asks for

data.adType gives the format. data.startDate and data.endDate are ISO 8601 dates for the run window, and data.totalImpressions is a string for the impression count. Keep data.url if you need the canonical Ad Library URL for the row

For side-by-side comparison after this lookup, the companion guide is Compare competitor ads

The campaign note column is where you write the offer angle you want to compare, such as the wording in data.headline or the action in data.cta. Keep the note short so the table stays readable

The agent prompt

The prompt below uses one invented Example URL. Replace it with your list of 12 Ad Library detail URLs. It tells the agent to check the current inputs and price before running and to return the table

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to look up one LinkedIn Ad Library ad per URL. Check the current inputs and price of anyapi.linkedin.ad before running anything. Call anyapi.linkedin.ad once for each URL in the list. Return a table with columns id, advertiser, advertiserLinkedinPage, headline, description, adType, cta, startDate, endDate, totalImpressions and campaign note. For a URL with found: false and reason: not_found, keep the row and put not_found in the campaign note. Do not invent values for empty fields. Use this Example URL as the first row and replace the list with your 12 Ad Library detail URLs:

[your first Ad Library detail URL]

Estimated tool cost

Prices come from the Purrkey catalog read on November 12, 2026. anyapi.linkedin.ad is listed at up to $0.00253 per call under unit max_call, which the catalog explains as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
Single ad lookupcalls x max price$0.00253 per call1$0.00253
Ten ad lookupscalls x max price$0.00253 per call10$0.0253

The 12-URL run in this guide is 12 calls at the same ceiling, or $0.03036. A found: false answer is still a successful call, so keep it in your call count. Use the single-call row to test one URL before you run the rest of the list

Next step

Open the LinkedIn ad tool page and run the first of the 12 URLs through anyapi.linkedin.ad

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with LinkedIn.
Explore LinkedIn tools and pricing

FAQ

How do I look up a LinkedIn ad by URL?

Copy the LinkedIn Ad Library detail URL for the ad and send it as url to anyapi.linkedin.ad. The response gives advertiser, headline, description, format, CTA, run dates, and impression count.

What input does anyapi.linkedin.ad take?

The catalog input lists url as required, with an example LinkedIn Ad Library detail URL. The article's example URL is invented and labeled Example.

What happens if the LinkedIn ad is not found?

The response has found: false and a reason of not found. The contract says a found: false answer is a successful call, not an error.

What fields should I compare across LinkedIn ads?

Use data.advertiser, data.headline, data.description, data.cta, data.startDate, data.endDate, data.totalImpressions, and data.adType in the deliverable table. data.id keys the row.

How much does one LinkedIn ad lookup cost?

The catalog lists anyapi.linkedin.ad at up to $0.00253 per call under its maximum per-call unit, which means "Maximum per call. Successful runs settle at the actual AnyAPI charge." One lookup is 1 call, so the ceiling is $0.00253. Model fees for the agent are not counted.

Can I look up more than one LinkedIn ad in a single call?

No. One call looks up one ad. A missing ad returns found: false with a not-found reason and is still a successful call.

What URL should I pass to anyapi.linkedin.ad?

Pass the LinkedIn Ad Library detail URL for the ad you want to inspect. Replace any example URL with your own detail URL.

Next step

Try this with LinkedIn

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See LinkedIn tools

Share this article