Skip to content

Build, launch and monetize API products in a few lines of code

One file generates the API, CLI, MCP, SDK, docs, portal and Stripe billing, the plumbing tax every other API pays by hand.

Sign in with GitHubnpx apis.dev init

Your brand only. Public prices. Paid straight to your Stripe.

What you sell

definition.ts18 lines
import { define, secret } from 'apis.dev'

/** Any company by its domain, with its headcount and sector. */
export default define({
  name: 'companyfacts', domain: 'companyfacts.apis.dev',
  sources: {
    firms: {
      origin: 'https://firms.example.com',
      key: secret('FIRMS_KEY'),
    },
  },
  Company: {
    domain:    { type: 'url!#',   from: 'firms', map: 'website' },
    employees: { type: 'number?', from: 'firms', map: 'headcount' },
    sector:    { type: 'string?', from: 'firms', map: 'industry' },
  },
  offer: { 'Company.get': , 'Company.search': 0.005 },
})
GET companyfacts.apis.dev/companies/acme.com
curl https://companyfacts.apis.dev/companies/acme.com
200 OK
X-Cost: price=0.002, currency="USD"$0.002 a call
{
  "domain": "acme.com",
  "employees": 240,
  "sector": "Software"
}
Company.get12,400 × 0.00224.80
Company.search1,300 × 0.0056.50
Paid to your Stripe · October 202631.30

Skip the plumbing tax.

To sell one API, you build ten other products first. Here you write one file, and the ten are generated from it.

  • Landing sitecompanyfacts.apis.dev

  • Docs/docs

  • Developer portal and keys/dashboard

  • Stripe Checkout/checkout

  • Rate limits429 with Retry-After

  • MeteringX-Cost on every reply

  • CLInpx companyfacts

  • MCP server/mcp

  • SDKnpm i companyfacts

  • llms.txt and agents.json/llms.txt

Built by hand, the ten take months before your first sale, and agents still cannot find or call your API.

Your file is the whole product.

Your API is the interesting 10%. APIs.Dev handles the other 90%.

  1. Define. Write what you sell and what it costs, in a few lines.
    $ npx apis.dev init
  2. Launch. One deploy puts all eleven live on a free address, then on your own domain.
    $ npx apis.dev deploy
  3. Get paid. People and agents sign up, call and pay. Stripe pays you directly.
    Paid to your Stripe · October 2026

Edit the file: rename it, change a price, add a field. The plan is the platform's own answer, as you type.

Answered by POST /v1/products/yourfacts/plans

Answers on https://yourfacts.io.sb

  • Company.get$0.002getCompany · npx yourfacts companies get
  • Company.search$0.005searchCompanies · npx yourfacts companies search
  • APIyourfacts.io.sb/companies
  • Landing siteyourfacts.io.sb/
  • Docsyourfacts.io.sb/docs
  • Developer portal and keysyourfacts.io.sb/dashboard
  • Stripe Checkoutyourfacts.io.sb/checkout
  • Rate limits429 with Retry-After
  • MeteringX-Cost on every reply
  • CLInpx yourfacts
  • MCP serveryourfacts.io.sb/mcp
  • SDKnpm i yourfacts
  • llms.txt and agents.jsonyourfacts.io.sb/llms.txt

Agents buy it too.

They find it, call it and pay for it, with your price on every reply.

  1. → GET companyfacts.apis.dev/.well-known/agents.json← 200 mcp { tools: ["getCompany", "searchCompanies"] }
  2. → POST companyfacts.apis.dev/mcp tools/call getCompany← 402 payment_requiredoffers: credits $10, credits $50, credits $200
  3. → Stripe Checkout · $50.00 paid to Companyfacts's Stripe← balance $50.00
  4. → POST companyfacts.apis.dev/mcp tools/call getCompany← 200 { "domain": "acme.com", "employees": 240, "sector": "Software" }_meta.cost: { price: 0.002, currency: "USD" }

Every price is public, including APIs.Dev's.

Free until you get paid. Then a small share of what your Customers pay, smaller on each plan.

  • FreeBuilding it, and running something real$0 a month + 2%
  • LaunchFinding out who wants it, and getting the first Customers$25 a month + 1%
  • TeamMore than five people, or building for clients$99 a month + 0.5%
  • ScalePassing a security review$399 a month + 0.25%

You keep, on Free980.00

Launch is cheaper above $2,500, Team is cheaper above $14,800, Scale is cheaper above $120,000 a month. Every plan, compared

Run an API business.

201 Created

Brand
yours only Customers never see ours
Prices
public always on show, APIs.Dev's too
Payouts
your Stripe money lands in your account
Defaults
yours to override every one of them
npx apis.dev init
Sign in with GitHub

A live, priced API product under your name, earning from the first call.