# Alfamart Careers API

> Returns open Alfamart job vacancies with branch, placement areas, requirements and responsibilities, plus the posting-window filters.

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

Open Alfamart vacancies that match a search and a posting window, 10 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Words in the vacancy title. |
| `postedWithinDays` | string | no | Only vacancies posted within this many days. 0 is today. (one of 0, 7, 30, 60) |
| `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: `branch` (string), `function` (string), `id` (string), `location` (string), `postedDate` (string), `title` (string), `url` (string)

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

## GET /v1/alfamart/job

One Alfamart vacancy: its branch, placement areas, requirements and responsibilities. Without id it returns the newest vacancy of the search.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | no | Vacancy-detail URL, as the url of a search result. Omit it for the newest vacancy. |
| `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: `branch` (string), `company` (string), `employmentType` (string), `function` (string), `id` (string), `level` (string), `location` (string), `placementAreas` (Area[]), `placementAreas[].name` (string), `postedAt` (string), `postedDate` (string), `remote` (boolean), `requirements` (Requirement[]), `requirements[].text` (string), `responsibilities` (Responsibility[]), `responsibilities[].text` (string), `salary` (string), `title` (string), `url` (string)

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

## GET /v1/alfamart/filters

Posting windows the search endpoint accepts, as the vacancy page offers them.

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: `postedWithinDays` (Option[]), `postedWithinDays[].label` (string), `postedWithinDays[].value` (string)

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