Hugging Face AI Datasets Search
Search open-source AI training and evaluation datasets on Hugging Face sorted by downloads, likes, or recent modification.
curl -sG "https://api.agentapigate.ai/v1/huggingface/datasets_search" \ --data-urlencode "query=code" \ --data-urlencode "sort=downloads" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Hugging Face AI Datasets Search (`huggingface.datasets_search`) **query**: code · **count**: 10 ## datasets - [1] id: ShayManor/willow-surface-code-detection-events, author: ShayManor, downloads: 175555, likes: 1, gated: false - [2] id: livecodebench/code_generation_lite, author: livecodebench, downloads: 119360, likes: 129, gated: false - [3] id: codepawl/abo-glb, author: codepawl, downloads: 94355, likes: 138, gated: false - [4] id: deepmind/code_contests, author: deepmind, downloads: 79988, likes: 246, gated: false - [5] id: danielrosehill/English-Hebrew-Codeswitching-Sentences, author: danielrosehill, downloads: 71210, likes: 1, gated: true - [6] id: IFM/Code-Reasoning, author: IFM, downloads: 64910, likes: 105, gated: false - [7] id: codeparrot/github-code-clean, author: codeparrot, downloads: 53738, likes: 156, gated: false - [8] id: code-search-net/code_search_net, author: code-search-net, downloads: 49484, likes: 354, gated: false - [9] id: nvidia/Nemotron-CC-Code-v1, author: nvidia, downloads: 49213, likes: 38, gated: true - [10] id: codepawl/simready-glb, author: codepawl, downloads: 49112, likes: 107, gated: false
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:huggingface.datasets_search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | code | Dataset search keyword (e.g. "code", "reasoning", "instruct") |
| sort | string | optional | downloads | Sort field |
| limit | number | optional | 10 | Max datasets (1-30) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0005 / call | $0/mo · Balance never expires |
| Remote MCP Tool | huggingface_datasets_search | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 127 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 3507t → 314t (-91%) | Partner credit: eligible |
More Dev, AI & Security Real-Time APIs
All-in-one domain intelligence combining RDAP registrar/expiry data, Cloudflare DoH A/MX/TXT/NS records, and live TLS SAN certificate inspection.
Use when you need commercial-grade passive IP reconnaissance: RIR RDAP CIDR/organization/abuse contacts, Cloudflare DoH reverse PTR hostnames, and port-443 TLS SAN inspection.
Resolve country, city, coordinates, timezone, ASN, and ISP organization for any public IP address.
Use when you need Common Vulnerabilities and Exposures (CVEs) from NIST NVD 2.0 and OSV.dev enriched with FIRST.org EPSS 30-day exploitation probability.
Search 250M+ peer-reviewed and preprint research papers across OpenAlex and arXiv with citation counts, DOIs, and abstracts.
Query recruiting and completed clinical trials by condition, drug intervention, sponsor, and phase from ClinicalTrials.gov v2.
Frequently Asked Questions
How do I call Hugging Face AI Datasets Search (huggingface.datasets_search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/huggingface/datasets_search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool huggingface_datasets_search on https://mcp.agentapigate.ai/mcp.
What does huggingface.datasets_search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0005 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on huggingface.datasets_search?
Passing ?format=md transforms the response into normalized Markdown (~314 tokens vs ~3507 raw tokens, saving 91% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["huggingface.datasets_search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.