Developer API & Integrations
MACROVISONOMICS provides a full Developer Platform for programmatic access to economic data. Whether you’re building dashboards, integrating with AI agents, or automating research workflows, the platform offers multiple integration methods to fit your needs.Integration Methods
REST API
Standard HTTP endpoints with JSON responses. Works with any programming language.
MCP Server
Model Context Protocol server for AI agent compatibility (Claude, GPT, etc.)
OpenAPI Spec
Auto-generated Swagger documentation with interactive API explorer.
REST API
Base URL
All API endpoints are prefixed with/api/v1/:
Authentication
All API requests require an API key passed via theX-API-Key header:
Available Endpoints
Example: Search for Indicators
Example: Fetch Time-Series Data
Rate Limiting
Every API response includes rate limit headers:
Rate limits vary by plan:
API access requires Pro or above. Free accounts cannot create API keys.
When you exceed your rate limit, you’ll receive a
429 Too Many Requests response.
Error Handling
The API returns standard HTTP status codes:API Key Management
Getting Your API Key
1
Sign In
Log in to your MACROVISONOMICS account at macrovisonomics.com
2
Go to Developer Portal
Navigate to the Developer Portal
3
Create a Key
Click “Create API Key”, give it a name, and select your plan tier
4
Copy Your Key
Copy the generated key immediately — it will only be shown once
Key Security Best Practices
- Never expose your API key in client-side code or public repositories
- Use environment variables to store keys in your applications
- Rotate keys periodically for enhanced security
- Create separate keys for different applications or environments
- Revoke unused keys from the Developer Portal
MCP Server (AI Agent Integration)
The MACROVISONOMICS MCP Server implements the Model Context Protocol for seamless integration with AI assistants like Claude, ChatGPT, and other LLM-based tools.Available Tools
The MCP server exposes 7 tools:Connecting to the MCP Server
Add the following to your MCP client configuration:Example: Using with Claude
Once connected, you can ask Claude questions like:- “Search for GDP growth indicators”
- “Get unemployment data for G7 countries from 2015 to 2023”
- “Generate insights on inflation trends in BRICS nations”
OpenAPI Specification
Interactive Documentation
Browse the full API documentation with an interactive explorer at:- View all available endpoints and their parameters
- Try API calls directly from the browser
- See request/response schemas and examples
- Download the OpenAPI spec for code generation
Generating Client Libraries
Download the OpenAPI specification and use tools likeopenapi-generator to create client libraries in any language:
GPT Actions
The OpenAPI spec is fully compatible with OpenAI GPT Actions. You can create a custom GPT that queries MACROVISONOMICS data by importing the spec into the GPT Builder.Code Examples
Python
JavaScript / Node.js
cURL
Usage Tracking
Monitor your API usage from the Developer Portal:- Total requests: Track your API call volume over time
- Response times: Monitor average and p95 response times
- Endpoint breakdown: See which endpoints you use most
- Rate limit status: Check how close you are to your limits
- Error rates: Identify and troubleshoot failed requests
Frequently Asked Questions
How do I get an API key?
How do I get an API key?
Sign in to MACROVISONOMICS and visit the Developer Portal. Click “Create API Key” on the API Keys tab.
What rate limits apply to my API key?
What rate limits apply to my API key?
API access requires Pro or above. Pro gets 60 requests/minute (500 calls/month), Gold gets 200 requests/minute (2,000 calls/month), and Enterprise plans support custom limits with unlimited monthly calls. Free accounts cannot create API keys.
Can I use the API with AI agents like Claude or ChatGPT?
Can I use the API with AI agents like Claude or ChatGPT?
Yes. Use the MCP Server for Claude integration or import the OpenAPI specification into GPT Actions for ChatGPT. Both methods are fully supported.
Is there a sandbox or test environment?
Is there a sandbox or test environment?
API keys work against production data. To test the API before committing to a paid plan, start a 7-day Pro trial — no credit card required — which gives you 500 API calls to explore all 7 endpoints.
What data formats are returned?
What data formats are returned?
All API responses are in JSON format. Time-series data includes country codes, year, and value fields.
Next Steps
Developer Portal
Create API keys and view usage
API Docs (Swagger)
Interactive API explorer