APIFuseAPIFuseDocs

Getting started

  • Overview
  • Quickstart

Authentication

  • Managed keys
  • Scopes

Errors

  • Error model
  • Retries

Webhooks

  • Overview
  • Signatures

API reference

  • Amazon Japan
  • Baemin Provider
  • Bithumb
  • Buyee
  • CatchTable Restaurant Search and Reservations
  • Charan Commerce
  • Daangn public listings
  • Daiso Product and Store Data
  • Danawa price comparison
  • Demaecan
  • Ekitan
  • Goodchoice Domestic Lodging
  • Google Flights
  • Han River Water Level
  • Hot Pepper Gourmet provider
  • Hyundai Card
  • Incheon Airport Flights
  • Jalan
  • Japan National Diet Minutes
  • Japan Disaster Alerts
  • Japan EDINET Filings
  • Japan e-Gov Law
  • Japan e-Stat
  • Japan gBizINFO
  • Japan GSI Geocoding
  • Japan e-Gov Open Data
  • Japan Post ZIP
  • Japan Public Holidays
  • JMA Weather
  • KakaoMap Place Search and Directions
  • Kakao T Taxi Dispatch
  • KakaoTalk Native Messaging
  • Korea Address Search
  • AirKorea Real-time Air Pollution
  • Korea Animal Hospital
  • Korea Apartment Rent Prices
  • Korea Apartment Sale Prices
  • Korea Bid Notices
  • Korea Box Office
  • Korea Building Register
  • Korea Bus Arrival
  • Korea Business Verify
  • Korea Camping
  • Korea DART Corporate Finance
  • DART Corporate Info
  • Korea Culture Events
  • Korea Disaster Alert
  • Korea Emergency Hospital
  • Korea ETF
  • Korea EV Charger
  • Korea Exchange Rate
  • Korea Expressway Traffic
  • Korea Finance Products
  • Korea Fuel Price
  • Korea Heritage
  • Korea Holiday
  • Korea Hospital Info
  • Korea Intercity Bus
  • Korea Land Price
  • Korea MFDS Drug Safety
  • Korea MFDS Food Safety
  • Korea Household Waste Disposal Guide
  • Korea National Law Search and Lookup
  • Korea NEIS School Meals
  • Carrier List and Delivery Tracking
  • Korea Parking Lots
  • Korea Performance
  • Korea Pharmacy
  • Korea Population
  • Korea Stock Index
  • Korea Stock Price
  • Korea Store Registry
  • Korea Stray Animals
  • Korea Tour
  • Korea Train Schedule
  • Korea Weather Forecast Data
  • Korea Weather Forecast
  • Korea Welfare Service
  • K-Startup
  • LH Housing Notices
  • Market Kurly product data
  • Mercari
  • Modu Parking
  • Naver Blog Search
  • Naver Flight API
  • Naver Local
  • Naver Map
  • Naver News Search
  • NHK Program Guide
  • NOL Stays
  • Ohouse Store and Contents
  • Rakuten Books
  • Rakuten Ichiba
  • Rakuten Recipe
  • Rakuten Travel
  • SEC EDGAR Filings
  • Seoul Bike
  • Seoul Live Crowd Density
  • Seoul Subway Arrivals
  • Shinhan Bank
  • Shinhan Card
  • Skiplagged
  • Steam Store
  • SUUMO
  • Swing Taxi
  • Tabelog
  • TableCheck
  • Upbit
  • Visit Japan Web
  • Weverse Provider
  • Yahoo! Shopping (Japan)
  • Yogiyo
  • ZOZOTOWN

Guides

  • APIFuse Docs
  • Getting started
  • Authentication and Connections
  • Playground
  • OpenAPI and schemas
  • MCP endpoint
  • Developer MCP guide
  • Schema bundles
  • Next.js App Router integration
  • FastAPI integration
  • Error Handling
  • FAQ
  • Resources

Changelog

  • Changelog
APIFuseAPIFuse
DocsServicesPlaygroundStatus
Log inSign up

Guides

Next.js App Router integration

Call APIFuse from server-side Next.js App Router code.

Use APIFuse from server-side App Router code. Keep APIFuse API keys in server-only configuration and return application-specific data to client components.

1. Validate input

Use the operation schema or a schema bundle artifact to validate incoming request data before calling APIFuse.

2. Call APIFuse from a route handler

ts
import { NextResponse } from "next/server";

export async function POST(request: Request) {
  const input = await request.json();

  const response = await fetch(
    "https://api.apifuse.com/v1/kakaomap/search",
    {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.APIFUSE_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify(input),
      cache: "no-store",
    },
  );

  if (!response.ok) {
    return NextResponse.json(
      { error: "apifuse_request_failed" },
      { status: response.status },
    );
  }

  return NextResponse.json(await response.json());
}

3. Keep secrets on the server

Do not expose APIFuse API keys, provider credentials, or Connection IDs to browser code. Client components should call your application route, not the APIFuse gateway directly.