ZipRecruiter

ZipRecruiter

Jobs

Job search app and website. Get high CPC payouts and transparent revenue sharing. Gain access to our extensive marketplace of jobs and display them through a search widget on your website. Our smart matching technology will display the most relevant jobs to maximize your earning potential. Gain full access to our API and marketplace of jobs from local to enterprise businesses.

Visit API

📚 Documentation & Examples

Everything you need to integrate with ZipRecruiter

🚀 Quick Start Examples

ZipRecruiter Javascript Examplejavascript
// ZipRecruiter API Example
const response = await fetch('https://www.ziprecruiter.com/publishers', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Using the ZipRecruiter API in JavaScript

ZipRecruiter is a job board that lists job postings from various companies. They provide a public API that allows developers to get job listings, post jobs, and manage their job board account. In this blog post, we will explore how to use the ZipRecruiter API in JavaScript.

Getting Started

Before we can use the ZipRecruiter API, we need to sign up for a publisher account on their website. Once we have signed up, we will be given an API key that we can use to authenticate our requests.

Authentication

To authenticate our requests, we need to include our API key in the Authorization header. Here's an example of how to do this in JavaScript:

const apiKey = '<your api key>';
const headers = { 'Authorization': `Bearer ${apiKey}` };

Getting Job Listings

To get job listings from the ZipRecruiter API, we can make a GET request to the https://api.ziprecruiter.com/jobs endpoint. Here's an example of how to do this in JavaScript:

const searchParams = new URLSearchParams({
  location: 'san francisco,ca',
  distance: 10,
  job_title: 'javascript developer'
});

const url = `https://api.ziprecruiter.com/jobs?${searchParams}`;

fetch(url, { headers })
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));

In this example, we are searching for jobs in San Francisco, CA that have "javascript developer" in their job title and are within 10 miles of the location.

Posting Jobs

To post a job to the ZipRecruiter API, we can make a POST request to the https://api.ziprecruiter.com/job/create endpoint. Here's an example of how to do this in JavaScript:

const job = {
  title: 'Javascript Developer',
  description: 'We are looking for a talented Javascript developer to join our team...',
  company_name: 'Acme Inc.',
  location: 'San Francisco, CA',
  salary: '$100,000 - $120,000',
  job_type: 'Full-Time'
};

fetch('https://api.ziprecruiter.com/job/create', {
  method: 'POST',
  headers,
  body: JSON.stringify(job)
}).then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));

In this example, we are posting a job with a title, description, company name, location, salary, and job type.

Conclusion

In this blog post, we explored how to use the ZipRecruiter API in JavaScript. We looked at how to authenticate our requests, get job listings, and post jobs. With these examples, you should be able to build your own job board or integrate ZipRecruiter into your existing application.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 2Jun 4Jun 6Jun 8Jun 10Jun 12Jun 14Jun 16Jun 18Jun 20Jun 22Jun 24Jun 26Jun 28Jul 104008001440Minutes
Online
Offline

Related APIs in Jobs