The Companies API icon

The Companies API

Access company data, enrichment, analytics and more using The Companies API

Overview

This node integrates with The Companies API to search for continents based on user-defined criteria. It allows users to query continent data with pagination, sorting, and filtering options. This is useful in scenarios where geographic segmentation or location-based analysis is needed, such as market research, regional sales targeting, or demographic studies.

For example, a marketing team could use this node to retrieve a list of continents sorted by the number of companies present, helping them prioritize regions for expansion.

Properties

Name Meaning
Search A string to filter continents by name or other searchable attributes.
Page The page number of results to retrieve (pagination).
Size The number of results per page.
Sort key The field by which to sort results. Options: Counts > companies
Sort order The direction of sorting. Options: Asc (ascending), Desc (descending)

Output

The node outputs JSON data containing the search results from The Companies API. The json output field includes an array of continent objects matching the search criteria, along with metadata such as counts of companies per continent.

No binary data output is produced by this node.

Dependencies

  • Requires an API token credential for authenticating requests to The Companies API.
  • Uses the official SDK of The Companies API (@thecompaniesapi/sdk) bundled within the node.
  • No additional environment variables are required beyond the API token.

Troubleshooting

  • Unknown operation error: If the operation parameter is set incorrectly, the node will throw an "Unknown operation" error. Ensure the operation is set to "searchContinents".
  • SDK method not found: If the SDK does not have the expected method, it indicates a version mismatch or incorrect operation name. Verify the node and SDK versions.
  • Empty or invalid parameters: Passing empty strings or zero values may cause default values to be used. Check input parameters carefully.
  • API authentication errors: Ensure the provided API token is valid and has sufficient permissions.
  • Pagination issues: Requesting pages beyond available data may return empty results.

Links and References

Discussion