Quick Start Guide
Get up and running with the Vector AI API in minutes! This guide will walk you through everything you need to know to make your first successful API call.
๐ Table of Contents
๐ฏ Prerequisites
Before you begin, make sure you have:
โ Basic API knowledge - Understanding of REST APIs and HTTP requests
โ Command line access - Terminal or command prompt
โ cURL or API client - For making HTTP requests
โ Valid email address - For API key generation
๐ Step 1: Get Your API Key
Request an API Key
curl -X POST "https://api.vector-ai.pro/api/v1/auth/request-key" \
-H "Content-Type: application/json" \
-d '{
"client_name": "My Application",
"email": "[email protected]",
"intended_usage": "Token analysis for my crypto project"
}'
Example Response
{
"success": true,
"data": {
"api_key": "vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957",
"client_id": "client_123456",
"rate_limit": "60/minute",
"tier": "free",
"expires_at": "2025-02-16T10:30:00Z"
}
}
๐ Important: Save Your API Key!
Your API key is only shown once. Save it securely:
# Save to environment variable (recommended)
export VECTOR_API_KEY="vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957"
# Or save to a file
echo "vect_c39cf11bbdadf9cf1376203990ba15189de643f2599cbe3062e5a2a1cecc8957" > api_key.txt
๐งช Step 2: Test Your Connection
Health Check
First, verify the API is accessible:
curl -X GET "https://api.vector-ai.pro/health"
Expected Response
{
"status": "healthy",
"timestamp": "2025-01-16T10:30:00.000Z",
"version": "1.0.0",
"components": {
"database": "connected",
"redis": "available",
"external_apis": "operational"
}
}
Test Authentication
Verify your API key works:
curl -X POST "https://api.vector-ai.pro/api/v1/auth/validate" \
-H "Content-Type: application/json" \
-H "X-Vector-API-Key: your_api_key_here"
๐ Step 3: Analyze Your First Token
Basic Token Analysis
Let's analyze USDC (a stable, well-known token):
curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \
-H "Content-Type: application/json" \
-H "X-Vector-API-Key: your_api_key_here" \
-d '{
"contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
"chain": "eth"
}'
Advanced Analysis with Features
curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \
-H "Content-Type: application/json" \
-H "X-Vector-API-Key: your_api_key_here" \
-d '{
"contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
"chain": "eth",
"features": ["security", "market", "holder_analysis"]
}'
๐ Step 4: Understand the Response
Full Response Structure
{
"success": true,
"data": {
"token_info": {
"name": "USD Coin",
"symbol": "USDC",
"contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
"chain": "ethereum",
"decimals": 6
},
"vector_score": 95,
"grade": "A+",
"recommendation": "๐ข SAFE TO TRADE",
"analysis": {
"security": {
"honeypot_risk": "โ
SAFE",
"rug_pull_risk": "โ
VERY_LOW",
"contract_verified": true,
"proxy_contract": false,
"malicious_functions": []
},
"market": {
"price": "$1.00",
"market_cap": "$32.8B",
"volume_24h": "$4.2B",
"liquidity": "๐ข EXCELLENT",
"price_change_24h": "+0.01%"
},
"holder_analysis": {
"total_holders": 2500000,
"top_10_percentage": 35.2,
"whale_activity": "๐ก MODERATE",
"distribution": "๐ข HEALTHY"
}
},
"metadata": {
"analysis_time": "2.3s",
"timestamp": "2025-01-16T10:30:00.000Z",
"api_version": "1.0.0"
}
}
}
Key Response Fields
vector_score
Overall score (0-100)
95
grade
Letter grade (F to A+)
"A+"
recommendation
Trading recommendation
"๐ข SAFE TO TRADE"
analysis.security
Security analysis results
Risk assessments
analysis.market
Market data and metrics
Price, volume, liquidity
analysis.holder_analysis
Token holder distribution
Whale activity, distribution
๐ Step 5: Next Steps
๐ฅ Popular Use Cases
๐ Token Screening
# Quick security check curl -X POST "https://api.vector-ai.pro/api/v1/token/scan" \ -H "X-Vector-API-Key: $VECTOR_API_KEY" \ -d '{"contract_address": "0x...", "features": ["security"]}'
๐ง Deep Research
# Get AI-powered research report curl -X POST "https://api.vector-ai.pro/api/v1/token/research" \ -H "X-Vector-API-Key: $VECTOR_API_KEY" \ -d '{"contract_address": "0x...", "chain": "eth"}'
๐ Social Analysis
# Analyze Twitter/X sentiment curl -X POST "https://api.vector-ai.pro/api/v1/token/x-analysis" \ -H "X-Vector-API-Key: $VECTOR_API_KEY" \ -d '{"contract_address": "0x...", "chain": "eth"}'
๐ Continue Learning
๐ Authentication Guide - Advanced auth concepts
๐ฏ Endpoint Documentation - Detailed API reference
๐ป Code Examples - Implementation in different languages
๐ ๏ธ Troubleshooting - Common issues and solutions
๐ฏ Integration Examples
Python Integration
import requests
api_key = "your_api_key_here"
headers = {"X-Vector-API-Key": api_key}
response = requests.post(
"https://api.vector-ai.pro/api/v1/token/scan",
headers=headers,
json={
"contract_address": "0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234",
"chain": "eth"
}
)
data = response.json()
print(f"Token: {data['data']['token_info']['name']}")
print(f"Score: {data['data']['vector_score']}")
JavaScript Integration
const response = await fetch('https://api.vector-ai.pro/api/v1/token/scan', {
method: 'POST',
headers: {
'X-Vector-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
contract_address: '0xA0b86991c31cC17C4aC3ee2Ca90C7b8d2e5f234',
chain: 'eth'
})
});
const data = await response.json();
console.log(`Token: ${data.data.token_info.name}`);
console.log(`Score: ${data.data.vector_score}`);
๐ Congratulations!
You've successfully made your first Vector AI API call! You're now ready to:
Build token analysis applications
Integrate security screening
Create trading signals
Develop crypto research tools
๐ Need Help?
๐ Full Documentation
๐ฌ Discord Community
๐ง Support Email
๐ Report Issues
Happy Building with Vector AI! ๐