š Code Examples
Ready-to-use code examples for integrating the Free Crypto News API. No API keys required ā just copy, paste, and run!
Examples
š
cURL / Shell
Basic shell script using cURL to fetch news
bash
#!/bin/bash
# Free Crypto News API - curl examples
# No API key required!
API="https://free-crypto-news.vercel.app"
echo "š° Latest News"
curl -s "$API/api/news?limit=3" | jq '.articles[] | {title, source, timeAgo}'
echo -e "\nš Search for 'ethereum'"
curl -s "$API/api/search?q=ethereum&limit=3" | jq '.articles[] | {title, source}'
echo -e "\nš° DeFi News"
curl -s "$API/api/defi?limit=3" | jq '.articles[] | {title, source}'
echo -e "\nāæ Bitcoin News"
curl -s "$API/api/bitcoin?limit=3" | jq '.articles[] | {title, source}'
echo -e "\nšØ Breaking News"
curl -s "$API/api/breaking?limit=3" | jq '.articles[] | {title, source, timeAgo}'
echo -e "\nš” Sources"
curl -s "$API/api/sources" | jq '.sources[] | {name, status}'curl.shView on GitHub