Next.js developer in Rotterdam

Next.js for businesses in Rotterdam, 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.
  • Local WordPress meetup: WordPress Meetup 010

My WordPress.org profile

A purchasing portal, a partner onboarding form or a CRM in Rotterdam usually asks for the same thing first: the KVK number. Everything else about the company, the registered name, legal form, trade names and addresses, is already in the Handelsregister. The Kamer van Koophandel offers it through APIs on its developer portal. I am Mariusz Szatkowski, a Gdynia-based developer who works remotely. This page explains how the KVK APIs work and how I would connect them to a Next.js app.

Erasmus Bridge over the Maas in Rotterdam

The Erasmus Bridge over the Maas. Picture by Massimo Catarinella, CC BY 3.0, via Wikimedia Commons.

#Which KVK APIs are there?

The developer portal at developers.kvk.nl lists these APIs:

APIWhat it does
Zoekenfinds the KVK number of a registration, by name, address, KVK number, RSIN or branch number
Basisprofielbasic company data by KVK number
Vestigingsprofieldata about one branch by branch number
Naamgevingtrade names by KVK number
Mutatieservicenotices that something changed in the Business Register
Open datasetsBasic Company Information and Financial Statements

The portal describes the usual order: use Zoeken to get a KVK number, then request more data from the other APIs. A KVK number has 8 digits and a branch number 12, according to the Zoeken documentation.

The Zoeken response carries the KVK number, RSIN, branch number, name, address, type (main branch, branch or legal entity) and an active flag. It returns up to 100 results per page, defaults to 10, and the page parameter runs from 1 to 100. Inactive registrations are left out unless the request asks for them. Links in the result point to Basisprofiel and Vestigingsprofiel, except for registrations deregistered before 22 May 2010.

Basisprofiel returns the name, trade names in order of registration, legal form, the main branch with its SBI activities and the registration dates. Two flags deserve a place in your data model. One marks an address as shielded. The other, indNonMailing, records that the company does not want unsolicited mail or sales advertising.

#How does access work?

The authentication method is an apikey header. The only HTTP method the KVK allows is GET. The rest is commercial and contractual:

  • Test first. The test environment at the api.kvk.nl/test prefix is free and needs no registration. It runs on a small set of fictitious data, and the testing page publishes a test key and 19 test KVK numbers, among them examples for a sole proprietorship, a BV, a foundation and an error case.
  • Subscription for production. The pricing page says a subscription is required, with a standard monthly amount and a small fee per query. Zoeken has no per-query charge, the other three data APIs do. The Mutatieservice is an optional add-on, billed yearly. Check the figures on the pricing page, not here.
  • Who can sign. The FAQ says the organisation must be registered in the Business Register and the signer must be authorised to sign. Private use is excluded.
  • One key, one organisation. The FAQ allows one key in several applications as long as they are used within the same organisation.
  • Limits. Up to 300,000 queries per month and no more than 100 per second, with the open dataset APIs counted separately.
  • TLS. The KVK certificate page lists a DigiCert root and intermediate certificate for api.kvk.nl and says the public certificate is trusted automatically in most cases. It does not describe client certificates.
  • Status. KVK runs a status page for its products, with sign-up for updates.

I did not find rules on storing or caching Business Register data in the pages I read. The terms of use and the API agreement are PDFs that I have not summarised here. That decision comes before the database design.

#How do I call the KVK from Next.js?

The Next.js documentation says environment variables are available only on the server unless they carry the NEXT_PUBLIC_ prefix, and that Route Handlers are not cached by default. Together these give the shape: the browser never sees the key, it calls your own route.

// app/api/kvk/search/route.ts
const BASE = process.env.KVK_BASE_URL! // test or production prefix

export async function GET(request: Request) {
  const { searchParams } = new URL(request.url)
  const naam = searchParams.get('naam')?.trim()
  if (!naam || naam.length < 2) {
    return Response.json({ error: 'naam too short' }, { status: 400 })
  }

  const url = new URL('/api/v2/zoeken', BASE)
  url.searchParams.set('naam', naam)
  url.searchParams.set('resultatenPerPagina', '10')

  const res = await fetch(url, {
    headers: { apikey: process.env.KVK_API_KEY! },
  })
  if (!res.ok) {
    return Response.json({ error: 'lookup failed' }, { status: 502 })
  }
  return Response.json(await res.json())
}

KVK_BASE_URL holds the test prefix in development and staging and the production host later, so no code changes between environments. Around that route, these decisions matter more than the fetch itself:

  1. Authentication on your route. A public lookup route is a free proxy to a paid API with a quota of 300,000 a month. Put it behind login or rate limiting. The Next.js data security guide names route.ts files among the places that deserve extra audit time.
  2. Validate the KVK number before the call. Eight digits, checked in the form and again on the server. An invalid number is a cheaper failure when your own code rejects it.
  3. Two steps, not one. Use Zoeken for type-ahead, which has no per-query charge, and call Basisprofiel only when the user picks a company. That keeps the per-query part of the bill tied to a real decision.
  4. Map the response. Return only the fields the form needs. The shielded address flag and the non-mailing flag go into your own model, so a sales tool does not mail a company that has opted out.
  5. Show the source. When a form fills in company data, say that it came from the Business Register and when. A user who sees a wrong legal form can then tell whom to ask.
  6. Handle failures. The status page exists because outages happen. A form that cannot reach the KVK should let the user type the data by hand and mark it unverified.

#What does the Mutatieservice add?

The Mutatieservice is for keeping a stored company list current without polling every record. According to the KVK documentation, you collect the mutations yourself with three requests: one call returns the subscription ID, which never changes, a second lists available signals and accepts from and to dates, and a third returns the details of one signal. The details are meta information about the change. Full data still comes from the other APIs.

The test environment simulates it with mock signals, ten new ones every five minutes. A Next.js app would run this as a scheduled job rather than from a page: fetch signals since the last run, store the cursor, and refresh only the affected KVK numbers. Whether you may keep a copy at all is the question from the previous section.

#Checklist for a Rotterdam portal

  • Decide which screens need Business Register data and which can accept typed input.
  • Read the API agreement and the terms of use before designing storage.
  • Build against the test environment with the published test numbers, including the error case.
  • Keep the API key and base URL in server-only environment variables, one set per environment.
  • Put the lookup route behind login or rate limiting.
  • Use Zoeken for search and Basisprofiel for the confirmed choice.
  • Store the shielded and non-mailing flags with the company record.
  • Plan a manual fallback for when the API is unavailable.

#How does a project run?

  1. You send the portal or app, the screens where company data is entered, and what you do with the data afterwards. My email answer comes within one working day.
  2. I write down the scope and my assumptions, including what the KVK agreement still has to settle.
  3. I build the lookup route and the form behaviour against the KVK test environment on a staging copy.
  4. Once you accept in writing and your organisation holds the production key, I switch the configuration and check one real lookup with you.

I need the repository or a way to build on staging, and the production key from you when the agreement is signed. Other kinds of Next.js work are listed on the Next.js developer page.

#Send me the screen that needs company data

If your Rotterdam portal should fill in company details from a KVK number, describe the form and the data you need through the contact form. The first written estimate is free, and it lists which KVK conditions have to be settled first.

See also in Netherlands

Need this service: Next.js developer in Rotterdam?

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

Describe your project

Explore other WordPress services and knowledge base