> ## 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

# AIsa YouTube Search

> The minimal, curl-only YouTube search skill. For Python and JavaScript examples, install the YouTube Agent Skill instead.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/social-media/aisa-youtube-search)

**YouTube discovery through AIsa.** Search videos, channels, and playlists for research, trend monitoring, and content planning.

This is the lightest install: curl only, with guardrails. For a full API reference with Python and JavaScript examples, pagination, and error handling, use the [YouTube Agent Skill](https://aisa.one/docs/agent-skills/youtube-search.md).

## Install

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

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

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

## What can agents do with it?

> [card] Video discovery
>
> Find relevant videos for a query or topic.

> [card] Channel research
>
> Identify channels covering a niche.

> [card] Playlist lookup
>
> Find curated video collections.

> [card] Topic exploration
>
> Use YouTube as an input for research workflows.

## When to use

* The user wants to search YouTube videos, channels, or playlists.
* The task needs region or language filters without direct Google API setup.
* The workflow can call the AIsa YouTube search endpoint with `AISA_API_KEY`.

## When NOT to use

* The user needs browser automation, local scraping, or direct YouTube account actions.
* The workflow must avoid sending search requests to `api.aisa.one`.
* The request depends on a local helper script that is not part of this package.

## Quick Reference

* Required environment variable: `AISA_API_KEY`
* Endpoint: `https://api.aisa.one/apis/v1/youtube/search`
* This package is curl-first and does not ship a local Python client.

## Setup

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

## Common Commands

```bash theme={null}
curl -s "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=machine+learning+tutorial" \
  -H "Authorization: Bearer $AISA_API_KEY"

curl -s "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AI+news&gl=us&hl=en" \
  -H "Authorization: Bearer $AISA_API_KEY"

curl -s "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=python+tutorial&sp=EgIQAQ%3D%3D" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

## Capabilities

* Search YouTube SERP results with `q`
* Filter by locale with `gl` and `hl`
* Apply pagination or narrowing via `sp`
* Return structured results that may include `videos` or grouped `sections`

## Guardrails

* Do not ask for Google credentials or browser cookies.
* Do not claim a result is local-only when it depends on relay requests.
* Do not fabricate missing filters or parameters.

## Security Notes

* All search requests go to `api.aisa.one`.
* Required secret: `AISA_API_KEY`.
* This workflow does not require passwords, browser automation, or local scraping.

## 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] [YouTube SERP](https://aisa.one/docs/agent-skills/youtube-serp.md)
>
> Ranked YouTube SERP results with rich metadata.

> [card] [YouTube Search](https://aisa.one/docs/agent-skills/youtube-search.md)
>
> General YouTube content research workflow.

> [card] [Multi-source Search](https://aisa.one/docs/agent-skills/multi-source-search.md)
>
> Combine YouTube with web and scholar search.


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