AI agents are only as useful as the data they can access. Most agents are stuck in a text-only world — they can reason, but they can't see what's happening on the internet right now.
Here are 5 real-time data tools that turn a basic chatbot into a genuinely useful agent, with working code you can try in 2 minutes.
Setup: One API Key, All Tools
Instead of juggling 5 different API keys, we'll use a single gateway that bundles everything:
# Get a free API key (200 credits, no signup)
curl -X POST https://agent-gateway-kappa.vercel.app/api/keys/create
# Returns: { "key": "gw_abc123...", "credits": 200 }
Save your key — we'll use it for all 5 tools below.
1. IP Geolocation — Know Where Your Users Are
The most requested tool for any internet-facing agent. Given an IP address, get the physical location, ISP, timezone, and coordinates.
import requests
API_KEY = "gw_your_key_here"
BASE = "https://agent-gateway-kappa.vercel.app"
def locate_ip(ip_address):
resp = requests.get(
f"{BASE}/v1/agent-geo/geo/{ip_address}",
headers={"Authorization": f"Bearer {API_KEY}"}
)
data = resp.json()
return {
"city": data["city"],
"country": data["country"],
"lat": data["lat"],
"lon": data["lon"],
"timezone": data["timezone"],
"isp": data["isp"]
}
# Try it
print(locate_ip("8.8.8.8"))
# {'city': 'Mountain View', 'country': 'US', 'lat': 37.386, ...}
Use cases: Personalize content by region, detect VPN usage, auto-set timezone, compliance (GDPR region detection).
2. Crypto Prices — Live Market Data
Your agent can answer "What's the price of ETH?" with real data instead of a knowledge cutoff disclaimer.
def get_crypto_price(symbol):
resp = requests.get(
f"{BASE}/v1/crypto-feeds/api/prices",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"symbols": symbol.upper()}
)
data = resp.json()
token = data["prices"][0]
return {
"symbol": token["symbol"],
"price": f"${token['price']:,.2f}",
"change_24h": f"{token['change24h']:.1f}%"
}
print(get_crypto_price("BTC"))
# {'symbol': 'BTC', 'price': '$94,231.00', 'change_24h': '2.3%'}
Use cases: Portfolio tracking, price alerts, DeFi analysis, trading bots, market research.
3. DNS Lookup — Investigate Any Domain
When your agent needs to verify a domain, check DNS configuration, or investigate infrastructure:
def dns_lookup(domain, record_type="A"):
resp = requests.get(
f"{BASE}/v1/agent-dns/api/resolve/{domain}",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"type": record_type}
)
return resp.json()
print(dns_lookup("github.com"))
# {'domain': 'github.com', 'records': [{'type': 'A', 'value': '140.82.121.4'}]}
Use cases: Domain verification, email deliverability checks, infrastructure mapping, security audits.
4. Web Scraping — Read Any Webpage
Let your agent read and extract content from any URL. No headless browser setup needed.
def scrape_url(url):
resp = requests.post(
f"{BASE}/v1/agent-scraper/api/scrape",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
},
json={"url": url, "format": "markdown"}
)
data = resp.json()
return data.get("content", "")[:500] # First 500 chars
print(scrape_url("https://news.ycombinator.com"))
Use cases: Research agents, content summarization, competitive analysis, monitoring page changes.
5. Screenshots — See Any Website
Sometimes text isn't enough. Your agent can take a screenshot of any URL and actually see what a page looks like.
def screenshot(url, width=1280):
resp = requests.post(
f"{BASE}/v1/agent-screenshot/api/screenshot",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
},
json={"url": url, "width": width, "fullPage": False}
)
# Returns PNG image
with open("screenshot.png", "wb") as f:
f.write(resp.content)
return "screenshot.png"
screenshot("https://github.com")
Use cases: Visual regression testing, monitoring UI changes, generating previews, verifying deployments.
Bonus: Use as an MCP Server
If you're using Claude, Cursor, or Windsurf, you can add all 13 tools at once via MCP:
{
"mcpServers": {
"frostbyte": {
"command": "node",
"args": ["/path/to/frostbyte-mcp/index.js"],
"env": {
"FROSTBYTE_API_KEY": "gw_your_key_here"
}
}
}
}
Then your AI assistant can call geo_lookup, crypto_price, dns_lookup, scrape_url, take_screenshot, and 8 more tools natively.
MCP server: github.com/OzorOwn/frostbyte-mcp
Putting It Together: A Research Agent
Here's a minimal agent that combines all 5 tools:
def research_agent(query):
"""Simple research agent that uses real-time data tools."""
if "price" in query.lower() and any(c in query.upper() for c in ["BTC", "ETH", "SOL"]):
symbol = next(c for c in ["BTC", "ETH", "SOL"] if c in query.upper())
return get_crypto_price(symbol)
if "where is" in query.lower():
ip = query.split()[-1]
return locate_ip(ip)
if "dns" in query.lower() or "lookup" in query.lower():
domain = query.split()[-1]
return dns_lookup(domain)
if "screenshot" in query.lower():
url = query.split()[-1]
return screenshot(url)
# Default: scrape and summarize
return scrape_url(query.split()[-1])
# Examples
research_agent("What's the price of ETH?")
research_agent("Where is 1.1.1.1?")
research_agent("DNS lookup example.com")
research_agent("Screenshot https://github.com")
Get Started
-
Get a free API key:
curl -X POST https://agent-gateway-kappa.vercel.app/api/keys/create - Browse all 40+ tools: API Catalog
- Install the MCP server: frostbyte-mcp
- Use the SDK: JavaScript + Python
200 free credits. No signup. No credit card.
What real-time data tools does your AI agent use? Drop a comment below.
Top comments (0)