<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Valentin · Stockwerk Studio</title>
    <description>The latest articles on DEV Community by Valentin · Stockwerk Studio (@stockwerkstudio).</description>
    <link>https://dev.to/stockwerkstudio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262362%2F2c85a3c9-5a3d-4cd3-9a7e-1b54f2392555.png</url>
      <title>DEV Community: Valentin · Stockwerk Studio</title>
      <link>https://dev.to/stockwerkstudio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stockwerkstudio"/>
    <language>en</language>
    <item>
      <title>Official company registers from 20 countries for AI agents, paid per call with x402</title>
      <dc:creator>Valentin · Stockwerk Studio</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:38:51 +0000</pubDate>
      <link>https://dev.to/stockwerkstudio/official-company-registers-from-20-countries-for-ai-agents-paid-per-call-with-x402-1d82</link>
      <guid>https://dev.to/stockwerkstudio/official-company-registers-from-20-countries-for-ai-agents-paid-per-call-with-x402-1d82</guid>
      <description>&lt;p&gt;If your agent checks suppliers, onboards customers or verifies an invoice, it needs one boring fact first: does this company exist, and is it still active? Every country answers that question with its own register, its own API, its own key and its own licence. I built one endpoint that asks the right register for you and returns the same JSON shape for all of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;GET https://x402-apis.pages.dev/v1/company?name=Shopify%20Inc.&amp;amp;country=CA&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The answer has the legal name, address, legal form, status (active, dissolved, in liquidation …), the national register number, the LEI if one exists, and a line naming the official source and its licence.&lt;/p&gt;

&lt;p&gt;National registers behind it today: France, Norway, Finland, Latvia, Ireland, UK, USA (SEC), Estonia, Taiwan, Hong Kong, Singapore, Australia, Croatia, Switzerland, Lithuania, Czechia, Austria, Greece, Denmark and Canada (federal corporations). For every other country it falls back to GLEIF, so you still find firms with an LEI.&lt;/p&gt;

&lt;p&gt;You can search by &lt;code&gt;name&lt;/code&gt;, by national &lt;code&gt;id&lt;/code&gt; (SIREN, CVR, UID, ACN …), by &lt;code&gt;lei&lt;/code&gt;, or by &lt;code&gt;vat&lt;/code&gt; for the nine countries whose registers carry the VAT number (FR, NO, FI, LV, HR, CH, CZ, GR, DK).&lt;/p&gt;

&lt;p&gt;A second endpoint, &lt;code&gt;/v1/kyb&lt;/code&gt;, adds screening against the EU, UN, US OFAC and UK sanctions lists (refreshed daily) and official insolvency notices for France, the UK and Switzerland. It reports possible matches with a score from 0 to 100. It never says "sanctioned"; a person has to decide that.&lt;/p&gt;

&lt;h2&gt;
  
  
  How an agent pays
&lt;/h2&gt;

&lt;p&gt;No account, no API key. The API uses &lt;a href="https://x402.org" rel="noopener noreferrer"&gt;x402&lt;/a&gt;: the first request returns HTTP 402 with the price, your agent signs a USDC payment on Base and repeats the request.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/v1/company&lt;/code&gt;: $0.002 per call&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/kyb&lt;/code&gt;: $0.02 per call&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I check input before payment. A malformed register number gets HTTP 400 and costs nothing. If the register finds nothing (404) or is down (503), the payment is not settled either.&lt;/p&gt;

&lt;p&gt;The same endpoints run as an MCP server at &lt;code&gt;https://x402-apis.pages.dev/mcp&lt;/code&gt; (Streamable HTTP), listed in the official MCP Registry as &lt;code&gt;io.github.vstockma/x402-apis&lt;/code&gt;. For a plain-text overview, read &lt;a href="https://x402-apis.pages.dev/llms.txt" rel="noopener noreferrer"&gt;/llms.txt&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned building it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Licences decide more than code.&lt;/strong&gt; I only added a country after reading its terms. Some look open and are not: the Netherlands publishes free data without company names, Iceland forbids passing data on, the EU VIES service forbids reuse of its answers. Germany, Spain and Italy have no free register API at all. Each answer carries the attribution the licence asks for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Registers differ a lot in speed.&lt;/strong&gt; Most answer in under a second. The Greek register needs 10 to 55 seconds, which collides with the 60-second window of an x402 payment, so Greek requests make exactly one register call and skip the usual retry with a shortened name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Canada has no name search in its API, so I built one on the free tier.&lt;/strong&gt; Corporations Canada offers a live JSON API by corporation number and a daily CSV of about 1.6 million federal corporations. I wanted name search without paying for a database. A GitHub Action now splits the CSVs every Sunday into 512 JSON shards in Cloudflare KV, keyed by the first two words of the company name. A name lookup reads one or two shards (largest 368 KB), and the best hit gets refreshed from the live API. Total size: 121 MB, inside the free 1 GB, and a weekly run stays under the free limit of 1,000 KV writes per day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Without a wallet you can see the price and parameters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -i &lt;span class="s2"&gt;"https://x402-apis.pages.dev/v1/company?id=4261607&amp;amp;country=CA"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With any x402 client the same call returns the record. A 30-line Node.js example with &lt;code&gt;@x402/fetch&lt;/code&gt; is in &lt;a href="https://github.com/vstockma/x402-company-data-mcp" rel="noopener noreferrer"&gt;vstockma/x402-company-data-mcp&lt;/a&gt;, and the &lt;a href="https://x402-apis.pages.dev/openapi.json" rel="noopener noreferrer"&gt;OpenAPI file&lt;/a&gt; lists every parameter with an example answer.&lt;/p&gt;

&lt;p&gt;I also run a sister API for stock exchange trading days and public holidays (28 exchanges, 247 countries): &lt;a href="https://handelskalender-api.pages.dev/llms.txt" rel="noopener noreferrer"&gt;handelskalender-api.pages.dev/llms.txt&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which register should come next? Japan and South Korea are on my list. If your agent needs a country that is missing, tell me in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>mcp</category>
      <category>x402</category>
    </item>
  </channel>
</rss>
