Everything You Need
macro_api provides a consistent interface to multiple APIs, making your development workflow smoother and more efficient.
Unified Interface
Access multiple APIs through a consistent and intuitive interface design, reducing learning curves.
TypeScript Support
Built with TypeScript from the ground up, providing robust type definitions for all API operations.
Comprehensive Coverage
Support for major platforms and services with detailed method implementations and documentation.
Production-Ready Error Handling
Robust error management with detailed error information for efficient debugging and troubleshooting.
Modern Promise-Based Architecture
Built on modern promise-based architecture, making it easy to integrate with async/await patterns.
Intelligent Caching System
Built-in caching system with support for memory, Redis, and hybrid caching strategies.
Circuit Breaker Pattern
Built-in circuit breaker pattern to prevent cascading failures and improve system resilience.
Request Batching
Automatically batch multiple requests to reduce API calls and improve performance.
Webhook Verification
Built-in webhook signature verification for secure event handling from external services.
Advanced Rate Limiting
Intelligent rate limiting that respects API quotas and automatically handles backoff strategies.
Monitoring & Observability
Built-in metrics collection, logging, and observability features for production monitoring.
Extensible Plugin System
Flexible plugin architecture for extending functionality and integrating with custom services.
Trusted by Developers Worldwide
Join thousands of developers who have simplified their API integrations with macro_api
Integrate Everything
From AI to payments, from music to deployment - macro_api provides production-ready wrappers for all the services you need to build modern applications.
ChatGPT / OpenAI
Complete OpenAI API integration with ChatGPT, GPT-4, embeddings, and function calling capabilities.
Popular Use Cases:
Key Features:
const chatgpt = new ChatGPT({
apiKey: "your-openai-api-key"
});
DeepSeek AI
DeepSeek AI models for code generation, reasoning, and advanced AI capabilities.
Popular Use Cases:
Key Features:
const deepseek = new DeepSeek({
apiKey: "your-deepseek-api-key"
});
Stripe
Complete Stripe payment processing with subscriptions, invoices, and comprehensive financial operations.
Popular Use Cases:
Key Features:
const stripe = new StripeAPI({
secretKey: "sk_test_..."
});
PayPal
PayPal payment processing with orders, subscriptions, and invoice management capabilities.
Popular Use Cases:
Key Features:
const paypal = new PayPalAPI({
clientId: "your-client-id",
clientSecret: "your-client-secret"
});
Slack
Complete Slack integration for team communication, workflow automation, and bot development.
Popular Use Cases:
Key Features:
const slack = new SlackAPI({
botToken: "xoxb-..."
});
SendGrid
Professional email delivery with templates, marketing campaigns, and comprehensive analytics.
Popular Use Cases:
Key Features:
const sendgrid = new SendGridAPI({
apiKey: "SG...."
});
Spotify
Comprehensive Spotify integration for music discovery, playlist management, and user data access.
Popular Use Cases:
Key Features:
const spotify = new SpotifyAPI({
clientId: "your-client-id",
clientSecret: "your-client-secret"
});
GitHub
Complete GitHub integration for repository management, issues, pull requests, and collaboration.
Popular Use Cases:
Key Features:
const github = new GitHubAPI({
token: "ghp_..."
});
Vercel
Vercel deployment automation with project management, domain configuration, and analytics.
Popular Use Cases:
Key Features:
const vercel = new VercelAPI({
accessToken: "your-access-token"
});
AWS S3
Complete AWS S3 object storage with upload, download, and advanced file management capabilities.
Popular Use Cases:
Key Features:
const s3 = new S3API({
accessKeyId: "AKIA...",
secretAccessKey: "your-secret"
});
Docker Hub
Docker Hub container registry management with repository operations and automated builds.
Popular Use Cases:
Key Features:
const dockerhub = new DockerHubAPI({
token: "your-docker-token"
});
Notion
Complete Notion integration for database operations, page management, and content automation.
Popular Use Cases:
Key Features:
const notion = new NotionAPI({
apiKey: "secret_..."
});
YouTube
YouTube channel monitoring with real-time notifications and webhook integration for new video alerts.
Popular Use Cases:
Key Features:
const youtube = new YouTubeNotify({
channelId: "UC...",
apiKey: "your-youtube-api-key"
});
Valorant
Valorant player statistics, match history, leaderboards, and competitive ranking data.
Popular Use Cases:
Key Features:
const valorant = new Valorant({
apiKey?: "optional-henrik-api-key"
});
Football API
Comprehensive football/soccer data including leagues, teams, players, fixtures, and live scores.
Popular Use Cases:
Key Features:
const football = new FootballAPI({
apiKey: "your-api-football-key"
});
Trusted by Developers Worldwide
Join thousands of developers who have simplified their API integrations with macro_api
Ready to Build Something Amazing?
Start integrating these powerful APIs into your applications today with macro_api.
See It in Action
Explore real-world examples and see how easy it is to work with different APIs using macro_api.
import { MacroAPIClient, ChatGPT, StripeAPI, SlackAPI } from 'macro_api';
// Initialize unified client with caching and error handling
const client = new MacroAPIClient({
cache: {
type: 'hybrid',
ttl: 3600, // 1 hour
redis: { url: process.env.REDIS_URL }
},
retries: {
maxRetries: 3,
baseDelay: 1000,
maxDelay: 10000
}
});
// Initialize API services
const chatgpt = new ChatGPT({
apiKey: process.env.OPENAI_API_KEY!
});
const stripe = new StripeAPI({
secretKey: process.env.STRIPE_SECRET_KEY!
});
const slack = new SlackAPI({
botToken: process.env.SLACK_BOT_TOKEN!
});
// Use with automatic error handling and caching
async function processCustomerQuery(query: string, customerId: string) {
try {
// Generate AI response with caching
const aiResponse = await client.execute(
() => chatgpt.chat(query, "You are a helpful customer service assistant."),
{
service: 'openai',
method: 'chat',
params: { query, context: 'customer_service' },
cacheTtl: 1800 // 30 minutes
}
);
// Get customer data
const customer = await client.execute(
() => stripe.getCustomer(customerId),
{
service: 'stripe',
method: 'getCustomer',
params: { customerId }
}
);
// Send notification to support channel
await slack.sendMessage('#customer-support',
`New query from ${customer.email}: ${aiResponse}`
);
return {
response: aiResponse,
customer: customer,
status: 'success'
};
} catch (error) {
console.error('Error processing query:', error);
throw error;
}
}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
About This Example
Initialize multiple API services with built-in caching, error handling, and retry logic for production applications.
Output
Ready to Get Started?
Install macro_api and start building with these powerful APIs today.
Ready to Ship Faster?
Stop reinventing the wheel. Start building amazing applications with macro_api and focus on what makes your product unique.
Loved by Developers
See what the community is saying
"macro_api saved me weeks of development time. The TypeScript support is incredible!"
"Finally, a unified interface for all my favorite APIs. Clean, simple, powerful."
"The error handling and retry logic is production-ready out of the box."
Start building today • No vendor lock-in • Open source • MIT License