💼

jobs

Employment opportunity or job posting published by companies. Contains position details, requirements, compensation information, location, employment type, and posting validity dates.

🎯 Request Builder

https://api.mockly.codes/jobs?page=1&limit=10&count=10
📡

Configure your request and click Send Request to see the response here.

Endpoints

GET/jobs

Get a collection of jobs

Alternative: /business/jobs
GET/jobs/:id

Get a single job by ID

Alternative: /business/jobs/:id
GET/jobs/meta

Get resource metadata and schema

Alternative: /business/jobs/meta
🔍

How to Use Search

The search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.

1. Basic Search

Search across all text fields:

Basic Search
GET https://api.mockly.codes/jobs?q=laptop

2. Search Specific Fields

Field-Specific Search
GET https://api.mockly.codes/jobs?q=laptop&search_fields=name,description

💡 Pro Tips

  • Search is case-insensitive and performs partial matching
  • Without search_fields, all text fields are searched
  • Combine with pagination to handle large result sets efficiently

Code Examples

JavaScript

Fetch Collection
// Get 10 jobs
fetch('https://api.mockly.codes/jobs?count=10')
  .then(res => res.json())
  .then(data => console.log(data));

Python

Fetch with Requests
import requests

response = requests.get(
    'https://api.mockly.codes/jobs?count=10'
)
data = response.json()

cURL

Command Line
curl "https://api.mockly.codes/jobs?count=10"

Bypass Cache

Get Fresh Data
fetch('https://api.mockly.codes/jobs?nocache=true')

Schema Properties

idinteger

Unique identifier for the job posting

Gen:random_int
titlestring

Job title or position name (e.g., Senior Software Engineer, Marketing Manager)

Gen:job
companystring

Name of the company or organization offering the position

Gen:company
descriptionstring

Detailed description of the role, responsibilities, and what the position entails

Gen:paragraph
requirementsstring

Required qualifications, skills, experience, and education needed for the position

Gen:paragraph
locationstring

City or office location where the job is based

Gen:city
countrystring

Country where the job position is located

Gen:country
typestring

Employment type (e.g., full-time, part-time, contract, internship, freelance)

Gen:job_type
levelstring

Experience level required (e.g., entry-level, mid-level, senior, executive)

Gen:job_level
salary_mininteger

Minimum annual salary offered for the position

Gen:salary_min
salary_maxinteger

Maximum annual salary offered for the position

Gen:salary_max
currencystring

ISO currency code for the salary range (e.g., USD, EUR, GBP)

Gen:currency
remoteboolean

Whether the position allows remote work or work-from-home options

Gen:boolean
posted_atstring

Timestamp when the job posting was published

Gen:past_datedate-time
expires_atstring

Date and time when the job posting expires and applications are no longer accepted

Gen:future_datedate-time

Query Parameters

countinteger

Number of items to return (default: 10, max: 100)

seedinteger

Seed for reproducible data generation

nocacheboolean

Bypass cache and generate fresh data on every request