Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

LinkedIn Ad Search

Documentación de la 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.

Precio
Desde $0.0012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 7 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
LinkedInDesde $0.0012 por llamadaJSON
LinkedInDesde $0.0012 por llamadaJSON
LinkedInDesde $0.0331 por llamadaJSON
LinkedInDesde $0.00569 por llamadaJSON
LinkedInDesde $0.0026 por llamadaJSON
LinkedInDesde $0.0026 por llamadaJSON

Guías:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de LinkedIn Ad Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/linkedin/ads-search con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de LinkedIn Ad Search?

Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de LinkedIn Ad Search?

No se requieren parámetros. Opcionales: company (string), endDate (string), keyword (string), companyId (string), countries (string) y startDate (string) y 1 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de LinkedIn Ad Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de LinkedIn?

No. LinkedIn Ad Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de LinkedIn por separado.