# Reddit Ads Scraper (`socialdataapi/reddit-ads-scraper`) Actor

Reddit Ads Scraper scrapes Reddit's public Ads inspiration gallery: headlines, creatives, advertisers, budgets, objectives and placements, with keyword and filter matching. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/socialdataapi/reddit-ads-scraper.md
- **Developed by:** [Social Data API](https://apify.com/socialdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Reddit Ads Scraper — Headlines, Creatives, Advertisers and Budgets

Reddit Ads Scraper collects ads from Reddit's public ad inspiration gallery and returns one row per ad: headline, body text, creative media and call to action, advertiser name, industry, budget tier, campaign objective and placements. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a competitive ad research pipeline. **No Reddit account or login needed.** Start with one keyword from your market, then build a swipe file of every Reddit ad format that matches it.

![Reddit Ads Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-reddit-ads-hero.webp)

***

### What data can I extract with Reddit Ads Scraper?

Using this Reddit Ads API, you will be able to extract the following Reddit ad data:

| 📰 Headline | 📝 Body text | 🎨 Format (image, video, carousel, text) | 🖼️ Thumbnail |
|---|---|---|---|
| 📦 Creative content (media, destination, call to action, caption) | 👤 Advertiser name | 🆔 Advertiser profile ID | 🪪 Advertiser avatar |
| 🏭 Industry | 💵 Budget tier | 🎯 Campaign objective | 📍 Placements |
| 📅 Created date | 🔗 Reddit post link | 🧾 Reddit post ID | 💬 Comments allowed |
| 🔑 Ad ID | 🔎 Matched keyword | 🔓 Access mode | ⏱️ Scraped-at time |

***

### How to use Reddit Ads Scraper

Marketers, agencies and ad researchers use it to scrape Reddit ads by keyword and filters and get every matching ad as a clean row in one run.

**Copy to your AI assistant:**

```text
`socialdataapi/reddit-ads-scraper` (Apify Actor ID: socialdataapi/reddit-ads-scraper, https://apify.com/socialdataapi/reddit-ads-scraper) is an Apify Actor that returns ads from Reddit's public ad inspiration gallery as structured JSON: headline, body text, creative format, creative content with media and destination URLs and call to action, advertiser name, industry, budget tier, campaign objective, placements and the Reddit post link. Use it whenever someone needs Reddit ad examples without cookies, a login, or a browser - building a creative swipe file, checking which industries and objectives run on Reddit, and feeding real ad copy to a copywriting model. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/socialdataapi~reddit-ads-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"queries":["free"],"postType":"IMAGE","maxItems":10}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/reddit-ads-scraper").call(run_input={"queries":["free","your"],"maxItems":5}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: queries (array of strings, optional, keywords; an ad matches when every word appears as a whole word in its headline, body, advertiser name or links; empty = whole gallery; the old key query also works), industry (string, "" | "TECH_B2C" | "TECH_B2B" | "EDUCATION" | "ENTERTAINMENT" | "HEALTH_AND_BEAUTY" | "GAMING" | "EMPLOYMENT" | "RETAIL_AND_ECOMMERCE" | "AUTO" | "FINANCIAL_SERVICES" | "TRAVEL" | "REAL_ESTATE" | "GAMBLING_AND_FANTASY_SPORTS" | "POLITICS_AND_GOVERNMENT" | "CONSUMER_PACKAGED_GOODS" | "OTHER", default ""), budgetCategory (string, "" | "LOW" | "MEDIUM" | "HIGH", default ""), postType (string, "" | "IMAGE" | "VIDEO" | "CAROUSEL" | "FREE_FORM", default "", FREE_FORM matches text ads), placements (string, "" | "FEED" | "COMMENTS_PAGE" | "CONVERSATION", default ""), objectiveType (string, "" | "AWARENESS" | "CONVERSIONS" | "APP_INSTALLS" | "TRAFFIC" | "VIDEO_VIEWABLE_IMPRESSIONS", default "", AWARENESS shows as IMPRESSIONS and TRAFFIC as CLICKS in the output), maxItems (integer 1-30, ads per keyword, default 5), proxyConfiguration (object, optional, default no proxy with automatic upgrade). One row per ad per keyword, each a billed result; an ad that matches two keywords appears once under each. The public gallery is a fixed sample of about 30 ads, so a keyword returns only the ads that really match; a keyword with no match adds no rows. A JSON array of all rows is also saved to the key-value store under OUTPUT. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/socialdataapi~reddit-ads-scraper/builds/default
```

#### Reddit Ads Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this Actor and it can read Reddit's public ad gallery on its own: ad headlines and body text, creative media, advertisers, industries, budgets, objectives and placements. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-ads-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Reddit Ads Scraper](https://apify.com/socialdataapi/reddit-ads-scraper) in the Apify Store.
3. Type your keywords (or leave them empty for the whole gallery) and pick any filters.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Reddit Ads Scraper to bulk

Add as many keywords as you like in one run: the gallery is loaded once and every keyword is matched against it, so more keywords cost no extra requests. Each keyword saves up to 30 ads, and every row carries the keyword it matched. Leave the keywords empty to get the whole gallery in one go. Because Reddit refreshes its examples over time, save the input as an Apify task and schedule it to collect new Reddit ads inspiration every week.

***

### ✨ Features

Reddit Ads Scraper fetches clean, structured ads from Reddit's public ad gallery ⚡ at low cost 💸. It's ideal for creative swipe files, competitor messaging research, agency pitch decks and ad-copy training sets. Think of it as a Reddit ad spy for the examples Reddit itself publishes, and a quick source of Reddit advertising data by industry and budget.

It extracts, per ad:

- **Headline and body text** – the exact ad copy
- **Creative content** – media URL, destination link, display link, call to action and caption
- **Format** – image, video, carousel or text
- **Advertiser** – profile name, profile ID and avatar
- **Industry, budget tier and objective** – how the campaign is classified
- **Placements** – feed, comments page, or both

⚡ One request per run: the gallery is loaded once and all keywords and filters are matched against it.

***

### Use cases 💡

- **Performance marketer** — collect Reddit ad creatives by format for a swipe file.
- **Copywriter** — study Reddit ad headlines that use "free" or "your" in the hook.
- **Agency strategist** — compare budget tiers and objectives across industries for a pitch.
- **Media buyer** — check which placements Reddit promoted posts use in your vertical.
- **AI engineer** — feed real ad copy to an LLM that drafts new Reddit ad variants.

Building an AI agent? [Connect Reddit Ads Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **The whole public gallery in seconds.** A recorded run matched 7 keywords and saved 97 ad rows in 10.8 seconds, from one gallery request.
- **Copy, creative and campaign data together.** A recorded ad came back with its headline, image, destination link chanced.com, a "Sign Up" call to action, the ENTERTAINMENT industry, a HIGH budget tier and a CONVERSIONS objective.
- **5 filters, 20 fields per ad.** Industry, budget tier, ad format, placement and campaign objective filters combine with whole-word keyword matching.

***

### ⬇️ Input

![Reddit Ads Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-reddit-ads-input.webp)

The actor takes optional keywords and filters; every field is optional, and an empty input returns the whole public gallery.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `queries` | No | array of strings | Keywords. An ad matches when every word of the keyword appears as a whole word in its headline, body, advertiser name or links. Empty = the whole gallery. The old key `query` (one string) also works. | `["free", "your"]` |
| `industry` | No | string | Keep only one industry. Default `""` (any). Values: `TECH_B2C`, `TECH_B2B`, `EDUCATION`, `ENTERTAINMENT`, `HEALTH_AND_BEAUTY`, `GAMING`, `EMPLOYMENT`, `RETAIL_AND_ECOMMERCE`, `AUTO`, `FINANCIAL_SERVICES`, `TRAVEL`, `REAL_ESTATE`, `GAMBLING_AND_FANTASY_SPORTS`, `POLITICS_AND_GOVERNMENT`, `CONSUMER_PACKAGED_GOODS`, `OTHER`. | `"TECH_B2C"` |
| `budgetCategory` | No | string | Keep only one spend tier. Default `""` (any). Values: `LOW`, `MEDIUM`, `HIGH`. | `"HIGH"` |
| `postType` | No | string | Keep only one format. Default `""` (any). Values: `IMAGE`, `VIDEO`, `CAROUSEL`, `FREE_FORM` (text ads). | `"IMAGE"` |
| `placements` | No | string | Keep only one placement. Default `""` (any). Values: `FEED`, `COMMENTS_PAGE`, `CONVERSATION` (accepted, but no gallery ad uses it). | `"FEED"` |
| `objectiveType` | No | string | Keep only one objective. Default `""` (any). Values: `AWARENESS` (shown as IMPRESSIONS), `CONVERSIONS`, `APP_INSTALLS`, `TRAFFIC` (shown as CLICKS), `VIDEO_VIEWABLE_IMPRESSIONS`. | `"CONVERSIONS"` |
| `maxItems` | No | integer | Ads saved for each keyword, 1 to 30. Default 5. | `5` |
| `proxyConfiguration` | No | object | Default: no proxy; the actor upgrades its connection by itself when needed. | `{"useApifyProxy": false}` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 ads per run (all keywords together) and 200 ads per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "queries": ["free", "your"],
  "industry": "",
  "budgetCategory": "",
  "postType": "",
  "placements": "",
  "objectiveType": "",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### ⬆️ Output

![Reddit Ads Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/u-reddit-ads-output.webp)

Every ad is one typed, normalized JSON item with the same schema on every run, tagged with the keyword it matched. Export it as JSON (default), CSV or Excel; a single JSON array of all rows is also saved to the key-value store under OUTPUT.

#### Example output

```json
[
  {
    "id": "9d43753da363aff502a5fe5082776649",
    "budget_category": "HIGH",
    "industry": "ENTERTAINMENT",
    "placements": [
      "COMMENTS_PAGE"
    ],
    "objective": "CONVERSIONS",
    "created_at": "2024-06-10T17:01:36+00:00",
    "headline": "Sign up to get 20 free spins and experience the thrill of winning at Chanced Casino today!",
    "body": "",
    "post_url": "https://www.reddit.com/user/chancedcasino/comments/1dcqj69/sign_up_to_get_20_free_spins_and_experience_the/",
    "type": "IMAGE",
    "thumbnail_url": "https://b.thumbs.redditmedia.com/yyCxAiZJEWx2CWpVEhHc3SfeHI7NMUxnkl5w1ZSPyrU.jpg",
    "profile_id": "t2_11rg01c7xc",
    "profile_name": "u_chancedcasino",
    "profile_image_url": "https://styles.redditmedia.com/t5_bo11z0/styles/profileIcon_g4ih62qlejad1.png?width=256&height=256&crop=256:256,smart&s=ee934ddc6aed5444742f0bc081e26effb13835a4",
    "content": [
      {
        "media_url": "https://external-preview.redd.it/jFOWGiLcJED1i4zw1LGiYSPSdLBY8GFhYgtBIlBlaao.jpg?auto=webp&s=36007600a826d6ed852ca8995ed5451f4950dc71",
        "destination_url": "https://chanced.com/",
        "display_url": "chanced.com",
        "call_to_action": "Sign Up",
        "caption": null
      }
    ],
    "allow_comments": false,
    "redditPostId": "t3_1dcqj69",
    "searchQuery": "free",
    "accessMode": "anonymous_sample",
    "scrapedAt": "2026-11-12T10:42:36.600236+00:00"
  }
]
```

***

### How does it work?

Reddit Ads Scraper reads Reddit's public ad inspiration gallery — the examples Reddit shows to anyone who opens it, without a Reddit account. It needs no Reddit account of yours, loads the gallery once with plain HTTP requests and no browser, then matches your keywords and filters against the real fields of every ad. Each matching ad is saved to your dataset the moment it is matched.

The run starts without a proxy. If Reddit blocks or slows it down, the actor retries with backoff and upgrades to Apify datacenter and then residential proxies by itself. The gallery is a fixed public sample of about 30 ads, so results reflect what Reddit currently shows there. The output schema is normalized and stays the same even when Reddit changes its site.

***

### How do you integrate Reddit Ads Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Reddit Ads Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/socialdataapi~reddit-ads-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"queries": ["free"], "postType": "IMAGE", "maxItems": 10},
)
for ad in resp.json():
    print(ad["profile_name"], ad["headline"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the actor to your AI client with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-ads-scraper"
```

This registers Reddit Ads Scraper as a tool your agent can call directly. Ask it for Reddit ads about a keyword or in an industry and it starts the run, waits and reads the ad rows back. It works in Claude Code, Cursor and Windsurf, and in any other client that speaks MCP over HTTP.

#### No-code tools (n8n, Make, LangChain)

**n8n:** add the Apify node and choose "Run an Actor" with `socialdataapi/reddit-ads-scraper`, or use the HTTP Request node pointed at the run-sync endpoint with your token. Each ad comes back as one item for the next node.

**Make:** use the Apify app's "Run an Actor" module, then "Get Dataset Items" to send each ad to a Google Sheet, Notion or Slack module.

**LangChain:** install `langchain-apify` and load `ApifyActorsTool("socialdataapi/reddit-ads-scraper")` so your agent can fetch Reddit ads as a tool.

***

### Is it legal to scrape Reddit data?

Scraping publicly available Reddit data is generally legal, as long as you collect only what any visitor can see and use it responsibly. Reddit Ads Scraper returns only the public ad gallery — what any user sees without logging in. Ads name advertiser profiles, which are usually brands; if any row points to an individual, the GDPR applies: collecting public data is generally permissible, but storing and using it must comply with local data-protection law. Ad copy and creative media remain the advertisers' property. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Reddit Ads Scraper return?

It returns each ad's headline, body text, format, creative content and advertiser name, plus the industry, budget tier, objective, placements and Reddit post link. See [the data fields section](#what-data-can-i-extract-with-reddit-ads-scraper) for all 20 fields.

#### Does Reddit Ads Scraper require a Reddit account or login?

No. Only the public ad gallery is read, and no credentials are needed.

#### How fast does Reddit Ads Scraper run?

A recorded run with 2 keywords saved 10 ads in 5.1 seconds; 7 keywords saved 97 ad rows in 10.8 seconds. Data is fetched live on every run, not cached.

#### What happens if an ad is missing or a keyword doesn't match?

A keyword with no matching ad adds no rows, and the log says that no gallery ad matches it with your filters. If the gallery cannot be loaded at all, the run ends with a status message asking you to try again later. Empty fields, such as the body of image ads, come back as empty text or null.

#### Can I scrape multiple Reddit ads at once?

Yes. Add many keywords in one run, or leave them empty to get every ad in the gallery; each keyword saves up to 30 ads.

#### Does Reddit Ads Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Reddit Ads Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/reddit-ads-scraper"
```

Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Reddit Ads Scraper return data in a format LLMs can use directly?

Yes. Every ad is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Reddit changes its layout or updates its anti-bot system?

The actor is maintained. When Reddit changes, the actor is updated, and your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Reddit Ads Scraper without managing proxies or browser infrastructure?

Yes. The actor starts without a proxy and upgrades to Apify proxies by itself when Reddit blocks it. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

#### Which Reddit ad fields work best for AI training data and RAG indexing?

For RAG, use the text fields: headline, body text, call to action and advertiser name. For training data, use the labels: format, industry, budget tier, objective and placements. All fields are typed strings, booleans and arrays, so the data needs no normalization.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [Reddit Posts Scraper](https://apify.com/socialdataapi/reddit-posts-scraper) | Public Reddit posts and their details. |
| [Reddit Comment Scraper](https://apify.com/socialdataapi/reddit-comment-scraper) | Comments on Reddit posts. |
| [LinkedIn Ads Scraper](https://apify.com/socialdataapi/linkedin-ads-scraper) | Ads from LinkedIn's public ad library. |
| [Facebook Ads Library Scraper](https://apify.com/socialdataapi/facebook-ads-library-scraper) | Ads from the Facebook Ad Library. |
| [TikTok Ads Scraper](https://apify.com/socialdataapi/tiktok-ads-scraper) | Ads from TikTok's ad library. |
| [Pinterest Ads Scraper](https://apify.com/fastdataapi/pinterest-ads-scraper) | Ads from Pinterest's ad library. |

***

### Your feedback

Found a bug or missing a field? Let us know on this Actor's Issues tab in Apify Console. Every report is read, and fixes ship as new versions of the actor.

# Actor input Schema

## `queries` (type: `array`):

One or more keywords. An ad matches when every word of the keyword appears as a whole word in its headline, body, advertiser name or links. Leave empty to get the whole gallery. Old key `query` (one string) is also accepted.

## `industry` (type: `string`):

Keep only ads from this industry. Any industry = no filter.

## `budgetCategory` (type: `string`):

Keep only ads in this spend tier. Any budget = no filter.

## `postType` (type: `string`):

Keep only this creative format. Free-form / Text matches text ads (type TEXT). Any format = no filter.

## `placements` (type: `string`):

Keep only ads shown in this placement. FEED and COMMENTS_PAGE appear on real ads; CONVERSATION is accepted but no gallery ad uses it. Any placement = no filter.

## `objectiveType` (type: `string`):

Keep only ads with this campaign objective (Awareness = IMPRESSIONS, Traffic = CLICKS in the output). Any objective = no filter.

## `maxItems` (type: `integer`):

Maximum ads saved for each keyword (1-30). The public gallery holds about 30 ads, so a keyword returns only the ads that really match. Free plan: up to 20 ads per run (all keywords together) and 200 per month; paid plans have no limit.

## `proxyConfiguration` (type: `object`):

Optional. Leave off to let the Actor choose the connection automatically.

## Actor input object example

```json
{
  "queries": [
    "free"
  ],
  "industry": "",
  "budgetCategory": "",
  "postType": "",
  "placements": "",
  "objectiveType": "",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped ads, overview columns: id, headline, format, industry, budget, objective, placements, created date, post URL, access mode, scraped-at timestamp.

## `creative` (type: `string`):

Same ads, creative-focused columns: headline, body text, format, thumbnail, comment settings and the full creative content array (media/destination URLs, CTA, caption).

## `advertiser` (type: `string`):

Same ads, advertiser-focused columns: profile name, profile id, avatar image, Reddit post id and post URL.

## `outputSnapshot` (type: `string`):

A single JSON array with every ad collected during the run, written once to the key-value store under the key OUTPUT after the run finishes.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "free"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/reddit-ads-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["free"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/reddit-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "free"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/reddit-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialdataapi/reddit-ads-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TcuVfI8CW7rQiTk02/builds/67RAHNlXbyk2p6nFw/openapi.json
