API reference
Fetch several companies
Retrieve data for up to 100 known registration numbers or public tokens.
- Access
-
Scope
companies - Cost
- 1 unit per company found
The order of the response follows the order of ids, so data[i] always corresponds to ids[i]. An identifier that does not exist is marked found: false.
Parameters
Parameters not marked as required may be omitted.
| Name | Type | What the field does |
|---|---|---|
ids
Required
|
string[] | A list of 1 to 100 registration numbers or public tokens. |
Request and response
The example shows a request against the production environment and a successful response.
curl -X POST "https://firmainfo.se/api/v1/companies/batch" \
-H "Authorization: Bearer $FIRMAINFO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids": ["556012-5790", "5560000000"]}'
{
"data": [
{
"found": true,
"company": {
"id": "5560125790",
"registration_number": "556012-5790",
"name": "Aktiebolaget Volvo",
"legal_form": "AB",
"status": "active"
}
},
{ "found": false, "company": null }
]
}