Spaces:
Sleeping
Sleeping
Download test_api_key.sh from ocx2025/basicsearch: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/ocx2025/basicsearch/resolve/main/test_api_key.sh
- Command line
-
hf download hf://spaces/ocx2025/basicsearch/test_api_key.sh
-
curl -L -o test_api_key.sh https://huggingface.co/spaces/ocx2025/basicsearch/resolve/main/test_api_key.sh
296 Bytes
| echo "Testing if YOUTUBE_API_KEY is working..." | |
| echo "" | |
| echo "Sending search request..." | |
| curl -X POST https://ocx2025-basicsearch.hf.space/search \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"query": "Python programming", "max_results": 2}' \ | |
| 2>/dev/null | python3 -m json.tool | |