> An AI agent can get its own key, search the Meta, Google and TikTok ad libraries, and hand the account to its person with a claim link.

Web version: https://publicadsapi.com/use-cases/ai-agents · Sign up: https://publicadsapi.com/signup?ref=md · Last updated: 2026-11-22

# Ad research for AI agents

An AI agent can get its own key, search the Meta, Google and TikTok ad libraries, and hand the account to its person with a claim link.

Agents that research markets, write ad copy or watch competitors need real ads. Public Ads API lets an agent get started with no person signing up first.

## 1The agent gets its own key

`POST https://api.publicadsapi.com/v1/agent/signup`, with no key, returns a sandbox key and a claim link. `POST https://api.publicadsapi.com/v1/agent/live-key`, with that sandbox key, returns a live key with 50 free credits a month. See [API keys for AI agents](https://publicadsapi.com/docs/agents).

Agent signup

```
curl -X POST https://api.publicadsapi.com/v1/agent/signup \
  -H 'Content-Type: application/json' \
  -d '{"name": "research-agent", "use_case": "competitor ad research"}'
```

## 2The person keeps the account

The agent gives its person the `claim_url`. Once they sign in, the keys, calls and credits move into their account, and they can choose a plan.

## What an agent reads

-   [llms.txt](https://publicadsapi.com/llms.txt): every page, with what it answers.
-   [llms-full.txt](https://publicadsapi.com/llms-full.txt): the whole documentation in one file.
-   [openapi.json](https://publicadsapi.com/openapi.json): the full contract, one schema per platform’s search.
-   Every page has a Markdown copy: add `.md` to its address.

Every account starts with 100 free credits a month and a sandbox key, no card. [Get a free API key](https://publicadsapi.com/signup) or read the [quickstart](https://publicadsapi.com/docs/quickstart).

Questions

## Questions

### Can an AI agent use an ad library API without a person signing up?

Yes. Public Ads API’s agent signup returns a sandbox key, and then a live key with 50 free credits a month, to the agent itself. The person claims the account later with a link.

## Read next

-   [API keys for AI agents](https://publicadsapi.com/docs/agents)
-   [Competitor ad monitoring](https://publicadsapi.com/use-cases/competitor-ad-monitoring)
-   [Quickstart](https://publicadsapi.com/docs/quickstart)

## Search the ad libraries from your own code

Meta, Google and TikTok, one Ad record, free to start.

[Get a free API key](https://publicadsapi.com/signup) · [Read the quickstart](https://publicadsapi.com/docs/quickstart)
