Superface

Manage jobs

recruitment/jobs@1.0.0
2 providers

List jobs

Returns a paginated collection of your company jobs.

Input
State
Page
Page limit
Result
Jobs
Pagination
Rate limit

1.Choose a provider

2.Use ListJobs 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/jobs@1.0.0');

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

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

run();

Structure details

Input (object)

state
The state to filter jobs with.
page
Pagination cursor (obtained from `previousPage` or `nextPage`).
limit
Maximum number of jobs returned in single page.

Example

{
  "state": "published"
}

Result (object)

jobs
List of jobs.
id
Unique identifier of the job.
name
The name of the job.
description
The description of the job.
state
The state of the job.
departmentName
The name of the department that opened the job.
requirements
The requirements of the job for the candidate.
benefits
The benefits of the job for the candidate.
createdAt
The timestamp when was the job created in ISO8601 format.
pagination
The pagination state.
previousPage
Previous page cursor.
nextPage
Next page cursor.
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

{
  "jobs": [
    {
      "id": "JOB_ID",
      "name": "Software engineer",
      "description": "We are looking for a Software Engineer who will assist us with design, development and installation of software solutions. Your duties will include development, writing code, and documenting functionality."
    }
  ]
}

Implementation details

Provider
mock
Use case
ListJobs
Author
@superface
Source
Verified