> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Last 30 Days

> 30-day multi-source research for autonomous agents — ranked, clustered briefs with citations from Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and grounded web search.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/search-research/last30days)

**Recent-evidence research across the social web.** One `AISA_API_KEY` aggregates the last 30 days of signal from eight platforms plus grounded web search, then ranks and clusters the findings into a citation-backed brief — typically in \~40 seconds.

## Install

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill last30days
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install last30days
```

Start a new agent session after installing so the skill loads.

## What can agents do with it?

> [card] Trend scans
>
> "What's the community saying about the OpenAI Agents SDK this month?"

> [card] Competitor comparisons
>
> "Claude Code vs Codex — who's winning developer mindshare?"

> [card] Launch reactions
>
> "Summarize reception of the GPT-5 launch across Reddit, X, and HN."

> [card] Person / entity tracking
>
> "What has Peter Steinberger been shipping and posting about lately?"

> [card] Market signals
>
> "Bitcoin price narratives — news, prediction markets, and social sentiment."

> [card] Structured briefs for agents
>
> "Return JSON clusters so a downstream agent can act on the findings."

## Core capabilities

* **Eight sources in one call** — Reddit, X/Twitter, YouTube, TikTok, Instagram, Hacker News, Polymarket, and grounded web search (plus optional GitHub with a token)
* **Ranked evidence clusters** — top findings grouped by theme, each with URL, date, and engagement stats
* **Per-source breakdowns** — statistical summary of which platforms are driving the signal
* **Markdown or JSON output** — human-readable brief by default, structured JSON for agent pipelines
* **Deep mode** — `--deep` flag expands the candidate pool and runs a more thorough ranking pass
* **AIsa-native planning** — uses the AIsa API for query planning, candidate ranking, and semantic clustering

## Quick start

```bash theme={null}
export AISA_API_KEY="your-key"
```

### Run a scan

```bash theme={null}
# Trend scan
bash "${SKILL_ROOT}/scripts/run-last30days.sh" "OpenAI Agents SDK"

# Competitor comparison
bash "${SKILL_ROOT}/scripts/run-last30days.sh" "Claude Code vs Codex"

# Launch reaction (deep profile)
bash "${SKILL_ROOT}/scripts/run-last30days.sh" "GPT-5 launch --deep"
```

The output is a markdown brief containing the query plan, ranked candidates, semantic clusters, per-source items with dates / engagement / URLs, runtime details, and any error logs.

## When to use it

* Recent social evidence on trends, products, or people
* Ranked competitor comparisons with community sentiment
* Launch reaction summaries or shipping updates
* Structured JSON briefs for downstream agents

## When not to use it

* Timeless reference questions without a recent-evidence need
* Scenarios that require a single official source without community signal

## Requirements

* Python 3.12+
* `AISA_API_KEY` ([sign up at aisa.one](https://aisa.one))
* POSIX shell
* Optional: `GITHUB_TOKEN` for expanded GitHub source coverage

## Get started

1. Sign up at [aisa.one](https://aisa.one) and create an API key in the console.
2. Set it in your shell: `export AISA_API_KEY="your-key"`.
3. Install the skill with one of the commands under [Install](#install), then start a new agent session.

## Related

> [card] [Perplexity Search](https://aisa.one/docs/agent-skills/perplexity-search.md)
>
> Grounded web answers for single-query research.

> [card] [Twitter Autopilot](https://aisa.one/docs/agent-skills/twitter-autopilot.md)
>
> Deeper X/Twitter-specific search, tracking, and posting.

> [card] [YouTube Search](https://aisa.one/docs/agent-skills/youtube-serp.md)
>
> YouTube SERP for video-first topics.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.