Docs
Build with APIStack
Quickstart, guides with tested code, AI integrations and articles, all in one place. Every API uses the same key, authentication and error format; each one's parameters and examples are on its page in the API catalog.
Quickstart
Prefer video? · 1:18
Getting started: account, API key and first call
Create a free account, find your API key, run a real request and see it counted in your usage.
- Create a free account (1,000 calls/month, no card).
- Copy your API key from the dashboard.
- Make a call. This example Base64-encodes a string:
cURL
curl -X POST https://apistack.online/api/utilities/base64/v1 \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operation": "encode", "text": "Hello, world"}'JavaScript
const response = await fetch('https://apistack.online/api/utilities/base64/v1', {
method: 'POST',
headers: {
'x-api-key': process.env.APISTACK_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({ operation: 'encode', text: 'Hello, world' })
})
const data = await response.json()
console.log(data)Python
import os, requests
response = requests.post(
"https://apistack.online/api/utilities/base64/v1",
headers={"x-api-key": os.environ["APISTACK_API_KEY"]},
json={"operation": "encode", "text": "Hello, world"},
)
print(response.json())Want to try without an account first? Use Try Free.
Prefer Postman, Insomnia or code generation? Import the Postman collection (every API with a working example; set the apiKey variable) or the OpenAPI 3.0 spec for all APIs.
Authentication
Send your API key in the x-api-key header on every request:
x-api-key: YOUR_API_KEYKeep keys on the server. Don't put them in browser or mobile code, and don't commit them to git. If a key leaks, generate a new key in the dashboard and delete the old one; a deleted key stops working immediately.
Responses and errors
Responses are JSON. Successful calls return "success": true with the result. Errors use HTTP status codes and a consistent body:
{
"success": false,
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid or inactive. Please check your API key and try again."
}| Status | Typical codes | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR, MISSING_PARAMETERS, INVALID_JSON | The request body or query is invalid. The message says which field. |
| 401 | AUTH_REQUIRED, INVALID_API_KEY | No API key, or the key is wrong or inactive. |
| 403 | plan or feature errors | Your plan does not include this API (for example, AI APIs need Pro or Enterprise). |
| 405 | METHOD_NOT_ALLOWED | Wrong HTTP method; check the endpoint on its API page. |
| 429 | QUOTA_EXCEEDED, rate limit | Monthly quota or per-minute rate limit reached. See the headers below. |
| 500 | INTERNAL_ERROR | Something failed on our side. Retry with backoff; contact support if it persists. |
Rate limits and quotas
Each plan has a monthly call quota shared across all APIs, plus a per-minute rate limit:
| Plan | Price | Calls / month | Rate limit |
|---|---|---|---|
| Free | Free | 1,000 | 10/min |
| Pro | $19.99/month | 100,000 | 100/min |
| Enterprise | $79.99/month | 1,000,000 | 500/min |
Responses include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. On a 429, wait until the reset time and retry. We email you at 80% and 100% of your monthly quota. See pricing for upgrades and top-ups.
MCP servers for AI agents
Every API is available to AI agents (Claude, ChatGPT, Cursor, VS Code…) through one Model Context Protocol endpoint, using the same API key, plan access and quota:
https://apistack.online/api/mcp/connectIt exposes three tools: search_apis, get_api_details and call_api. Add ?categories=finance or ?apis=slug1,slug2 to get one tool per API instead. Example for Claude Code:
claude mcp add --transport http apistack https://apistack.online/api/mcp/connect \
--header "x-api-key: YOUR_API_KEY"Setup for Cursor, VS Code and Claude Desktop is on the MCP page, along with the dedicated per-API servers.
Using APIStack through RapidAPI
All APIs are also listed on RapidAPI. If you subscribe there, call the RapidAPI endpoint with your RapidAPI key; billing and quotas are handled by RapidAPI. The APIs and responses are the same.
Guides
Real requests with the real responses they return, in cURL, JavaScript and Python. Every example was tested against production.
Validate email addresses at sign-up (and catch typos like gmial.com)
Check an email address before you store it: syntax, MX records, disposable domains, role accounts and typo suggestions, with one API call in cURL, JavaScript or Python.
Count business days between two dates, excluding public holidays
Count working days between two dates or add N business days to a date, skipping weekends and US, UK, Canadian, Australian, German, French or Japanese public holidays.
Validate international phone numbers and detect the line type
Validate a phone number in E.164 format, find its country, and tell mobile from landline before you send an SMS, with one GET request.
Check SSL certificate expiry for any domain
Get a domain's TLS certificate details (issuer, validity dates, days until expiry, SANs and chain) with one API call, and alert before it expires.
Calculate loan payments and total interest (without letting an LLM do the math)
Get the monthly payment, total interest and first/last payment split for any loan amount, rate and term with one GET request. Useful for fintech apps and AI assistants.
Convert HTML to clean Markdown for LLM prompts and RAG
Turn HTML into clean Markdown (headings, links, lists and tables preserved) to cut prompt tokens and improve retrieval quality, with one POST request.
Add months to a date correctly (Jan 31 + 1 month = Feb 28)
Add or subtract days, weeks, months or years from a date with end-of-month handling: Jan 31 + 1 month is Feb 28, not March 3. One API call, plus day of week, quarter and week number.
Calculate a full mortgage payment: principal, interest, taxes and insurance
Get the full monthly mortgage payment (principal and interest, property tax, insurance, HOA and PMI) plus total interest for any home price, down payment, rate and term, with one POST request.
Look up DNS records for a domain (A, MX, TXT, NS) with one API call
Fetch a domain's DNS records (A, AAAA, MX, TXT, NS) as JSON with one GET request: check email routing, SPF records and domain verification without running dig.
Find the university behind an email address (student and academic verification)
Turn an email address or domain into the university it belongs to (name, country, website) across 10,000+ universities in 200 countries. Useful for student discounts, academic sign-ups and lead enrichment.
Get the largest cities in any country, or the cities near a location
List a country's largest cities by population, or find cities within a radius of any coordinates, with coordinates, state/province, population and time zone. 32,000+ cities in 245 countries from GeoNames.
AI integrations
Connect APIStack tools to agent frameworks and coding assistants through the MCP server. Each recipe was run against the live server.
Give a Vercel AI SDK app 100+ tools with MCP
Connect the APIStack MCP server to the Vercel AI SDK with createMCPClient and let generateText or streamText search and call 100+ APIs.
Use APIStack tools in the OpenAI Agents SDK (Python and TypeScript)
Connect the APIStack MCP server to an OpenAI Agents SDK agent in Python or TypeScript with MCPServerStreamableHttp: calculators, validators, web and data tools.
Call APIStack from the OpenAI Responses API with a remote MCP tool
Let OpenAI call APIStack for you: add the MCP server as a tool in a Responses API request, with no agent framework and no tool-calling loop in your code.
Load APIStack tools into a LangChain or LangGraph agent
Use langchain-mcp-adapters to load APIStack's MCP tools into a LangChain v1 agent (create_agent) or a LangGraph graph over Streamable HTTP.
Add APIStack to Claude Code, Claude Desktop, Cursor and VS Code
Copy-paste MCP configuration for Claude Code, Claude Desktop, Cursor and VS Code so your coding assistant can call 100+ APIStack tools.
Articles
Longer reads on API design, security, performance and AI agents.
AI Agent Orchestration: Managing Complex Workflows with Intelligent Automation
How to choose between a workflow, a single agent and sub-agents, make long runs survive failures, and test the result. With patterns and code.
AI agents · Nov 2026 · 9 min read
Preventing SSRF in APIs That Fetch URLs
How server-side request forgery reaches cloud metadata and internal services, why blocklists of strings fail, and a layered defence with Node.js code.
Security · Nov 2026 · 9 min read
Rate Limit Headers and 429 Handling: A Client and Server Guide
Where the IETF RateLimit headers stand, how Retry-After works, and how to retry a 429 safely with backoff, jitter and idempotency keys.
API design · Nov 2026 · 10 min read
Securing AI Agent Ecosystems: Authentication, Authorization, and Privacy in Agentic Systems
A practical security model for agents: prompt injection and the confused deputy, MCP authorization on OAuth 2.1, least-privilege tools, secrets and privacy.
Security · Nov 2026 · 9 min read
The Economics of AI Agents: Cost Optimization, Resource Management, and ROI Strategies
What drives the cost of an agent run and how to control it: prompt caching, batch APIs, model routing, context management, budgets and ROI per task.
AI agents · Nov 2026 · 9 min read
Validating EU VAT Numbers and IBANs in Code
Implement the IBAN mod-97 check, validate EU VAT numbers against VIES, handle outages and UK and XI numbers, then do the same through one API.
Tutorial · Nov 2026 · 9 min read
Why LLMs Get Dates Wrong, and How to Give Agents a Clock
Language models have no clock and do calendar arithmetic by pattern. Why agents misjudge dates, time zones and working days, and how tools fix it.
AI agents · Nov 2026 · 9 min read
Building Multi-Agent AI Systems: Architecture Patterns and Best Practices
Five orchestration patterns for multi-agent systems, with code for handoffs, parallel work, shared state and voting, and the limits that keep them stable.
AI agents · Jan 2026 · 10 min read
Model Context Protocol (MCP): Building the Future of AI Agent Communication
How MCP connects AI applications to tools and data: primitives, transports, the stateless 2026-07-28 revision, authorization, and a server you can try.
AI agents · Dec 2025 · 9 min read
Build a QR Code Generator in 10 Minutes
Build a small web app that generates and downloads custom QR codes with the APIStack QR Code API, with the API key kept on the server.
Tutorial · Nov 2025 · 10 min read
Advanced API Security: Implementing Zero Trust Architecture
How to apply zero trust to an API: verify every caller, authorize each request against the resource, encrypt internal traffic and log every decision.
Security · Jul 2025 · 9 min read
AI-Powered API Development: The Future is Here
Where AI coding assistants help when building an API (spec drafts, handlers, tests, docs), where they fail, and how to verify what they produce.
AI agents · Jul 2025 · 8 min read
REST API Design: Principles and Best Practices
Resources, methods, status codes, error formats, pagination and versioning: the conventions that make a REST API predictable to use.
API design · Jul 2025 · 10 min read
Getting Started with API Integration: A Developer's Guide
The basics of calling an HTTP API from your code: requests and responses, API keys and OAuth 2.0, error handling, retries, and testing.
Tutorial · Jun 2025 · 8 min read
Enterprise API Architecture: Building Production-Ready Systems
Patterns for APIs shared across many teams: domain boundaries, contract-first design, gateways, backends for frontends, events, security and versioning.
Architecture · Jun 2025 · 8 min read
The Future of AI-Powered APIs: Understanding Agentic AI and Autonomous Systems
What agentic AI means in practice and how to design APIs that agents can call reliably: tool descriptions, errors, idempotency, limits and oversight.
AI agents · May 2025 · 8 min read
Understanding Rate Limiting and How to Handle It
How rate limiting algorithms work, how to enforce limits in one process or across servers with Redis, and how clients should respond to HTTP 429.
API design · May 2025 · 12 min read
Building Scalable Microservices APIs: Architecture Patterns and Best Practices
How to split a system into services that scale independently: boundaries, stateless design, a database per service, sagas and distributed tracing.
Architecture · May 2025 · 9 min read
API Monetization Strategies: Turning APIs into Revenue Streams
How to charge for an API: choosing what to bill for, the main pricing models and their trade-offs, and how to meter usage and enforce quotas correctly.
Business · May 2025 · 9 min read
API Security Best Practices: Protecting Your Data
Practical API security: token and API key authentication, per-object authorization, input validation, parameterized queries, TLS and logging.
Security · May 2025 · 10 min read
Container-Native APIs: Building for Modern Cloud Infrastructure
How to build an API that runs well in containers: a small image, clean shutdown, health endpoints, and a Kubernetes deployment with probes and autoscaling.
Architecture · Apr 2025 · 9 min read
Monitoring and Analytics for API Performance
What to measure on a production API, how to instrument requests and health checks, which alerts are worth paging on, and how to read usage data.
Performance · Apr 2025 · 8 min read
Database-First API Design: Building Robust Data Layers
How to design the schema before the endpoints: constraints, relationships, indexes that match your queries, and how database errors map to API responses.
Architecture · Apr 2025 · 9 min read
API Performance Optimization: Strategies for Speed and Efficiency
How to make an API faster: measure latency percentiles, cut database round trips, cache at the right layer, compress responses and scale out.
Performance · Apr 2025 · 11 min read
Microservices Communication Patterns: Building Resilient Systems
When to use synchronous calls, queues or events between microservices, and how timeouts, retries, idempotency and circuit breakers contain failures.
Architecture · Dec 2024 · 10 min read
API Development Trends: What Changed and What Lasted
A November 2026 review of the API trends we predicted for 2024: AI, GraphQL federation, edge runtimes, zero trust, OpenAPI tooling and real-time APIs.
API design · Sept 2024 · 10 min read
Support
Questions or problems? Email support@apistack.online with the endpoint, the request you sent and the response you got.