{"uid":"cap_FZ-NO78aPfImn0wakuvsA","slug":"api-strale-io-0e86320a","name":"Company Registration Number Format Detector","description":"Identify the type and country of a company registration number. Detects Swedish org numbers, Finnish business IDs, German HRB numbers, LEIs, DUNS, and 20+ other formats. Pure algorithmic.","url":"https://api.strale.io/x402/company-id-detect","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Company registration number to identify"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"id":"5560885502"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x60382278dded76518611a88922cc4d36fcb820d5f18847526f948d0df9f43b7f"},"capability":"company-id-detect","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-13T04:25:11.092Z"}},"input":"5560885502","detected":true,"best_match":{"country":"Sweden","example":"556703-7485","id_type":"org_number","confidence":"high","description":"Swedish organization number","country_code":"SE"},"all_matches":[{"country":"Sweden","id_type":"org_number","confidence":"high","description":"Swedish organization number","country_code":"SE"},{"country":"Poland","id_type":"krs","confidence":"medium","description":"Polish KRS number","country_code":"PL"},{"country":"Poland","id_type":"nip","confidence":"low","description":"Polish NIP (tax ID)","country_code":"PL"}]}},"exampleRequest":{"id":"5560885502"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DOv01asW0ebyx94ECcPRQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Identifies the type and country of origin of a company registration number (e.g. Swedish org number, German HRB, LEI, DUNS) using pure algorithmic detection across 20+ formats.","exampleAgentPrompt":"Can you figure out what type of company registration number '5560885502' is — like whether it's a Swedish org number, Finnish business ID, LEI, or something else, and which country it belongs to?","exampleUseCases":[{"title":"Vendor onboarding ID validation","prompt":"I just received a list of supplier registration numbers from our procurement team in different formats. Can you help me figure out what type each one is and which country they're from? For example, I have 'DE123456789' and '9700001254' — I need to know if they're German HRB numbers, LEIs, or something else before I can look them up in the right registries."},{"title":"KYC data cleanup for mixed origins","prompt":"We're doing customer due diligence and our database has company IDs in all different formats because we've acquired several businesses in different regions. Can you quickly classify a batch of these identifiers so I know whether they're Swedish org numbers, Finnish business IDs, DUNS numbers, or other formats? That way I'll know which registration system to query for each one."},{"title":"Data ingestion pipeline standardization","prompt":"Our intake system receives company identifiers from various API partners and data feeds, but they're all jumbled together without metadata about their type or origin. Before we can enrich these records, can you scan through them and tell me which ones are national registry IDs versus international standards like LEI, and which country each one comes from? That'll help us route them to the right lookup services."}],"resultDescription":"Returns the detected registration number format (e.g. 'Swedish Organisationsnummer', 'German HRB', 'LEI', 'DUNS') and the associated country, determined algorithmically without any external lookup.","failureModes":["Unrecognized format: number does not match any of the 20+ supported patterns — returns unknown or null type","Ambiguous format: number could match multiple patterns — may return best guess with confidence or list of candidates","Missing required query parameter 'id': returns 400 or validation error","Empty string or malformed input: returns error or null result"],"whenToPreferThis":"Use this endpoint when you have an unknown or uncertain company identifier string and need to determine its format and country before doing further lookups. Ideal for data ingestion pipelines, KYC workflows, or vendor onboarding where IDs arrive in mixed formats. Prefer over manual regex banks because it covers 20+ formats algorithmically in a single call. Not suitable if you need the actual company data behind the number — use country-specific registry lookups for that.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:06:06.432Z","isFirstParty":false}