Skip to main content

Ad Library Scraper — Python client

Collect supported Facebook, Meta, TikTok and Google ads; inspect creatives and advertisers. No login. Bulk export: JSON, CSV, Excel and API. PPE: from $1.8/1K ad creatives; usage extra.

This client starts the hosted Apify Actor, waits for completion and downloads Dataset records. It also reads SUMMARY and ERRORS when available. Source coverage and result fields depend on the Actor.

Install

pip install apivault-ad-library-scraper-facebook-tiktok-google-ads

Run

Set APIFY_TOKEN in your environment. Replace the example values with your own valid inputs from the Actor input form.

from apivault_ad_library_scraper_facebook_tiktok_google_ads import Client, WaitTimeout

client = Client()
actor_input = {
    "domains": [
        "REPLACE_WITH_YOUR_INPUT"
    ],
    "maxItems": 1
}
result = client.run(actor_input, max_total_charge_usd=0.05, max_rows=100)
print(result.run_id, len(result.rows), result.truncated)
print(result.summary)

An Apify account and token are required. The package has no subscription of its own; hosted runs are billed by Apify under the Actor pricing. The event charge cap may not include platform usage. Review the current price before changing it. max_rows limits the download, not the Actor collection or its charges; configure an Actor result limit too.

Resume and diagnostics

client.start(input) returns a run ID; client.wait(run_id) and client.result(run_id) resume an existing run. A WaitTimeout exposes run_id. Starting a run is never automatically retried. Use an existing run ID after a connection or waiting failure to avoid duplicate paid runs. Failed and aborted runs raise ActorError. No-match and partial results require inspecting summary and errors; diagnostic rows must not be mistaken for useful results.

Rows can be serialized as JSON or used in your own CSV/Excel pipeline. Native Dataset exports are available in Apify. Optional integrations and credentials depend on the Actor.

Hosted Actor · Source · PyPI

Metadata

Release files for apivault-ad-library-scraper-facebook-tiktok-google-ads 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apivault-ad-library-scraper-facebook-tiktok-google-ads 0.1.0
File Size Uploaded Provenance Actions
apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0.tar.gz 5.6 kB Without provenance Details for apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apivault-ad-library-scraper-facebook-tiktok-google-ads 0.1.0
File Interpreter ABI Platform Actions
apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0-py3-none-any.whl Python 3 none any Details for apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0-py3-none-any.whl

Total release size: 12.2 kB

Release files / apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0.tar.gz

Download URL apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ec4421a16d516673f3ed22ef15c74b1dd633bad078313c85ecdb414f06d40778
BLAKE2b-256 checksum
How to use checksums
e5b94f8b980463be9ddc6b2ea4321735127a49733ae5e16d0f1c920c8b89db16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0-py3-none-any.whl

Download URL apivault_ad_library_scraper_facebook_tiktok_google_ads-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
854605eba6afffd3f74592f63843cee8f5b6987c5c05e96a5001ce1875639aab
BLAKE2b-256 checksum
How to use checksums
d4c54f85fed7b287190c17b1cec1de1ab5b01a8db9a49ea98ffdf53d0c2cba4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for apivault-ad-library-scraper-facebook-tiktok-google-ads 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page