Google Ads Transparency ads by advertiser API

An advertiser's public ads by advertiser id or website domain.

GETapi.socialscrape.io/v1/google/ad-library/company/ads
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

Ids, previews and first and last shown dates when Google gives them.

You send one of id or domain.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/google/ad-library/company/ads" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'id=AR16735076323512287233' \
  --data-urlencode 'platform=youtube' \
  --data-urlencode 'region=US'
Python
import os
import requests

params = {
    "id": "AR16735076323512287233",
    "platform": "youtube",
    "region": "US",
}
res = requests.get(
    "https://api.socialscrape.io/v1/google/ad-library/company/ads",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/google/ad-library/company/ads");
url.search = new URLSearchParams({
  id: "AR16735076323512287233",
  platform: "youtube",
  region: "US",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Google Ads Transparency ads by advertiser",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/google/ad-library/company/ads",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "id",
              "value": "AR16735076323512287233"
            },
            {
              "name": "platform",
              "value": "youtube"
            },
            {
              "name": "region",
              "value": "US"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
idstringone ofAdvertiser id (AR...). Also accepted as advertiser_id, advertiserId.
domainstringone ofAdvertiser's website domain.
topicstringAll ads or political ads. Political needs a `region`.
platformstringWhere the ad ran.
formatstringCreative format.
start_datestringAds shown from this date, YYYY-MM-DD.
end_datestringAds shown up to this date, YYYY-MM-DD.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_54daf7d2f10a025e49047c46",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "ad",
        "platform": "google",
        "id": "CR15282208055438082049",
        "url": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR15282208055438082049",
        "advertiser": {
          "object": "advertiser",
          "platform": "google",
          "id": "AR16735076323512287233",
          "name": "Nike, Inc.",
          "url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
          "page_id": null,
          "country": null,
          "verified": null,
          "ad_count": null,
          "extra": null
        },
        "status": "unknown",
        "started_at": "2026-02-16T22:01:29Z",
        "ended_at": null,
        "title": null,
        "body": null,
        "cta_text": null,
        "landing_url": null,
        "format": "video",
        "media": {
          "thumbnail_url": null,
          "video_url": null,
          "audio_url": null,
          "image_urls": null,
          "width": null,
          "height": null
        },
        "regions": null,
        "publisher_platforms": null,
        "impressions": null,
        "spend": null,
        "extra": {
          "last_shown_at": "2026-08-11T20:43:40Z",
          "preview_url": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCustomerId=8804020668&creativeId=79729681...",
          "region_count": 177
        }
      },
      {
        "object": "ad",
        "platform": "google",
        "id": "CR12425799991778344961",
        "url": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR12425799991778344961",
        "advertiser": {
          "object": "advertiser",
          "platform": "google",
          "id": "AR16735076323512287233",
          "name": "Nike, Inc.",
          "url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
          "page_id": null,
          "country": null,
          "verified": null,
          "ad_count": null,
          "extra": null
        },
        "status": "unknown",
        "started_at": "2026-02-16T22:02:36Z",
        "ended_at": null,
        "title": null,
        "body": null,
        "cta_text": null,
        "landing_url": null,
        "format": "video",
        "media": {
          "thumbnail_url": null,
          "video_url": null,
          "audio_url": null,
          "image_urls": null,
          "width": null,
          "height": null
        },
        "regions": null,
        "publisher_platforms": null,
        "impressions": null,
        "spend": null,
        "extra": {
          "last_shown_at": "2026-08-11T20:43:40Z",
          "preview_url": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCustomerId=8804020668&creativeId=79729678...",
          "region_count": 177
        }
      }
    ],
    "cursor": null,
    "has_more": false,
    "parent": {
      "object": "advertiser",
      "platform": "google",
      "id": "AR16735076323512287233",
      "name": "Nike, Inc.",
      "url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
      "page_id": null,
      "country": null,
      "verified": null,
      "ad_count": 12,
      "extra": null
    }
  },
  "cursor": null,
  "has_more": false
}

Fields

A page of results. Each entry in items is a Ad. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"ad"
platformPlatformyesthe ad library's platform
idstringyes
urlstring or null
advertiserAdvertiser or null
status"active" or "inactive" or "unknown"
started_atstring (ISO 8601 date-time) or null
ended_atstring (ISO 8601 date-time) or null
titlestring or null
bodystring or null
cta_textstring or null
landing_urlstring or null
formatstring or null"image" | "video" | "carousel" | "text" | platform-specific
mediaMedia
Show the other 5 fields
FieldTypeAlwaysNotes
regionsstring[] or null
publisher_platformsstring[] or nullwhere it ran: facebook, instagram, ...
impressionsRange or null
spendRange or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The preview Python client has client.google.ad_library_company_ads(...) and the TypeScript client client.google.adLibraryCompanyAds(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access