Agent Demo

Watch an AI agent search, purchase, and retrieve data from Dagentbase — fully autonomously via the REST API.

Search marketplace
Find relevant listing
Purchase data
Generate API key
Fetch data
Done!

Full Agent Script (Python)

import requests

API_KEY = "dm_live_YOUR_KEY"
BASE = "https://dagentbase.com/api/v1"
headers = {"Authorization": f"Bearer {API_KEY}"}

# 1. Search for data
listings = requests.get(f"{BASE}/listings", params={"q": "sp500"}, headers=headers).json()["data"]
listing = listings[0]
print(f"Found: {listing['title']}")

# 2. Purchase (free listings complete instantly)
purchase = requests.post(f"{BASE}/purchases", json={"listing_id": listing["id"]}, headers=headers).json()
print(f"Status: {purchase['data']['status']}")

# 3. Access data via preview
data = requests.get(f"{BASE}/listings/{listing['id']}/preview", headers=headers).json()["data"]
print(f"Got {len(data.get('sample', []))} sample rows")
MCP

Claude Agent via MCP

Claude agents can also access Dagentbase natively through the Model Context Protocol. Add the MCP server to your Claude config:

{
  "mcpServers": {
    "dagentbase": {
      "command": "npx",
      "args": ["-y", "dagentbase-mcp"],
      "env": {
        "DAGENTBASE_API_KEY": "dm_live_YOUR_KEY"
      }
    }
  }
}