urlstringobligatoire
LinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035).
https://api.sandbase.ai/v1/api/linkedin/adsSearch the LinkedIn Ad Library by search URL and list the matching ads (advertiser, creative text, format).
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a list of ads from the LinkedIn Ad Library that match a search URL or a LinkedIn company page URL. Each ad includes the advertiser name, the ad text, the ad format, and a link to the ad detail page. The url parameter is required, and limit caps the number of ads returned (1-20).
VIDEO, SINGLE_IMAGE and MESSAGE that a brand uses.curl -X POST "https://api.sandbase.ai/v1/api/linkedin/ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/company/stripe", "limit": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | LinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035). |
limit | integer | No | Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"advertiser": "Stripe",
"advertiserLogo": "https://media.licdn.com/dms/image/v2/D560BAQE2ZfJyfn-VCg/company-logo_100_100/B5…",
"format": "MESSAGE",
"id": "1662503636",
"image": "",
"text": "%FIRSTNAME% 様、Stripe Japan チームの Youngah Lee と申します。11月24日 (火) に開催される SaaS Platfor…",
"url": "https://www.linkedin.com/ad-library/detail/1662503636"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].advertiser | Name of the company that runs the ad. |
data.items[].advertiserLogo | URL of the advertiser logo image. It can be an empty string. |
data.items[].format | Ad format, for example MESSAGE, VIDEO or SINGLE_IMAGE. |
data.items[].id | ID of the ad in the LinkedIn Ad Library, given as a string. |
data.items[].text | Creative text of the ad. Long text may end with an ellipsis. |
data.items[].image | URL of the ad image. It is an empty string when the ad has no image, such as MESSAGE and VIDEO ads in this sample. |
data.items[].url | Link to the ad detail page in the LinkedIn Ad Library. |
found | true when the lookup returned results. |
https://www.linkedin.com/company/stripe, or an Ad Library search URL such as https://www.linkedin.com/ad-library/search?companyIds=1035.limit (maximum 20) to control how many ads come back.id value of an ad with LinkedIn Ad Details to get more on a single ad.Billed at the actual cost of each call, about $0.0331 for the request above. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/company/stripe",
"limit": 3
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
urlstringobligatoireLinkedIn Ad Library search URL or a LinkedIn company URL (e.g. https://www.linkedin.com/ad-library/search?companyIds=1035).
limitintegerMaximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
LinkedIn Ads LibraryCette API LinkedIn | À partir de $0.0331 par appel | JSON |
LinkedIn | À partir de $0.0012 par appel | JSON |
LinkedIn | À partir de $0.0012 par appel | JSON |
LinkedIn | À partir de $0.00569 par appel | JSON |
LinkedIn | À partir de $0.0026 par appel | JSON |
LinkedIn | À partir de $0.0026 par appel | JSON |
Guides :LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/linkedin/ads avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0331 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : url (string). Facultatif : limit (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. LinkedIn Ads Library fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API LinkedIn séparément.