langchain-huntapi
LangChain integration for HuntAPI: read the metadata of public videos and download them as video or audio.
Installation
pip install -U langchain-huntapi
export HUNTAPI_API_KEY="your-api-key"
Get an API key at app.huntapi.com.
Tools
| Class | Tool name | What it does |
|---|---|---|
HuntAPIMediaMetadata |
huntapi_media_metadata |
Read the metadata of a public video through HuntAPI. |
HuntAPIVideoDownload |
huntapi_video_download |
Download a public video through HuntAPI and return the download link. |
HuntAPIAudioDownload |
huntapi_audio_download |
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 model as a ToolException message, without the API key. Every tool has an async version.
from langchain_huntapi import HuntAPIMediaMetadata
tool = HuntAPIMediaMetadata()
print(tool.invoke({"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}))
In an agent
from langchain.agents import create_agent
from langchain_huntapi import HuntAPIMediaMetadata, HuntAPIVideoDownload, HuntAPIAudioDownload
agent = create_agent(
"openai:gpt-4.1-mini", tools=[HuntAPIMediaMetadata(), HuntAPIVideoDownload(), HuntAPIAudioDownload()]
)
result = agent.invoke({"messages": [{"role": "user", "content": "..."}]})
Development
pip install -e ".[test]"
pytest tests/unit_tests
License
MIT
Metadata
Release files for langchain-huntapi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_huntapi-0.1.0.tar.gz | 8.4 kB | Without provenance | Details for langchain_huntapi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_huntapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_huntapi-0.1.0-py3-none-any.whl |
Total release size: 15.9 kB
Release files / langchain_huntapi-0.1.0.tar.gz
| Download URL | langchain_huntapi-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d13af6cfa66ddc10a923ff5549b9e1e52f362a45cf5c2f697eda1c45601b68cc
|
|
BLAKE2b-256 checksum How to use checksums |
1a7dd15fc451cffecd0bccd7e2740c34c30218c343dccb8988462007899d2449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / langchain_huntapi-0.1.0-py3-none-any.whl
| Download URL | langchain_huntapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a554a364b6d1a31828880df50ab1bb231bd8d3312d96688d1312d678d244f431
|
|
BLAKE2b-256 checksum How to use checksums |
020bfd3157c50e0b30c63fd7bb2c778d5d73a3d387478e1a88a81963fdaf8ba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for langchain-huntapi 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.