What You'll Learn
- • Setting up your development environment
- • Installing the required HTTP client
- • Authenticating with the ScrapeCreators API
- • Making requests to LinkedIn
- • Handling responses and errors
- • Best practices for production use
Tutorial · LinkedIn
⚡️ Node.js Step-by-stepExtract jobs data from LinkedIn. Real code, real responses, real production patterns — paste it into your project and ship.
Learn how to scrape LinkedIn jobs using Node.js. This comprehensive guide will walk you through the entire process, from setup to implementation.
First, you'll need a ScrapeCreators API key to authenticate your requests.
Sign up at app.scrapecreators.com to get your free API key with 100 requests.
Make sure you have the following installed:
Axios is a promise-based HTTP client for Node.js
npm install axiosNow let's make a request to the LinkedIn API using Node.js. Replace YOUR_API_KEY with your actual API key.
import axios from 'axios';
const API_KEY = 'YOUR_API_KEY';
async function scrape() {
try {
const response = await axios.get(`https://api.scrapecreators.com/v1/linkedin/search/jobs?query=software engineer&location=United States&date_posted=last-week&company_id=1441&cursor=10`, {
headers: {
'x-api-key': API_KEY,
'Content-Type': 'application/json'
}
});
console.log('Response:', response.data);
return response.data;
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}
}
// Usage
scrape();This endpoint accepts the following parameters:
queryRequired(string)Job search keyword or phrase.
Example: software engineer
locationOptional(string)City, region or country. Omit to use LinkedIn’s default location.
Example: United States
date_postedOptional(select)Jobs posted in the last 24 hours or week. Omit for any time.
Example: last-week
company_idOptional(string)Numeric LinkedIn company ID, not a company name or URL.
Example: 1441
cursorOptional(string)Next offset returned by the previous response. Keep the same search and filters; maximum 990.
Example: 10
Execute your script to test the API connection. You should see a JSON response with LinkedIn jobs data.
✅ Success: You should receive a structured JSON response containing the requested data.
Here's an example of the JSON response you'll receive:
{
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"jobs": [
{
"id": "4479305237",
"url": "https://www.linkedin.com/jobs/view/4479305237/",
"title": "Software Engineer I, Fullstack (Search)",
"company": {
"name": "Affirm",
"url": "https://www.linkedin.com/company/affirm",
"logo": "https://media.licdn.com/dms/image/v2/C560BAQEHSbORvS_jKg/company-logo_100_100/company-logo_100_100/0/1630665839795/affirm_logo?e=2147483647&v=beta&t=DTdnXfvSnUdk2QDzx2pxLSTqSBNcll6e2T8YQQGRHEk"
},
"location": "Salt Lake City, UT",
"date_posted": "2026-11-06",
"posted_time_ago": "2 weeks ago"
}
],
"cursor": "10"
}Check that your response includes the expected fields:
success(boolean)credits_remaining(number)credits_charged(number)jobs(object)cursor(string)Implement comprehensive error handling and retry logic for failed requests. Log errors properly for debugging.
Cache responses when possible to reduce API calls and improve performance. Consider data freshness requirements.
Never expose your API key in client-side code. Use environment variables and secure key management practices.
When scraping multiple jobs, consider batching requests to maximize throughput while staying within rate limits.
Use asynchronous processing in Node.js to handle multiple requests concurrently and improve overall performance.
Analyze LinkedIn jobs to understand market trends, competitor analysis, and audience insights.
Track performance metrics, engagement rates, and content trends across LinkedIn jobs.
Identify potential customers and business opportunities throughLinkedIn data analysis.
Check your API key is correct and properly formatted in the x-api-key header.
You ran out of credits and need to buy more.
The resource might not exist or be private.
Temporary server issue. Implement retry logic with exponential backoff.
ScrapeCreators offers 100 free API calls to get started. After that, pricing starts at $47 for 25,000 credits with volume discounts available.
Scraping publicly available data is fair game, and we only collect public data. So anything that you can see in an incognito browser is what we collect.
There is no rate limit! So you can scrape as fast as you want!
All API responses are returned in JSON format, making it easy to integrate with any programming language or application.
Yes! This tutorial focuses on core Node.js HTTP concepts that work with any framework. The API calls remain the same regardless of your specific Node.js setup.
For large datasets, implement pagination, use streaming responses where available, and consider storing data in a database for efficient querying.
Ready to ship?
100 free API calls. No credit card. Same endpoint, same response shape.
Same endpoint, different language