Hoppa till innehåll
Menu and API reference

API reference

Fetch several companies

Retrieve data for up to 100 known registration numbers or public tokens.

POST /api/v1/companies/batch
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.

NameTypeWhat the field does
ids Required
In the request body
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.

Request
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"]}'
Response
{
  "data": [
    {
      "found": true,
      "company": {
        "id": "5560125790",
        "registration_number": "556012-5790",
        "name": "Aktiebolaget Volvo",
        "legal_form": "AB",
        "status": "active"
      }
    },
    { "found": false, "company": null }
  ]
}

Continue here