# Personio API

> Returns a company's open jobs on Personio, full job descriptions, and job counts by office, department, type and seniority.

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

Open jobs of one company on Personio, without descriptions. Use job for the full text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Personio subdomain, the part of {company}.jobs.personio.de, such as helpling. (e.g. helpling) |
| `query` | string | no | Keep jobs whose title, department or office contains this text. |
| `limit` | integer | no | Most jobs to return, from 1 to 100. (default 50) |
| `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: `createdAt` (string), `department` (string), `employmentType` (string), `id` (string), `office` (string), `schedule` (string), `seniority` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/personio/jobs?company=helpling" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/personio/job

One job of a company on Personio, with its description sections as HTML. Without id it returns the newest job.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Personio subdomain, such as helpling. (e.g. helpling) |
| `id` | string | no | Job id from jobs. Omit it for the newest job. |
| `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: `createdAt` (string), `department` (string), `employmentType` (string), `id` (string), `office` (string), `schedule` (string), `sections` (Section[]), `sections[].html` (string), `sections[].name` (string), `seniority` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/personio/job?company=helpling" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/personio/facets

Counts of the open jobs of one Personio company by office, department, employment type, seniority and schedule.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `company` | string | yes | Personio subdomain, such as helpling. (e.g. helpling) |
| `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: `departments` (Count[]), `departments[].count` (integer (int64)), `departments[].value` (string), `employmentTypes` (Count[]), `employmentTypes[].count` (integer (int64)), `employmentTypes[].value` (string), `offices` (Count[]), `offices[].count` (integer (int64)), `offices[].value` (string), `schedules` (Count[]), `schedules[].count` (integer (int64)), `schedules[].value` (string), `seniorities` (Count[]), `seniorities[].count` (integer (int64)), `seniorities[].value` (string), `total` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/personio/facets?company=helpling" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
