Metadata-Version: 2.5
Name: crewai-huntapi
Version: 0.1.0
Summary: CrewAI tools for HuntAPI: read the metadata of public videos and download them as video or audio.
Project-URL: Homepage, https://www.huntapi.com
Project-URL: Documentation, https://github.com/huntapi/crewai-huntapi#readme
Project-URL: Repository, https://github.com/huntapi/crewai-huntapi
Project-URL: Issues, https://github.com/huntapi/crewai-huntapi/issues
Author-email: HuntAPI <contact@huntapi.com>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,audio,crewai,download,huntapi,media,tiktok,tools,video,youtube
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Typing :: Typed
Requires-Python: <3.14,>=3.10
Requires-Dist: crewai>=0.150
Requires-Dist: httpx<1,>=0.27
Provides-Extra: test
Requires-Dist: pytest>=8.3; extra == 'test'
Requires-Dist: ruff<1,>=0.8; extra == 'test'
Description-Content-Type: text/markdown

# crewai-huntapi

[CrewAI](https://www.crewai.com) tools for [HuntAPI](https://www.huntapi.com): read the metadata of public videos and download them as video or audio.

## Installation

```bash
pip install crewai-huntapi
export HUNTAPI_API_KEY="your-api-key"
```

Get an API key at [app.huntapi.com](https://app.huntapi.com).

## Tools

| Tool | What it does |
| --- | --- |
| `HuntAPIMediaMetadataTool` | Read the metadata of a public video through HuntAPI. |
| `HuntAPIVideoDownloadTool` | Download a public video through HuntAPI and return the download link. |
| `HuntAPIAudioDownloadTool` | Extract the audio of a public video through HuntAPI and return the download link. |

Each tool takes `api_key` (defaults to `HUNTAPI_API_KEY`), `base_url` and `timeout`, plus the settings shown in its docstring. Errors (invalid key, no credits, rate limit, timeout) come back to the agent as text, without the API key.

```python
from crewai import Agent
from crewai_huntapi import HuntAPIMediaMetadataTool, HuntAPIVideoDownloadTool

agent = Agent(
    role="Analyst",
    goal="Answer with data from HuntAPI",
    backstory="You use HuntAPI to read the metadata of public videos and download them as video or audio.",
    tools=[HuntAPIMediaMetadataTool(), HuntAPIVideoDownloadTool()],
)

print(HuntAPIMediaMetadataTool().run(**{"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}))
```

## Development

```bash
pip install -e ".[test]"
pytest
```

## License

MIT
