# Jobs — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for jobs in Sri Lanka by keyword or category and access detailed listings with employer contact information, posting dates, and application deadlines. Browse through TopJobs.lk's comprehensive job database to find opportunities across different industry categories.

**Category:** Jobs | **Website:** [http://jobs.lk/](http://jobs.lk/) | **Docs:** [parse.bot/marketplace/8fef1829-1f12-4fb9-bd9d-d81fd6c398f6/jobs-lk-api](https://parse.bot/marketplace/8fef1829-1f12-4fb9-bd9d-d81fd6c398f6/jobs-lk-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-jobs-lk-api-8fef1829/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_job_details

Get detailed information about a specific job vacancy by its reference number. Returns employer name, position, location, closing date, job type, company email (for recruiter contact), date posted, and any apply links.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `job_ref_no` | string | Yes | Job reference number (e.g. '1512058'). Obtainable from search_jobs results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jobs-lk-api-8fef1829/get_job_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_ref_no":"<string>"}'
```

### list_categories

List all available job categories with their codes and names. Use the category codes with the search_jobs endpoint to filter by category.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jobs-lk-api-8fef1829/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_jobs

Search for open job vacancies by keyword and/or job category. Returns a paginated list of job listings with position title, employer, dates, and location. At least one of keyword or category must be provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Job category code to filter results. Use list_categories endpoint to get valid codes. Examples: SDQ (IT-Sware/DB/QA/Web/Graphics/GIS), HNS (IT-HWare/Networks/Systems), ACA (Accounting/Auditing/Finance), BAF (Banking & Finance/Insurance), SMM (Sales/Marketing/Merchandising), HAT (HR/Training), COM (Corporate Management/Analysts), OAS (Office Admin/Secretary/Receptionist), CCE (Civil Eng/Interior Design/Architecture), ITT (IT-Telecoms), CUR (Customer Relations/Public Relations), LWT (Logistics/Warehouse/Transport), MAE (Eng-Mech/Auto/Elec), POS (Manufacturing/Operations), MAC (Media/Advert/Communication), HRF (Hotel/Restaurant/Hospitality), HOT (Travel/Tourism), SRF (Sports/Fitness/Recreation), MHN (Medical/Nursing/Healthcare), LEL (Legal/Law), SQC (Supervision/Quality Control), APC (Apparel/Clothing), AIM (Ticketing/Airline/Marine), TAL (Education), RLT (R&D/Science/Research), AGD (Agriculture/Dairy/Environment), SEC (Security), BEC (Fashion/Design/Beauty), IDV (International Development), KPO (KPO/BPO), IME (Imports/Exports). At least one of keyword or category must be provided. |
| `keyword` | string | No | Search keyword to find jobs (e.g. 'engineer', 'accountant', 'marketing'). At least one of keyword or category must be provided. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jobs-lk-api-8fef1829/search_jobs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","keyword":"<string>","page":"<integer>"}'
```
