Lunar Proxy API
Proxy endpoints for routing third-party API traffic through the Lunar Gateway with policy enforcement, traffic controls, and observability.
Proxy endpoints for routing third-party API traffic through the Lunar Gateway with policy enforcement, traffic controls, and observability.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lunar-proxy-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lunar.dev Gateway Proxy API
description: The Lunar.dev Gateway Proxy API handles the routing of outbound (egress) API traffic through the Lunar Gateway. Client applications send their third-party API requests through this proxy, which provides traffic management, policy enforcement, caching, rate limiting, quota management, and real-time observability. Requests are routed by specifying the target host via the x-lunar-host header, and the gateway forwards the request while applying configured flows and policies.
version: 1.0.0
contact:
name: Lunar.dev
url: https://www.lunar.dev/
license:
name: MIT
url: https://github.com/TheLunarCompany/lunar/blob/main/LICENSE
servers:
- url: http://localhost:8000
description: Lunar Gateway Proxy Server
tags:
- name: Proxy
description: Proxy endpoints for routing third-party API traffic through the Lunar Gateway with policy enforcement, traffic controls, and observability.
paths:
/{path}:
get:
operationId: proxyGet
summary: Lunar.dev Proxy GET request
description: Forwards a GET request to the target API host specified in the x-lunar-host header. The Lunar Gateway applies any configured flows and policies before forwarding the request and returns the response from the upstream API.
tags:
- Proxy
parameters:
- $ref: '#/components/parameters/Path'
- $ref: '#/components/parameters/LunarHost'
- $ref: '#/components/parameters/LunarConsumerTag'
responses:
'200':
description: Proxied response from the upstream API.
'502':
description: Bad gateway - upstream API is unreachable.
'503':
description: Service unavailable - rate limited or quota exceeded.
post:
operationId: proxyPost
summary: Lunar.dev Proxy POST request
description: Forwards a POST request to the target API host specified in the x-lunar-host header. The Lunar Gateway applies any configured flows and policies before forwarding the request.
tags:
- Proxy
parameters:
- $ref: '#/components/parameters/Path'
- $ref: '#/components/parameters/LunarHost'
- $ref: '#/components/parameters/LunarConsumerTag'
requestBody:
description: Request body to forward to the upstream API.
content:
application/json:
schema:
type: object
'*/*':
schema:
type: string
format: binary
responses:
'200':
description: Proxied response from the upstream API.
'502':
description: Bad gateway - upstream API is unreachable.
'503':
description: Service unavailable - rate limited or quota exceeded.
put:
operationId: proxyPut
summary: Lunar.dev Proxy PUT request
description: Forwards a PUT request to the target API host specified in the x-lunar-host header. The Lunar Gateway applies any configured flows and policies before forwarding the request.
tags:
- Proxy
parameters:
- $ref: '#/components/parameters/Path'
- $ref: '#/components/parameters/LunarHost'
- $ref: '#/components/parameters/LunarConsumerTag'
requestBody:
description: Request body to forward to the upstream API.
content:
application/json:
schema:
type: object
'*/*':
schema:
type: string
format: binary
responses:
'200':
description: Proxied response from the upstream API.
'502':
description: Bad gateway - upstream API is unreachable.
'503':
description: Service unavailable - rate limited or quota exceeded.
delete:
operationId: proxyDelete
summary: Lunar.dev Proxy DELETE request
description: Forwards a DELETE request to the target API host specified in the x-lunar-host header. The Lunar Gateway applies any configured flows and policies before forwarding the request.
tags:
- Proxy
parameters:
- $ref: '#/components/parameters/Path'
- $ref: '#/components/parameters/LunarHost'
- $ref: '#/components/parameters/LunarConsumerTag'
responses:
'200':
description: Proxied response from the upstream API.
'502':
description: Bad gateway - upstream API is unreachable.
'503':
description: Service unavailable - rate limited or quota exceeded.
patch:
operationId: proxyPatch
summary: Lunar.dev Proxy PATCH request
description: Forwards a PATCH request to the target API host specified in the x-lunar-host header. The Lunar Gateway applies any configured flows and policies before forwarding the request.
tags:
- Proxy
parameters:
- $ref: '#/components/parameters/Path'
- $ref: '#/components/parameters/LunarHost'
- $ref: '#/components/parameters/LunarConsumerTag'
requestBody:
description: Request body to forward to the upstream API.
content:
application/json:
schema:
type: object
'*/*':
schema:
type: string
format: binary
responses:
'200':
description: Proxied response from the upstream API.
'502':
description: Bad gateway - upstream API is unreachable.
'503':
description: Service unavailable - rate limited or quota exceeded.
components:
parameters:
LunarHost:
name: x-lunar-host
in: header
required: true
description: The target host to forward the request to. This specifies which third-party API the request should be routed to through the Lunar Gateway.
schema:
type: string
examples:
catfact:
value: catfact.ninja
summary: Cat Facts API
generic:
value: api.example.com
summary: Generic API host
Path:
name: path
in: path
required: true
description: The original request path to forward to the upstream API. This is the path that would normally be sent directly to the third-party API.
schema:
type: string
LunarConsumerTag:
name: x-lunar-consumer-tag
in: header
required: false
description: An optional tag identifying the consuming application or service. Used for tracking and applying consumer-specific policies and quota allocations.
schema:
type: string
examples:
backend:
value: backend-service
summary: Backend service consumer tag
externalDocs:
description: Lunar.dev Documentation
url: https://docs.lunar.dev/