Migrate from the OpenCorporates API: endpoint and field mapping

Three changes cover most of a migration: the token moves from the query string to an Authorization: Bearer header, companies/{jurisdiction}/{number} becomes /companies/{COUNTRY}/{number}, and the results.company object becomes data with different field names. The tables below map each one.

This page is for a developer who calls the OpenCorporates REST API today and wants to read the same company facts from Prometiam. The OpenCorporates side is quoted from its own API reference (version 0.4.8), read on 26 November 2026. The Prometiam side was run against the live API on the same day with the public demo key. A comparison of the two products, with prices as at 5 November 2026, is on OpenCorporates alternative; this page is about code, and says nothing about price beyond what that page records.

Authentication

  • OpenCorporates: an API token, "submitted with each request in the query parameters" as api_token=.... Its reference says the example requests it prints return a 503 without a token, and that usage limits "depend on your account type and plan" (as at 26 November 2026).
  • Prometiam: a key that starts rk_live_, sent in the Authorization: Bearer header, never in the URL. Keys are made at sign-up; the public demo key in the examples below works for company search, records, lookup by identifier, VAT, LEI and insolvency, and is shared, so it is capped.
  • Moving the token out of the URL also keeps it out of server logs and referrer headers. Read it from an environment variable in your code, as the examples do.

Endpoint mapping

OpenCorporates paths are as the reference prints them. Prometiam paths are relative to https://api.prometiam.com/functions/v1/risk-api.

OpenCorporatesPrometiamNote
GET companies/:jurisdiction_code/:company_numberGET /companies/{country}/{company_number} or GET /companies/by-identifier?type=company_number&value=&country=Country is the two-letter ISO code in capitals. OpenCorporates writes a US state as us_mi; Prometiam uses US and a state-prefixed number such as NY-4424185, for the states it serves. 1 credit.
GET companies/search?q=GET /companies/search?name=&country=Name match is normalised and partial. Pass country to stay in one register. 1 credit.
GET companies/:jurisdiction_code/:company_number/filingsno equivalentPrometiam does not list a company's filings. Typed corporate events are on GET /company-events/search (2 credits).
GET officers/search and GET officers/:idGET /people/search and GET /people/{id}Officers also arrive as appointments on the company record. 2 credits a people call. Officers are served for the countries that publish them, not for every country; see the company object.
GET companies/:jurisdiction_code/:company_number/statements, GET statements/..., GET data/:idno equivalentPrometiam has no statement or datum model.
GET account_statusGET /accountShows credits used and left. 0 credits.
GET jurisdictionsGET /coverageThe countries served and how fresh each is. 0 credits.
GET versionsno equivalentThe Prometiam paths carry no version number.
not in the referencePOST /companies/lookup, POST /insolvency/checkBatch calls of up to 100 items, one credit-priced item each.

Company object: field mapping

The left column is the field name as OpenCorporates' reference prints it for GET companies/:jurisdiction_code/:company_number, which wraps the company in results.company. The middle column is the field on a Prometiam company, which sits in data. Where Prometiam serves nothing for a field it says "no equivalent".

OpenCorporates fieldPrometiam fieldNote
namecompany_nameThe register's legal name. name_latin carries a transliteration where the register uses another script.
company_numbercompany_numberA string, as the register writes it. A UK number keeps its leading zeros.
jurisdiction_codecountryISO two-letter code, capitals.
company_typelegal_form, local_legal_form_namelegal_form is normalised across countries; local_legal_form_name is the register's own wording.
current_statuslocal_status and statuslocal_status is the register's value; status is one list for every country.
inactivestatus_groupactive or inactive rather than a boolean. Where the register states no status the group is not guessed.
incorporation_datefounding_dateA few countries give only a registration_date. See the company object.
dissolution_datedissolution_dateNull where the register publishes none.
registered_address_in_fulladdressOne string.
registered_addresspostal_code, city, region, address_countryPrometiam splits the postcode, town and region, not the street lines.
industry_codesactivity_code, activity_code_scheme, secondary_activity_codes, nace_classThe register's own code and its scheme (UK-SIC-2007 for Great Britain), and a NACE class where the code maps to exactly one.
identifiersidentifiersAn array of type and value pairs.
registry_urlregister_urlThe company's own page at the register, where the register has one.
previous_namesprevious_namesOne shape for every country; null where the register publishes none.
alternative_namesno equivalent
controlling_entityparent_companyOne controlling company, with the source named. For Great Britain only where the significant-control share band is 50 to 75 or 75 to 100 per cent.
ultimate_beneficial_owners, ultimate_controlling_companyno equivalentPrometiam does not serve a beneficial-owner list or an ultimate controller. Do not map these to parent_company, which is one level.
branch, branch_status, home_companyno equivalent
alternate_registration_entities, previous_registration_entities, subsequent_registration_entitiesno equivalentPrometiam does not link one company's registrations across registers. A company that a register closed by merger is served as closed, with status merged in Spain.
opencorporates_url, source, provenance objectsregister, register_url, meta.attributionThe source is the official register and the licence line travels in meta.attribution. There is no per-value confidence score.
created_at, updated_at, retrieved_atfirst_seen_date, updated_atDifferent meaning: when Prometiam first saw and last updated the record, not when a third party retrieved it.
filings, officers and data inside the companyappointments (officers); filings and datums: no equivalent

The OpenCorporates reference shows no field in the company object for a VAT number, an LEI, a company age or an EU size class. Prometiam serves vat_number with a vat_number_source that says whether the register published it or it was built from the identifier, lei, age_years and age_band, and an indicative eu_size_class. Each carries scope limits that are documented per country, and each is null where the register or the rule gives nothing, so test for null.

Pagination, errors and rate limits

OpenCorporates (reference as at 26 November 2026)Prometiam
Pagination30 objects by default; per_page up to 100; page limited to 100; the response gives page, per_page, total_count and total_pages.limit from 1 to 100 (a value outside that range is a 400, not clamped); offset or cursor to continue. The answer gives pagination.count, has_more and next_cursor, and no total.
Wrapperapi_version and results.data, pagination and meta.
ErrorsHTTP codes: 400, 401 for incorrect credentials, 403 for a refused request, 404, 500, 502 and 503.A JSON error with code, message, status and doc_url. An error costs no credits.
Rate limitingIts reference says 403 "will be returned during rate limiting". Its stated default is 200 requests in a month and 50 in a day; limits depend on the account and plan.HTTP 429 rate_limit_exceeded or quota_exceeded with a Retry-After header in seconds. Limits are a monthly credit allowance and requests a minute, by plan; see rate limits, credits and errors.
Usage endpointGET account_status with calls_remaining and usage.GET /account, and X-Credits-Cost and X-RateLimit-Remaining on every response.

The rate-limit change is the one to handle in code: a retry loop written for OpenCorporates that waits on a 403 must now wait on a 429 and read Retry-After. The PHP guide has a working retry.

Before and after

The same company, Tesco PLC, by its Great Britain register number. The OpenCorporates request is written from its reference and was not run, because it needs an account token.

# OpenCorporates (not run: needs an account token)
curl "https://api.opencorporates.com/v0.4/companies/gb/00445790?api_token=$OC_API_TOKEN&sparse=true"
# Prometiam
curl 'https://api.prometiam.com/functions/v1/risk-api/companies/GB/00445790' \
  -H "Authorization: Bearer $PROMETIAM_API_KEY"

On 26 November 2026 the API answered with this record, shortened here (... marks what was cut). The call cost 1 credit, shown in the X-Credits-Cost header:

{
  "data": {
    "id": 2000004984338,
    "country": "GB",
    "company_number": "00445790",
    "company_name": "TESCO PLC",
    "legal_form": "PLC",
    "local_legal_form_name": "Public Limited Company",
    "status": "active",
    "status_group": "active",
    "local_status": "active",
    "founding_date": "1947-11-27",
    "dissolution_date": null,
    "activity_code": "47110",
    "activity_code_scheme": "UK-SIC-2007",
    "address": "TESCO HOUSE, SHIRE PARK, KESTREL WAY, WELWYN GARDEN CITY, AL7 1GA, UNITED KINGDOM",
    "postal_code": "AL7 1GA",
    "city": "WELWYN GARDEN CITY",
    "register": "Companies House",
    "register_url": "https://find-and-update.company-information.service.gov.uk/company/00445790",
    "lei": "2138002P5RNKC5W2JZ46",
    "vat_number": null,
    "appointments": [ { "role_type": "secretary", "is_current": true, "person": { "full_name": "...", ... }, ... }, ... ],
    ...
  },
  "meta": { "attribution": "Contains public sector information licensed under the Open Government Licence v3.0. Source: Companies House, UK. ...", ... }
}

The OpenCorporates answer to the equivalent call puts the same facts under results.company, for example name, company_number, incorporation_date and current_status, as its reference shows. A search is the same change of names: companies/search?q=tesco becomes /companies/search?name=tesco&country=GB.

What you keep, what you lose, what you add

  • You keep a company by register number, a name search, a status, a founding date, an address, an activity code and previous names, from the official register of each live country.
  • You lose the filings list, the statements and datum model, alternate and subsequent registrations, branch fields, the beneficial-owner and ultimate-controller fields, and per-value provenance and confidence.
  • You lose coverage you may use today. OpenCorporates describes its own coverage by jurisdiction; Prometiam serves the countries listed in the documentation, each with its own scope limits. Check your jurisdictions in GET /coverage before you switch.
  • You add one schema for every live country, a VAT number and an LEI on the company object, corporate insolvency notices for sixteen markets (FR, DE, GB, AT, CH, NO, FI, US, NL, DK, HR, SE, ES, LV, EE, SG; corporate only, and no notice is not proof of solvency), monitoring of companies you name, and sanctions screening, which is beta.
  • Licence: the data you read from OpenCorporates under its share-alike terms is not the data you read here. Each Prometiam answer carries the register's attribution line in meta.attribution; keep it where your licence requires. Read the terms of both services before you decide.

What it costs in credits

A company search, a record, a lookup item, a VAT check and an LEI lookup cost 1 credit; events, people and insolvency 2; a sanctions screen 3 (beta). Starter is EUR 9.99 a month for 1,000 credits, Professional EUR 29.99 for 10,000, Scale EUR 99.99 for 50,000, Enterprise priced to order. The 14-day trial has 500 credits; a card is required and nothing is charged during it. To try the calls with no sign-up, use the public demo key.

Related pages

Sign up · API documentation

The free trial lasts 14 days and includes 500 credits. A card is required and nothing is charged during the trial; it then continues as Starter (EUR 9.99/month) unless you cancel.

Frequently asked questions

Do I need to change how I send the key?
Yes. OpenCorporates takes api_token in the query string. Prometiam takes Authorization: Bearer <key>. Read the key from an environment variable.
How do I map OpenCorporates' jurisdiction_code?
Use the two-letter country code in capitals as country, for example gb becomes GB. A US state code such as us_ny becomes country=US with the state-prefixed number the register uses, for example NY-4424185.
Is there an equivalent of the filings endpoint?
No. Prometiam does not serve a company's list of filings. It serves typed corporate events for some countries on GET /company-events/search; the scope of each country is in the documentation.
What happens when I hit the rate limit?
The API answers 429 with a Retry-After header in seconds. Wait that long and repeat the call. A call that fails costs no credits.
Can I try the call before I sign up?
Yes, with the public demo key, which covers company search, records, lookup by identifier, VAT, LEI and insolvency. It is shared and capped. Sanctions screening, people, events and monitoring need a key of your own.