Built for Developers

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.

Learn more

TypeScript Support

Built with TypeScript from the ground up, providing robust type definitions for all API operations.

Learn more

Comprehensive Coverage

Support for major platforms and services with detailed method implementations and documentation.

Learn more

Production-Ready Error Handling

Robust error management with detailed error information for efficient debugging and troubleshooting.

Learn more

Modern Promise-Based Architecture

Built on modern promise-based architecture, making it easy to integrate with async/await patterns.

Learn more

Intelligent Caching System

Built-in caching system with support for memory, Redis, and hybrid caching strategies.

Learn more

Circuit Breaker Pattern

Built-in circuit breaker pattern to prevent cascading failures and improve system resilience.

Learn more

Request Batching

Automatically batch multiple requests to reduce API calls and improve performance.

Learn more

Webhook Verification

Built-in webhook signature verification for secure event handling from external services.

Learn more

Advanced Rate Limiting

Intelligent rate limiting that respects API quotas and automatically handles backoff strategies.

Learn more

Monitoring & Observability

Built-in metrics collection, logging, and observability features for production monitoring.

Learn more

Extensible Plugin System

Flexible plugin architecture for extending functionality and integrating with custom services.

Learn more
Trusted Globally

Trusted by Developers Worldwide

Join thousands of developers who have simplified their API integrations with macro_api

10+
API Services
GitHub Stars
Weekly Downloads
100%
TypeScript
50+ countries • MIT Licensed
15 Production-Ready APIs

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

stablebeginner
98%

Complete OpenAI API integration with ChatGPT, GPT-4, embeddings, and function calling capabilities.

Popular Use Cases:
ChatbotsContent GenerationCode Assistance
Key Features:
Chat Completions
Streaming Responses
Function Calling
Embeddings
6+ methods
Paid
Quick Start
const chatgpt = new ChatGPT({
  apiKey: "your-openai-api-key"
});
View Documentation

DeepSeek AI

stableintermediate
75%

DeepSeek AI models for code generation, reasoning, and advanced AI capabilities.

Popular Use Cases:
Code GenerationTechnical WritingProblem Solving
Key Features:
Code Generation
Reasoning Models
Chat Completions
Streaming
4+ methods
Free Tier
Quick Start
const deepseek = new DeepSeek({
  apiKey: "your-deepseek-api-key"
});
View Documentation

Stripe

stableintermediate
95%

Complete Stripe payment processing with subscriptions, invoices, and comprehensive financial operations.

Popular Use Cases:
E-commerceSaaS BillingMarketplace Payments
Key Features:
Payment Processing
Subscriptions
Invoicing
Marketplace
6+ methods
Free Tier
Quick Start
const stripe = new StripeAPI({
  secretKey: "sk_test_..."
});
View Documentation

PayPal

stableintermediate
85%

PayPal payment processing with orders, subscriptions, and invoice management capabilities.

Popular Use Cases:
E-commerceDigital ProductsServices
Key Features:
Order Management
Payment Processing
Invoicing
Subscriptions
4+ methods
Free Tier
Quick Start
const paypal = new PayPalAPI({
  clientId: "your-client-id",
  clientSecret: "your-client-secret"
});
View Documentation

Slack

stableintermediate
90%

Complete Slack integration for team communication, workflow automation, and bot development.

Popular Use Cases:
Team CommunicationWorkflow AutomationBot Development
Key Features:
Messaging
File Uploads
Channel Management
Slash Commands
5+ methods
Free Tier
Quick Start
const slack = new SlackAPI({
  botToken: "xoxb-..."
});
View Documentation

SendGrid

stablebeginner
85%

Professional email delivery with templates, marketing campaigns, and comprehensive analytics.

Popular Use Cases:
Transactional EmailsMarketing CampaignsUser Notifications
Key Features:
Transactional Email
Email Templates
Marketing Campaigns
Analytics
5+ methods
Free Tier
Quick Start
const sendgrid = new SendGridAPI({
  apiKey: "SG...."
});
View Documentation

Spotify

stableintermediate
80%

Comprehensive Spotify integration for music discovery, playlist management, and user data access.

Popular Use Cases:
Music AppsPlaylist GeneratorsMusic Discovery
Key Features:
Music Search
Playlist Management
User Data
Playback Control
5+ methods
Free Tier
Quick Start
const spotify = new SpotifyAPI({
  clientId: "your-client-id",
  clientSecret: "your-client-secret"
});
View Documentation

GitHub

stableintermediate
95%

Complete GitHub integration for repository management, issues, pull requests, and collaboration.

Popular Use Cases:
CI/CD AutomationCode ManagementIssue Tracking
Key Features:
Repository Management
Issue Tracking
Pull Requests
Content Management
6+ methods
Free Tier
Quick Start
const github = new GitHubAPI({
  token: "ghp_..."
});
View Documentation

Vercel

stableintermediate
85%

Vercel deployment automation with project management, domain configuration, and analytics.

Popular Use Cases:
CI/CD PipelinesAutomated DeploymentPreview Environments
Key Features:
Deployment Management
Project Configuration
Domain Management
Environment Variables
5+ methods
Free Tier
Quick Start
const vercel = new VercelAPI({
  accessToken: "your-access-token"
});
View Documentation

AWS S3

stableadvanced
90%

Complete AWS S3 object storage with upload, download, and advanced file management capabilities.

Popular Use Cases:
File StorageContent DeliveryData Backup
Key Features:
Object Storage
Pre-signed URLs
Bucket Management
Access Control
5+ methods
Free Tier
Quick Start
const s3 = new S3API({
  accessKeyId: "AKIA...",
  secretAccessKey: "your-secret"
});
View Documentation

Docker Hub

stableintermediate
75%

Docker Hub container registry management with repository operations and automated builds.

Popular Use Cases:
Container RegistryCI/CD PipelinesImage Distribution
Key Features:
Repository Management
Image Operations
Automated Builds
Webhooks
5+ methods
Free Tier
Quick Start
const dockerhub = new DockerHubAPI({
  token: "your-docker-token"
});
View Documentation

Notion

stableintermediate
80%

Complete Notion integration for database operations, page management, and content automation.

Popular Use Cases:
Content ManagementDatabase IntegrationWorkflow Automation
Key Features:
Database Operations
Page Management
Block Operations
Search
5+ methods
Free Tier
Quick Start
const notion = new NotionAPI({
  apiKey: "secret_..."
});
View Documentation

YouTube

stablebeginner
70%

YouTube channel monitoring with real-time notifications and webhook integration for new video alerts.

Popular Use Cases:
Content MonitoringSocial Media AutomationFan Communities
Key Features:
Channel Monitoring
Webhook Integration
Video Metadata
Real-time Updates
4+ methods
Free Tier
Quick Start
const youtube = new YouTubeNotify({
  channelId: "UC...",
  apiKey: "your-youtube-api-key"
});
View Documentation

Valorant

stablebeginner
65%

Valorant player statistics, match history, leaderboards, and competitive ranking data.

Popular Use Cases:
Gaming StatisticsPlayer TrackingEsports Analytics
Key Features:
Player Stats
Match History
Leaderboards
Agent Data
5+ methods
Free Tier
Quick Start
const valorant = new Valorant({
  apiKey?: "optional-henrik-api-key"
});
View Documentation

Football API

stablebeginner
70%

Comprehensive football/soccer data including leagues, teams, players, fixtures, and live scores.

Popular Use Cases:
Sports AppsFantasy FootballLive Score Displays
Key Features:
Live Scores
League Data
Team Statistics
Player Stats
5+ methods
Free Tier
Quick Start
const football = new FootballAPI({
  apiKey: "your-api-football-key"
});
View Documentation

Trusted by Developers Worldwide

Join thousands of developers who have simplified their API integrations with macro_api

15+
API Services
75+
Total Methods
100%
TypeScript
99.9%
Uptime

Ready to Build Something Amazing?

Start integrating these powerful APIs into your applications today with macro_api.

Interactive Examples

See It in Action

Explore real-world examples and see how easy it is to work with different APIs using macro_api.

Unified API Client
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;
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

About This Example

Initialize multiple API services with built-in caching, error handling, and retry logic for production applications.

Output

Click "Run" to see the output

Ready to Get Started?

Install macro_api and start building with these powerful APIs today.

$ npm install macro_api
View Full Documentation
Join 10,000+ developers

Ready to Ship Faster?

Stop reinventing the wheel. Start building amazing applications with macro_api and focus on what makes your product unique.

Get Started
$ npm install macro_api
Weekly Downloads
GitHub Stars
Happy Developers
10+
API Services

Loved by Developers

See what the community is saying

"macro_api saved me weeks of development time. The TypeScript support is incredible!"

@sarah_dev

"Finally, a unified interface for all my favorite APIs. Clean, simple, powerful."

@mike_codes

"The error handling and retry logic is production-ready out of the box."

@alex_builds

Start building today • No vendor lock-in • Open source • MIT License