# Migroto — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 and analyze Australian skilled migration occupation data to find ANZSCO codes, visa invitation trends, EOI backlogs, and state nomination opportunities for your migration pathway. Access detailed occupation insights including points distribution patterns to make informed decisions about your skilled migration prospects.

**Category:** Government & Public Data | **Website:** [migroto.com/sponsor-match](https://migroto.com/sponsor-match) | **Docs:** [parse.bot/marketplace/e31746f0-186c-47ee-9cc4-6bad1aea11da/migroto-com-api](https://parse.bot/marketplace/e31746f0-186c-47ee-9cc4-6bad1aea11da/migroto-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/migroto/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get occupation details

Retrieve comprehensive migration data for a single occupation identified by its ANZSCO code. Includes visa subclass eligibility, invitation history, EOI backlog queue position, state nomination programs, points distribution, and EOI trend data. Optional filter parameters narrow the invitation, backlog, and trend sections to a specific visa subclass or date range.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `code` | string | Yes | 6-digit ANZSCO occupation code (e.g. '261313' for Software Engineer). Obtainable from search_occupations results. |
| `eoi_date` | string | No | EOI backlog snapshot date in YYYY-MM-DD format (e.g. '2026-06-01'). Available dates retrievable from get_occupation_filters. |
| `eoi_subclass` | string | No | Visa subclass filter for EOI backlog section. Accepted values: 189, 190, 491. |
| `inv_subclass` | string | No | Visa subclass filter for invitations section. Accepted values: 189, 190, 491. |
| `inv_year` | string | No | Time range filter for invitations. Examples: 'last-6-months', 'last-fy'. |
| `occupation_id` | string | No | UUID of the occupation, obtainable from search_occupations results. Provides faster lookup when supplied. |
| `trend_subclass` | string | No | Visa subclass filter for EOI trends section. Accepted values: 189, 190, 491. |
| `trend_year_range` | string | No | Financial year range for EOI trends (e.g. '2025-2026'). Available values retrievable from get_occupation_filters. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/migroto/get-occupation-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"code":"<string>","eoi_date":"<string>","eoi_subclass":"<string>","inv_subclass":"<string>","inv_year":"<string>","occupation_id":"<string>","trend_subclass":"<string>","trend_year_range":"<string>"}'
```

### Get occupation filters

Retrieve available filter options for occupation insight queries. Returns Australian states, visa subclasses, financial year ranges, and EOI backlog snapshot dates that can be used as parameters when calling get_occupation_details.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/migroto/get-occupation-filters \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search occupations

Full-text search over Australian skilled migration occupations by name or ANZSCO code. Returns matching occupations with their codes and titles. Results are auto-iterated.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term — an occupation name (e.g. 'software engineer') or an ANZSCO code (e.g. '261313'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/migroto/search-occupations \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.