# Sada: Audience Research & Demand Signals (`xomiadata/sada`) Actor

Turn public conversations into demand signals: comments and posts from YouTube (your API key), Hacker News, Bluesky and Mastodon sorted into themes (pain, solution requests, advice, money talk, alternatives), plus a Patterns report with hooks and content ideas. Links and excerpts, no usernames.

- **URL**: https://apify.com/xomiadata/sada.md
- **Developed by:** [Khlifi oussama](https://apify.com/xomiadata) (community)
- **Categories:** AI, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 conversations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Sada: Audience Research & Demand Signals (YouTube, Hacker News, Bluesky, Mastodon)

**Sada** (صدى, "echo") finds what your audience asks for, complains about and wants next, in public conversations from **official and open APIs**, then turns them into actions: content hooks, reply ideas, trending titles and a patterns report. It works in **Arabic (including dialects), French and English**.

It follows the audience-research model that founders loved in Reddit tools (audiences, themes, patterns, ask, tracking), rebuilt on sources whose terms allow it. Reddit is **not** used.

### What you get

For each **conversation** (YouTube comment, Hacker News story or comment, Bluesky post, Mastodon post):

| Field | Description |
|---|---|
| `source`, `link`, `date`, `language` | Where and when, with a direct link to reply manually |
| `excerpt` | Up to 280 characters; e-mails, phone numbers, @mentions and URLs are masked |
| `engagement` | likes / replies / points / reposts |
| `themes` | Pain & Anger, Solution Requests, Advice Requests, Money Talk, Hot Discussions, Seeking Alternatives, Self-Promotion (competitor signal), Part 2 / continuation, Name question, Competitor complaint |
| `intentScore` | 0–100: how useful this is for *your* product/goal |
| `suggestedAction` | One human action (reply helpfully without links, make a video on this angle, add to FAQ…) |
| `hook` | A short content hook in the audience's own language/dialect |
| `trackedKeywordHits` | Your brand/competitor/phrase matches (alerts) |

Plus:

- **Trending videos** (`type: video`): titles with views/day from the channels you monitor.
- **Patterns report** (`type: report`, also in the key-value store as `REPORT`): theme counts, strong signals per day, trending titles, 5 recurring patterns with cited signals, hook formulas, content ideas and ways to reach the audience without spam.
- **Ask** (`type: answer`): ask a question; the answer is built from the collected conversations alone and cites their links.

### Audiences (presets)

| Preset | What it monitors |
|---|---|
| Egyptian & Arabic drama viewers | Big recap/short-drama YouTube channels (recaps, official short-drama channels, Egyptian broadcaster) |
| Arabic e-commerce sellers & ad makers | YouTube searches for Gulf and Maghreb sellers, ad creation, COD, dropshipping; HN and Bluesky on AI/UGC ads |
| AI voice assistants & receptionists | YouTube, HN, Bluesky and Mastodon conversations about AI receptionists and voice agents |
| Indie founders & AI tool builders | HN, Bluesky and Mastodon conversations on tools, alternatives and getting customers |

Choose **Custom** to use just your own keywords, YouTube channels (IDs or @handles) and searches.

### Quick start

1. Pick an audience or enter keywords in any language, e.g. `UGC ads`, `إعلانات فيديو`, `pub vidéo IA`.
2. Describe your product in one sentence (this makes scores and actions specific to you).
3. For YouTube, paste **your own YouTube Data API key** (Google Cloud Console → YouTube Data API v3). Sada enforces a unit budget per run (`youtubeMaxUnits`, default 1,500): a search costs 100 units, a page of comments costs 1.
4. Run. For daily alerts, schedule it with **New since last run** and a **Collection name**.

#### Example: Arabic e-commerce ads (Gulf)

```json
{"audience": "arabic-ecommerce-ads", "sources": ["youtube"], "youtubeApiKey": "<your key>", "youtubeRegion": "SA",
 "productContext": "AI video ad generator for Arabic online stores", "reportLanguage": "en", "lookbackDays": 60}
```

#### Example: Egyptian drama audience

```json
{"audience": "egyptian-drama", "youtubeApiKey": "<your key>", "lookbackDays": 14,
 "productContext": "New Egyptian micro-drama app looking for viewers", "askQuestion": "What do viewers complain about in short-drama apps?"}
```

### Pricing model

Pay per event, in USD:

| Event | Price | When |
|---|---|---|
| `conversation` | 0.001 USD | each conversation written to the dataset |
| `ai-insight` | 0.002 USD | each conversation classified by AI (theme, intent, action, hook) |
| `video` | 0.002 USD | each trending video row |
| `report` | 0.05 USD | the AI Patterns report (once per run; stats-only reports are not charged) |
| `ask` | 0.03 USD | one answered question with cited sources |

Example: 300 AI-classified conversations + report = 0.30 + 0.60 + 0.05 = 0.95 USD. Set "Max cost per run" in the run options:
Sada keeps budget for each classified item's conversation event and stops cleanly at your limit.
Ceilings per run: 1,000 conversations and 1,000 AI insights. AI features need a paid Apify plan; other plans get rule-based themes.
YouTube calls use your own API key and your own Google quota.

### Signal quality and outreach policy (v0.2)

- **Noise pre-filter (before AI, not charged):** greetings, prayers and blessings, religious quotes, generic praise or thanks, pure-emoji,
  bare-timestamp and "أول تعليق" comments are removed unless they also contain a question or request. Turn on `includeNoise` to keep them (intent 0).
- **Competitor / Self-Promotion theme:** ads, launches (Show HN), sales pitches, product URLs with hashtags and the channel owner's own comments are
  routed to `competitor_promo`. They stay in the dataset as competitor intel (bottom of the list, `competitorIntel` in the report) and are never counted
  or ranked as signals.
- **Strict AI scoring:** intent 70+ requires a need, question, request, objection or complaint in the product's own domain (`domainMatch`);
  AI results under `minConfidence` (default 0.6) are capped at intent 40.
- **Language:** `suggestedAction` is always written in `reportLanguage` (a guard replaces any off-language text with a template);
  `hook` stays in the language and dialect of the original conversation.
- **Hard outreach policy:** Sada limits suggestions to content ideas, FAQ/product notes and public, helpful, manual replies without links
  (`allowLinksInReplies` to allow links). It never suggests DMs, contacting or tagging individuals, mass replies or auto-posting; violating
  suggestions are replaced, and report ideas that break the policy are dropped.

### Compliance and privacy

- **Official or open APIs exclusively**: YouTube Data API v3 (with your key, under the YouTube API Services Terms), Hacker News Algolia API, Bluesky public AppView API, Mastodon public hashtag timelines. No HTML scraping, no logins, no browser automation.
- **Reddit is excluded** on purpose: its commercial use requires a contract with Reddit.
- **No personal data**: Sada never reads or stores author names, handles, author channel IDs, avatars or profiles. It stores the public link, a short masked excerpt and counts. Bluesky and Mastodon post URLs contain the account identifier because the platforms require it to open the post; Sada does not store it as a separate field and builds no profile.
- **No auto-posting**: Sada suggests replies; a human decides and writes.
- **Quotas respected**: hard YouTube unit budget per run; polite request rates on open APIs.
- **Your keys stay yours**: the YouTube key is a secret input used for your run; Sada has no built-in YouTube key.
- Do not use the output to contact people in bulk or to profile individuals.

### Limits

- YouTube comments are read in "relevance" order (up to 100 per video), so counts are minimums.
- Mastodon full-text search requires an account; Sada uses public hashtag timelines (your keyword becomes a hashtag).
- AI fields are suggestions; review before acting.

***

### بالعربية (مختصر)

**صدى** يكتشف ما يطلبه جمهورك وما يشتكي منه وما ينتظره، من مصادر رسمية ومفتوحة فقط (YouTube Data API بمفتاحك، Hacker News، Bluesky، Mastodon). يصنّف المحادثات (طلب حل، شكوى، أسعار، «الجزء الثاني»...) ويقترح أفكار محتوى وخطافات بلهجة الجمهور وتقريراً أسبوعياً. لا نخزن أي بيانات شخصية، ولا ننشر أي شيء تلقائياً، ولا نستخدم Reddit.

### En français (résumé)

**Sada** trouve ce que votre audience demande, critique et attend, à partir d'API officielles ou ouvertes (YouTube Data API avec votre clé, Hacker News, Bluesky, Mastodon). Thèmes, score d'intention, accroches dans la langue du public, titres tendance et rapport de tendances. Aucune donnée personnelle stockée, aucune publication automatique, pas de Reddit.

# Changelog

This Actor's version history is a separate document: https://apify.com/xomiadata/sada/changelog.md

# Actor input Schema

## `audience` (type: `string`):

A curated collection of channels and keywords for one niche. Choose 'Custom' to use just your own keywords and channels below. Your keywords and channels override the preset's.

## `keywords` (type: `array`):

Topics in any language (Arabic, French, English...). Used for Hacker News, Bluesky, Mastodon (as hashtag) and as YouTube searches if you add them below. E.g. 'UGC ads', 'إعلانات فيديو', 'pub vidéo IA'.

## `productContext` (type: `string`):

One sentence, e.g. 'AI video ad generator for Arabic e-commerce stores' or 'Egyptian micro-drama app looking for viewers'. Makes intent scores and suggested actions specific to you.

## `sources` (type: `array`):

Official or open APIs. Reddit is not included (its commercial use requires a Reddit contract). Leave empty to use the audience preset's sources (Hacker News + Bluesky for Custom).

## `youtubeApiKey` (type: `string`):

Required for YouTube. Create one in Google Cloud Console (YouTube Data API v3; Google gives a daily quota). Stored encrypted and used for this run alone.

## `youtubeChannels` (type: `array`):

Channel IDs (UC...) or @handles of big channels where your audience already is. Recent videos and their top comments are analysed.

## `youtubeSearchQueries` (type: `array`):

Each search costs 100 quota units (channels/comments cost 1). E.g. 'تصميم اعلان منتج بالذكاء الاصطناعي'.

## `youtubeRegion` (type: `string`):

ISO country code, e.g. SA, AE, MA, EG, FR.

## `youtubeLanguage` (type: `string`):

e.g. ar, fr, en.

## `youtubeMaxUnits` (type: `integer`):

Hard budget so a run never eats your daily quota (10,000 by default at Google).

## `videosPerChannel` (type: `integer`):

Most-viewed recent videos (by views/day) analysed per channel.

## `videosPerQuery` (type: `integer`):

Videos with the most comments analysed per search.

## `commentsPerVideo` (type: `integer`):

Top comments (relevance order) read per video; 1 quota unit per video.

## `mastodonInstance` (type: `string`):

Public instance whose hashtag timelines are read.

## `lookbackDays` (type: `integer`):

Conversations and videos published within this window.

## `language` (type: `string`):

Keep conversations in this language.

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

Upper limit of conversations returned (highest engagement kept). Hard ceiling: 1,000 per run. Each one is a 'conversation' event; AI-classified ones add an 'ai-insight' event.

## `minIntent` (type: `integer`):

Return conversations at or above this score (tracked keyword hits are always kept).

## `minConfidence` (type: `string`):

AI classifications below this confidence (0 to 1) are kept but capped at intent 40 and never counted as signals.

## `includeNoise` (type: `boolean`):

Greetings, prayers and blessings, generic praise, pure-emoji and bare-timestamp comments are filtered out before AI (not charged). Turn on to keep them in the dataset with intent 0.

## `allowLinksInReplies` (type: `boolean`):

By default suggested actions never include links. Sada never suggests DMs, contacting or tagging individuals, mass replies or auto-posting, whatever this setting.

## `aiClassification` (type: `boolean`):

Without it, rule-based themes are used. Available to paid Apify plans (charged per item as 'ai-insight'); on other plans rule-based themes are used.

## `report` (type: `boolean`):

Top themes, trending titles (views/day), hook formulas, content and distribution ideas.

## `reportLanguage` (type: `string`):

Report language

## `askQuestion` (type: `string`):

A question answered from the collected conversations, with source links. E.g. 'What do sellers hate about AI ad tools?'

## `includeVideos` (type: `boolean`):

Add the trending videos (views/day) as separate items.

## `trackKeywords` (type: `array`):

Your brand, competitors or phrases. Matching conversations are flagged and always kept.

## `onlyNew` (type: `boolean`):

For scheduled daily alerts.

## `collectionName` (type: `string`):

Keeps 'new since last run' memory and saved conversations separate per project.

## `saveSignals` (type: `boolean`):

Append signals with intent 50+ to the collection in the key-value store 'sada-state'.

## Actor input object example

```json
{
  "audience": "ai-tools-founders",
  "keywords": [
    "UGC ads",
    "AI video ads",
    "looking for a tool"
  ],
  "sources": [
    "hackernews",
    "bluesky"
  ],
  "youtubeChannels": [],
  "youtubeMaxUnits": 1500,
  "videosPerChannel": 6,
  "videosPerQuery": 8,
  "commentsPerVideo": 100,
  "mastodonInstance": "mastodon.social",
  "lookbackDays": 14,
  "language": "any",
  "maxItems": 300,
  "minIntent": 0,
  "minConfidence": "0.6",
  "includeNoise": false,
  "allowLinksInReplies": false,
  "aiClassification": true,
  "report": true,
  "reportLanguage": "en",
  "includeVideos": true,
  "onlyNew": false,
  "collectionName": "default",
  "saveSignals": false
}
```

# Actor output Schema

## `conversations` (type: `string`):

No description

## `report` (type: `string`):

No description

# 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 = {
    "audience": "ai-tools-founders",
    "keywords": [
        "UGC ads",
        "AI video ads",
        "looking for a tool"
    ],
    "sources": [
        "hackernews",
        "bluesky"
    ],
    "youtubeChannels": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("xomiadata/sada").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 = {
    "audience": "ai-tools-founders",
    "keywords": [
        "UGC ads",
        "AI video ads",
        "looking for a tool",
    ],
    "sources": [
        "hackernews",
        "bluesky",
    ],
    "youtubeChannels": [],
}

# Run the Actor and wait for it to finish
run = client.actor("xomiadata/sada").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 '{
  "audience": "ai-tools-founders",
  "keywords": [
    "UGC ads",
    "AI video ads",
    "looking for a tool"
  ],
  "sources": [
    "hackernews",
    "bluesky"
  ],
  "youtubeChannels": []
}' |
apify call xomiadata/sada --silent --output-dataset

```

## MCP server setup

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

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/fD3VlN5oRYumDmY3I/builds/bQ88eZxyYPb3PBUbB/openapi.json
