Entity Search API documentation
Authentication, search, identifiers, pagination, quotas, errors and sources for the Entity Search API.
Authentication and your first request
Create an account, then a key in the account area. Data access requires an active subscription confirmed by a signed webhook. Send the key only through Authorization: Bearer. Never put it in a URL, public browser code or widget. Keep the recovery code shown at registration; no recovery email service is connected.
curl "https://entitysearch.ca/api/v1/companies/?query=Mindangler%20Ottawa&source=federal" \
-H "Authorization: Bearer $ENTITY_SEARCH_API_KEY"GET /api/v1/companies/
query: 2–120 characters. source: all (default), federal, racj, calgary-business-licences, bc-liquor-establishments or toronto-business-licences. page: integer 1–50. With source=federal only: status=active|inactive and province=AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT. Unknown or repeated parameters are rejected.
Response: groups contains separate {source,total,records} groups. Each source has independent 20-record pagination. Totals are not unique-company counts. Failure of a requested source returns 503, never a supposedly complete empty result.
GET /api/v1/companies/{id}/
Use the exact id returned by search. Federal records use federal:{number}; RACJ and local observations preserve their existing record_key. A licence identifier is not a corporation number. Response: {company: {...}}.
{
"company": {
"id": "federal:EXAMPLE",
"name": "Illustrative record / Fiche illustrative",
"source": "federal",
"record_kind": "federal-corporation",
"status": null,
"profile_url": "https://entitysearch.ca/en/search/",
"provenance": {
"publisher": "Corporations Canada",
"url": "https://open.canada.ca/data/en/dataset/0032ce54-c5dd-4b66-99a0-320a7b5e99f2",
"licence": "Open Government Licence – Canada",
"licence_url": "https://open.canada.ca/en/open-government-licence-canada",
"attribution": "Contains information licensed under the Open Government Licence – Canada.",
"adaptation": "Illustrative selected-field response; no endorsement."
},
"city": null,
"province": null,
"source_updated": null,
"owner_names": null,
"organization_relationships": [],
"relationship_coverage": "limited-reviewed-supplement",
"external_registry": {
"url": "https://ised-isde.canada.ca/",
"integrated": false
}
}
}JavaScript and Python examples
// Server-side JavaScript; keep the key in the server environment.
const response = await fetch("https://entitysearch.ca/api/v1/companies/?query=Mindangler%20Ottawa&source=federal", {
headers: { Authorization: "Bearer " + process.env.ENTITY_SEARCH_API_KEY }
});
if (!response.ok) throw new Error("HTTP " + response.status);
console.log(await response.json());
# Python
import os, requests
response = requests.get("https://entitysearch.ca/api/v1/companies/",
params={"query": "Mindangler Ottawa", "source": "federal"},
headers={"Authorization": "Bearer " + os.environ["ENTITY_SEARCH_API_KEY"]},
timeout=20)
response.raise_for_status()
print(response.json())Accounting, errors and retries
A 200 response, including an empty result, consumes one request. Validation failures, failed authentication, 404 lookups and server errors do not consume monthly quota. After authentication, admitted attempts count toward the minute limit even if a source fails. Quotas are atomic and shared per account. X-Quota-Remaining accompanies success; a newly paid invoice period opens a separate counter just once.
Error format: {"error":{"code":"…"}}. 400: query_too_broad (refine the search name), invalid_query, invalid_page, invalid_parameter, unsupported_source, invalid_status, invalid_province or filter_requires_federal_source. 401: invalid_api_key. 403: subscription_required. 404: company_not_found. 429: rate_limited or quota_exceeded with Retry-After in seconds. 503: source_unavailable or service_unavailable. Respect Retry-After and back off exponentially for temporary failures.
Coverage you can trace, source by source
Entity Search is an independent Canadian business research resource. The API and widget reuse the site’s search engine within a licensed data scope. Coverage is partial; this is not an exhaustive national registry.
- Federal: the four Corporations Canada CSV subsets. Published legal name, corporation identifier, status, filed-office city and province; combined name + location search. Financial-legislation corporations are excluded.
- Québec: only the RACJ legal-person-NEQ permit-holder subset. Published label and existing record identifier; name, NEQ and establishment-location search. The complete REQ bulk file is excluded from the API and widget.
- Calgary: non-home-based municipal licences published as Licensed or Renewal Licensed. Operating label, identifier, city and source status. Licence categories are searchable.
- British Columbia: liquor-licensed establishments with a published establishment label. Identifier, locality and source status where supplied. No personal licensee names.
- Toronto: selected establishment licensing categories with an operating label and no cancellation date supplied. Identifier, locality and source status; licence categories are searchable. A blank cancellation date does not confirm present validity.
- New Brunswick and Nova Scotia sources on the website remain outside this new offer pending their specific review. Records from separate sources are never merged on similar names.
Provenance, freshness and reuse rights
Responses identify publisher, dataset, licence and source date where available. An unknown date is null. Updates come from imported project snapshots; no live verification or guaranteed update frequency is sold.
Selected fields come from open-licensed files permitting commercial reuse, subject to attribution and each licence’s exclusions. Personal names, contact details, street addresses and raw facts are not exposed. Source-data rights remain governed by their licences; access limits govern this service.
Organizational relationships and official registries
A CC0 Wikidata supplement contains just two individually reviewed organizational relationships across three records: Bell Media, Bell Canada and BCE. The API preserves the exact Wikidata property (P127 or P749), subject → target direction, dates and provenance. An empty list means not covered, not no relationship. Records outside the licensed scope are not added to expose this supplement.
An official registry link is an external lookup: the linked content is not integrated or made searchable by that link. A municipal licence does not prove ownership. Organizational relationships do not identify natural-person owners or beneficial owners. Owner-name search is unavailable.
Frequently asked questions
Does the API cover all of Canada? No. Only the sources and fields described here are exposed. No match does not prove nonexistence or name availability.
Can I search for an owner? No. Natural-person owner, director and beneficial-owner names are neither provided nor searchable.
How does this differ from the widget? The free widget shows a short public result list. The paid API provides server-side calls, pagination and identifier retrieval with an account quota.
How do I cancel? The Stripe portal supports cancellation at the end of the paid period. Access ends at expiry; failed payments or expired subscriptions block the API. Reactivation requires Stripe confirmation.
Are payments available now? This version is prepared for test use. Real payments and public launch remain disabled. Tax configuration must be reviewed before activation.
Updated 2026-11-05. Markdown version