Superface

Retrieve Companies

recruitment/list-companies@1.0.0
14 providers

List Companies

Returns a list of companies.

Result
Companies
Rate Limit

1.Choose a provider

2.Use ListCompanies with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk
const { SuperfaceClient } = require('@superfaceai/one-sdk');

// You can manage tokens here: https://superface.ai/insights
const sdk = new SuperfaceClient({ sdkAuthToken: '<< Login to get your token >>' });

async function run() {
  // Load the profile
  const profile = await sdk.getProfile('recruitment/list-companies@1.0.0');

  // Use the profile
  const result = await profile
    .getUseCase('ListCompanies')
    .perform({}, {
      provider: 'mock'
    });

  // Handle the result
  try {
    const data = result.unwrap();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

run();

Structure details

Result (object)

companies
List of companies.
id
Unique identifier of the company.
name
Name of the company.
description
Description of the company.
createdAt
ISO8601 timestamp when was a candidate created.
updatedAt
ISO8601 timestamp when was a candidate lastly updated.
rateLimit
Rate limit details.
bucket
Different parts of API may have different rate limits. Bucket identifies to which part of API the rate limits apply.
totalRequests
Total requests available in the time window.
remainingRequests
Remaining requests available in the time window.
remainingRequestsPercentage
Remaining requests available in the time window in percents.
resetTimestamp
Timestamp when the rate limits will reset (in Unix Timestamp format). Available only for providers without rolling rate limit window.

Example

{
  "companies": [
    {
      "id": "1",
      "name": "Superface",
      "description": "Superface is technology startup, based in Czech Republic, which connects applications through APIs.",
      "createdAt": "2021-01-01T12:00:00.000Z",
      "updatedAt": "2022-10-01T14:00:00.000Z"
    }
  ]
}

Implementation details

Provider
mock
Use case
ListCompanies
Author
@superface
Source
Verified