# Pintarnya API

> Returns Pintarnya job listings, searches, similar jobs, employer profiles, Indonesian provinces and cities, and search filter ids.

Category: Jobs & Careers. Region: ID. 7 endpoints at `https://api.hoshime.com/v1/pintarnya/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/pintarnya
## GET /v1/pintarnya/jobs

The latest job listings on Pintarnya, the ones its homepage shows.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `company` (string), `employerId` (string), `employmentType` (string), `id` (string), `location` (string), `postedAt` (string), `province` (string), `remote` (boolean), `salary` (string), `salaryMax` (string), `salaryMin` (string), `slug` (string), `title` (string), `url` (string), `workType` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/jobs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/search

Pintarnya job listings that match a search and its filters, one page at a time.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Free-text search across job titles. (e.g. sales) |
| `cityId` | integer | no | City id, from the locations endpoint. |
| `provinceId` | integer | no | Province id, from the locations endpoint. |
| `jobCategory` | integer | no | Job category id, from the filters endpoint. |
| `educationLevel` | integer | no | Minimum education level id, 1 (SD) to 7 (S3), from the filters endpoint. |
| `employmentType` | integer | no | Employment type id: 1 full-time, 2 part-time, 3 contract, 4 daily, 5 internship. |
| `workType` | integer | no | Work arrangement id: 1 on-site, 2 work from home. |
| `minSalary` | integer | no | Lowest monthly salary in IDR. |
| `maxSalary` | integer | no | Highest monthly salary in IDR. |
| `employerId` | integer | no | Only jobs from this employer, as the job's employerId returns it. |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `company` (string), `employerId` (string), `employmentType` (string), `id` (string), `location` (string), `postedAt` (string), `province` (string), `remote` (boolean), `salary` (string), `salaryMax` (string), `salaryMin` (string), `slug` (string), `title` (string), `url` (string), `workType` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/search?query=sales" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/similarJobs

Pintarnya job listings similar to one job. Without jobId it uses the first listing of the homepage.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `jobId` | integer | no | Numeric job id: the trailing number in a Pintarnya job slug. Omit it for the first listing of the homepage. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `company` (string), `employerId` (string), `employmentType` (string), `id` (string), `location` (string), `postedAt` (string), `province` (string), `remote` (boolean), `salary` (string), `salaryMax` (string), `salaryMin` (string), `slug` (string), `title` (string), `url` (string), `workType` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/similarJobs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/company

The profile of one Pintarnya employer: its name, industry, size and web address.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `companyId` | integer | yes | Employer id, as a listing's employerId returns it. (e.g. 8542) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `address` (string), `employees` (string), `id` (string), `industry` (string), `logo` (string), `name` (string), `verified` (boolean), `website` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/company?companyId=8542" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/locations

The provinces of Indonesia with their cities, with the ids the search filters take.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `cities` (City[]), `cities[].id` (string), `cities[].name` (string), `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/locations" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/filters

The filter ids of the Pintarnya job search: job categories with their roles, and the employment and work types.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `employmentTypes` (Option[]), `employmentTypes[].id` (string), `employmentTypes[].name` (string), `jobCategories` (Category[]), `jobCategories[].id` (string), `jobCategories[].name` (string), `jobCategories[].roles` (Option[]), `workTypes` (Option[]), `workTypes[].id` (string), `workTypes[].name` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/filters" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pintarnya/job

One Pintarnya job with its description, requirements and salary, by its slug or URL. Without slug it returns the first listing of the homepage.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | no | Job slug, such as junior-sales-1139309, or its pintarnya.com/lowongan URL. Omit it for the first listing of the homepage. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `address` (string), `category` (string), `company` (string), `description` (string), `district` (string), `employer` (Company), `employer.address` (string), `employer.employees` (string), `employer.id` (string), `employer.industry` (string), `employer.logo` (string), `employer.name` (string), `employer.verified` (boolean), `employer.website` (string), `employerId` (string), `employmentType` (string), `expiresAt` (string), `id` (string), `location` (string), `postedAt` (string), `province` (string), `remote` (boolean), `requirements` (Named[]), `requirements[].name` (string), `salary` (string), `salaryMax` (string), `salaryMin` (string), `slug` (string), `title` (string), `url` (string), `vacancyCount` (integer (int64)), `workType` (string)

```bash
curl "https://api.hoshime.com/v1/pintarnya/job" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
