Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 2 min read

Cheapest flights out of Berlin with one curl call

Kiwi.com has no public API for its flight search. If you want its prices in your app, the usual route is a scraper: a headless browser, a parser for the result cards, proxies once the bot wall notices you, and a fix ever

Kiwi.com has no public API for its flight search. If you want its prices in your app, the usual route is a scraper: a headless browser, a parser for the result cards, proxies once the bot wall notices you, and a fix every time the page changes.

Here is the same data as one request:

curl 'https://api.maviapi.com/v1/sites/kiwi/explore?from=BER&limit=3' \
  -H "Authorization: Bearer $MAVI_KEY"
{
  "data": {
    "destinations": [
      { "city": "Milan",    "price": { "amount": 41, "currency": "EUR" }, "departure": { "local_time": "2026-12-26T08:05:00" } },
      { "city": "Budapest", "price": { "amount": 47, "currency": "EUR" }, "departure": { "local_time": "2026-12-26T21:55:00" } },
      { "city": "Venice",   "price": { "amount": 54, "currency": "EUR" }, "departure": { "local_time": "2026-12-26T06:00:00" } }
    ]
  }
}

(Trimmed. The full answer also has airports, arrival times and pagination.)

What this is

maviapi is the unofficial API for any website. Each site in the catalog gets a hosted API with named endpoints, parameters and a published response schema, plus OpenAPI and Postman specs. You call all of them with one key.

The part we care most about is what happens later. When a site changes its markup, our health checks catch the failure and a repair build goes out after it passes a live request. Endpoints only grow: new fields and endpoints are added next to the old ones, and every change is in the API's public changelog. Your code keeps calling the same shape.

When the site is missing

Paste the site's URL and describe the data you want. Our build agent produces a tested draft API, and you review it before publishing. Building costs no credits; the Free plan includes one new API a month.

From an AI agent

The same catalog is available as MCP tools. In Claude Code:

claude mcp add --transport http maviapi https://mcp.maviapi.com/mcp

Then ask something like "cheapest flights from Berlin next month" and the agent calls the Kiwi endpoint instead of browsing the page.

Pricing

Free: 1,000 credits a month, no card. Most calls cost 1 credit, and failed requests are free. Every answer carries its cost in the x-maviapi-credits header.

Try it: https://maviapi.com/apis/kiwi

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.