npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rapid-api-helper

v2.0.2

Published

A wrapper for RapidAPI to help use Techmap's Job Data APIs (https://jobdatafeeds.com/job-api)

Downloads

8

Readme

RapidAPI Helper

A wrapper for RapidAPI to help use Techmap's Job Data APIs

This is a TypeScript helper package that simplifies the process of interacting with the Job Posting API provided by Techmap. It provides type-safe interfaces and methods for making API requests, retrieving data, and managing authentication.

Right now has limited support for the Daily International Job Postings API.

It uses axios as a dependency to make the api requests.

Installation & Setup

To install rapid-api-helper into your project, use the following command:

npm install rapid-api-helper

or

yarn add rapid-api-helper

NOTE: you need to copy your RAPIDAPI_JOBS_API_KEY into the .env.local file (but never share it with someone else or on GitHub)

Using the Jobs Postings API

Authentication

You need to subscribe to the API on RapidAPI and enter the API_KEY in the .env.local file before you can create an API connection. To create an API client use the following:

import {RAPIDAPI_API} from 'rapid-api-helper';

const jobsAPI = new RAPIDAPI_API(process.env.RAPIDAPI_JOBS_API_KEY);

Making API Requests

The RAPIDAPI_API class provides methods for making API requests to different endpoints of the Job Posting API. For example, to retrieve the first 10 job postings for "Data Scientist" in the United States on 1. January 2024:

    const response = await jobsAPI.search({
        title: 'Data Scientist',
        dateCreated: '2024-01-01',
        page: 1
    });

    console.log(response.data);

The search method returns a promise that resolves to an object containing the API response. The data property of the response object contains an array of up to 10 JobPosting objects.

Job Posting Data

Each object represents a job posting and contains the job's searchable data as well as the core data in Schema.org JobPosting format using JSON-LD, such as:

  • url: The URL of the job posting
  • title: The title of the job posting
  • description: The description of the job posting
  • datePosted: The date and time the job posting was created
  • hiringOrganization: The company that posted the job
  • jobLocation: The location of the job posting
  • baseSalary: The salary (range) as mentioned in the job posting

... and many more.


More Documentation on the API can be found here:

  • Developer Resources: https://jobdatafeeds.com/developers
  • Data Description: https://jobdatafeeds.com/job-data-overview
  • OpenAPI definition: https://api.techmap.io