Ctrl+K
Categories
Complete API documentation for integrating with the WatchDogs platform
The WatchDogs API provides programmatic access to all platform features including NFT marketplace data, staking information, token analytics, and AI agent interactions. Our RESTful API is designed for easy integration and comprehensive functionality.
RESTful API
Secure & Authenticated
Real-time Data
Bearer token authentication is required only for POST endpoints (AI chat & analysis). All GET endpoints are now public and can be accessed without authentication. You must own at least 1 WatchDogs NFT OR stake a minimum of 133,133 WATCH tokens to generate a Bearer token.
Token Generation Requirements:
Authorization Header Format:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
API endpoints have rate limits to ensure fair usage and prevent abuse. Limits are applied per IP address.
Endpoint | Method | Rate Limit | Category |
---|---|---|---|
/api/chat | POST | 10 requests/minute | AI Chat |
/api/risk-analysis | POST | 5 requests/minute | AI Analysis |
/api/staking-stats | GET | 30 requests/minute | Staking |
/api/tvl-analytics | GET | 30 requests/minute | Analytics |
/api/analyzed-token-data | GET | 20 requests/minute | Token Data |
/api/collection-stats | GET | 50 requests/minute | NFT Collections |
/api/nft-owner | GET | 50 requests/minute | NFT Collections |
/api/collections | GET | 50 requests/minute | NFT Collections |
/collections_metadata/{address}.json | GET | 50 requests/minute | NFT Collections |
Most endpoints are publicly accessible, but some require specific access controls or API keys.
AI-powered chat and token analysis endpoints.
Staking statistics and TVL analytics.
Market data for discovered tokens with AI analysis.
NFT collection metadata and information.
Test this endpoint:
curl -X POST https://watchdogs.ink/api/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_BEARER_TOKEN" \
-d '{
"message": "Tell me about this collection",
"collectionId": "watchdogs",
"conversationHistory": [],
"openaiApiKey": "sk-your-openai-api-key-here"
}'
Invoke-WebRequest -Uri "https://watchdogs.ink/api/chat" -Method POST \
-Headers @{"Content-Type"="application/json"; "Authorization"="Bearer YOUR_BEARER_TOKEN"} \
-Body '{
"message": "Tell me about this collection",
"collectionId": "watchdogs",
"conversationHistory": [],
"openaiApiKey": "sk-your-openai-api-key-here"
}'
Test this endpoint:
curl -X POST https://watchdogs.ink/api/risk-analysis \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_BEARER_TOKEN" \
-d '{
"tokenData": {
"contractAddress": "0x53EB0098d09B8d1008f382BbD2A5D4f649111710"
},
"openaiApiKey": "sk-your-openai-api-key-here"
}'
Invoke-WebRequest -Uri "https://watchdogs.ink/api/risk-analysis" -Method POST \
-Headers @{"Content-Type"="application/json"; "Authorization"="Bearer YOUR_BEARER_TOKEN"} \
-Body '{
"tokenData": {
"contractAddress": "0x53EB0098d09B8d1008f382BbD2A5D4f649111710"
},
"openaiApiKey": "sk-your-openai-api-key-here"
}'
curl -X GET "https://watchdogs.ink/api/staking-stats"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/staking-stats" -Method GET
curl -X GET "https://watchdogs.ink/api/tvl-analytics?timeframe=all&includeAllHistory=true"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/tvl-analytics?timeframe=all&includeAllHistory=true" -Method GET
curl -X GET "https://watchdogs.ink/api/analyzed-token-data?sortBy=volume24h&order=desc&limit=10"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/analyzed-token-data?sortBy=volume24h&order=desc&limit=10" -Method GET
curl -X GET "https://watchdogs.ink/collections_metadata/0x58da2f96c473e9cb89f0de7c6f1faede70d47c93.json"
Invoke-WebRequest -Uri "https://watchdogs.ink/collections_metadata/0x58da2f96c473e9cb89f0de7c6f1faede70d47c93.json" -Method GET
curl -X GET "https://watchdogs.ink/api/collection-stats?address=0x58da2f96c473e9cb89f0de7c6f1faede70d47c93"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/collection-stats?address=0x58da2f96c473e9cb89f0de7c6f1faede70d47c93" -Method GET
curl -X GET "https://watchdogs.ink/api/nft-owner?address=0x58da2f96c473e9cb89f0de7c6f1faede70d47c93&tokenId=1"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/nft-owner?address=0x58da2f96c473e9cb89f0de7c6f1faede70d47c93&tokenId=1" -Method GET
curl -X GET "https://watchdogs.ink/api/collections"
Invoke-WebRequest -Uri "https://watchdogs.ink/api/collections" -Method GET
{
"riskScore": 45,
"riskLevel": "MODERATE",
"analysis": "WATCHDOGS (WATCH) presents a moderate level of risk...",
"keyFactors": ["Factor 1", "Factor 2", "Factor 3"],
"socialSentiment": "Positive community sentiment",
"recommendation": "Proceed with caution",
"redFlags": [
{
"flag": "Low liquidity",
"severity": "moderate"
}
],
"analyzedAt": "2024-01-15T10:30:00.000Z"
}
{
"analytics": {
"currentTVL": 6000.68,
"totalStaked": 54900980.29,
"totalUnstaked": 48900980.29,
"netStaked": 6000000,
"totalTransactions": 630,
"stakeTransactions": 315,
"unstakeTransactions": 315,
"averageStakeAmount": 174288.83,
"averageUnstakeAmount": 155241.21,
"tokenPrice": 0.000123,
"dataSource": "blockchain"
},
"data": [
{
"timestamp": 1741718187000,
"value": 6000.68,
"tokensAmount": 50000980.30,
"description": "+50000980.30 WATCH from 0x5A30...c544",
"type": "stake"
}
],
"filters": {
"type": "all",
"timeframe": "all",
"includeAllHistory": true
}
}
{
"contractAddress": "0x58da2f96c473e9cb89f0de7c6f1faede70d47c93",
"collectionName": "WatchDogs",
"collectionSymbol": "WATCH",
"totalSupply": 133,
"holders": 24,
"uniqueOwners": 24,
"totalTokens": 133,
"floorPrice": 0.5,
"averagePrice": 0.75,
"listedTokens": 15,
"lastUpdated": "2024-01-15T10:30:00.000Z"
}
Need help with the API? Here are the best ways to get support and stay updated.
Test all endpoints directly in your browser with our Swagger UI interface. No setup required!