Next.js developer in Antwerp

Next.js for businesses in Antwerp, delivered remotely by one developer.

Next.js developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.

My WordPress.org profile

A web shop or portal in Flanders collects addresses all day: delivery, invoicing, registration. The Flemish government publishes the official address register behind them through an open API. I am Mariusz Szatkowski, a Gdynia developer working through email and documents. This page covers that API from the official documentation, and how to use it from a Next.js app.

Grote Markt in Antwerp with the spire of the Cathedral of Our Lady

The spire of the Cathedral of Our Lady above the Grote Markt in Antwerp. Photograph by Sergey Ashmarin on Wikimedia Commons, CC BY-SA 3.0.

#What is the Basisregisters Vlaanderen API?

The documentation site is published by Digitaal Vlaanderen, an official site of the Flemish government. Its introduction says it documents the API endpoints of the buildings and address register and of the road register. The REST base URL is https://api.basisregisters.vlaanderen.be, open to everyone.

The documentation is also available as a machine-readable OpenAPI file, which I used for the parameter lists below: docs.basisregisters.vlaanderen.be/docs/v2/docs.json.

#Which API key and limits apply in Flanders?

The documentation points to a separate page for requesting and using API keys, and says each key has a limit of requests per second. In the address endpoints the x-api-key header is marked optional. My test calls on 4 December 2026 worked without a key. A production shop should read the key documentation and decide, since limits are tied to keys.

Over the limit the API answers HTTP 429 Too Many Requests. The documentation advises clients to:

  • pause briefly, for example a few hundred milliseconds, and retry
  • use exponential backoff or a fixed wait before resending
  • keep the total requests per second per key below the limit

The match endpoint has an extra note. On top of the limits of your own key, a general limit applies to that endpoint, shared across all issued keys. A shop can therefore be throttled there without reaching its own key limit. Plan for 429 on that endpoint even when your own traffic is small.

#Which endpoint gives autocomplete?

GET /v2/adressen/zoeken searches for a street name or an address, with or without box numbers, within one municipality or all of Flanders. From the OpenAPI file:

ParameterMeaning
qthe search query
gemeenteNaamexact municipality name filter
niscodeexact NIS code filter
limitat most 50, default 10
statusvoorgesteld, inGebruik, gehistoreerd or afgekeurd
resultaatTypeadressen or straatnamen

The documentation gives two rules for clients. Wait at least 300 milliseconds after the last keystroke before sending a request, which matches average human reaction time. Apply local filters such as municipality or postcode to shrink the search.

The response is a list of results. Each has an id, an objectId, a detail URL and a result text, which is either a street name or a full address. In a test on 4 December 2026, a query for house number 1 on the Meir in Antwerp returned a Meirbrug address first and the Meir address second. Do not assume the first row is the exact match. Show a short list and let the customer choose.

#Which endpoint matches a typed address?

GET /v2/adresmatch takes separate fields: gemeentenaam, niscode, postcode, straatnaam, huisnummer, busnummer and status. The documentation says at least one of the optional parameters must be filled in. It answers with the addresses that match, each with an identifier, a detail link, the municipality, postal info, the street, the house number and the full address text.

For a checkout that already has separate street and number fields, this is the better fit for validation. A test with Antwerp, Meir and number 1 returned one address, with the full text “Meir 1, 2000 Antwerpen”. The search endpoint serves the customer while typing, and the match endpoint serves the server when the form is posted.

#What does an address record contain?

GET /v2/adressen/{objectId} returns the detail. In my test response the fields included the identifier with a version time stamp, the municipality, the postal info, the street, the house number, the full address, adresStatus, officieelToegekend and an address position. The position carried a method and a specification, and a GML point in the Belgian Lambert 72 system (EPSG:31370). A map library that expects longitude and latitude needs a conversion first.

Two fields matter for shops. adresStatus says whether the address is in use or historical, so a form should not accept a retired address as a new delivery target. The identifier is stable, which makes it a good key for storing the picked address, next to the text the customer saw.

#What does the Next.js route handler look like?

// app/api/adres/route.ts
import type { NextRequest } from 'next/server'

const BASE = 'https://api.basisregisters.vlaanderen.be/v2/adressen/zoeken'

export async function GET(request: NextRequest) {
  const q = request.nextUrl.searchParams.get('q')?.trim() ?? ''
  if (q.length < 3) return Response.json({ results: [] })

  const url = new URL(BASE)
  url.searchParams.set('q', q)
  url.searchParams.set('status', 'inGebruik')
  url.searchParams.set('resultaatType', 'adressen')
  url.searchParams.set('limit', '5')

  const res = await fetch(url, {
    headers: process.env.BASISREGISTERS_KEY
      ? { 'x-api-key': process.env.BASISREGISTERS_KEY }
      : {},
  })
  if (res.status === 429) {
    return new Response(null, { status: 503, headers: { 'Retry-After': '1' } })
  }
  if (!res.ok) return new Response(null, { status: 502 })

  const data = await res.json()
  return Response.json({ results: data.resultaten })
}

The Next.js route handler reference documents request.nextUrl.searchParams and the Web Response API used here. Keeping the key in the handler means it never reaches the browser. The input component adds the 300 millisecond wait from the documentation.

#How do I check the address after posting?

When the form is posted, a Server Action calls adresmatch with the separate fields, not the search endpoint. The Next.js forms guide recommends validating on the server with a schema library and returning errors through useActionState. A sensible outcome has three branches:

  1. one match: store its objectId with the order
  2. no match: keep the typed address and flag the order for a human check, since new buildings and box numbers enter the register with a delay
  3. several matches: ask the customer to pick

This register is a Flemish one. I did not check which source covers addresses in Brussels or Wallonia, so a shop that ships there needs that answered separately.

#What if the API is down?

The form must still post. The checkout should treat lookup as a convenience, fall back to plain fields on 429 or 5xx, and never make the order depend on a live call to a public service.

#How does a project run?

Communication is by email. You send the shop or portal stack, the address fields you hold today and the shipping countries. I answer with a written estimate and later a pull request with the route handler, the match step, the failure paths and tests. The general scope is on the Next.js developer offer page.

#Send me your address form

If your Antwerp shop or portal collects addresses in Flanders, send the current address fields, the stack and the volume at peak through the contact form. The first written estimate for the register lookup is free, and I reply with the endpoint choice for your form and the cases I would test.

See also in Belgium

Need this service: Next.js developer in Antwerp?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Explore other WordPress services and knowledge base