# Port of Los Angeles — 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.

> Access real-time container and tonnage statistics, browse terminal information and details, and retrieve the latest Port of Los Angeles news, key facts, and social media feeds.

**Category:** Government & Public Data | **Website:** [portoflosangeles.org/](https://portoflosangeles.org/) | **Docs:** [parse.bot/marketplace/6140488b-1fec-46d7-8ffd-0f0d99ee60fb/portoflosangeles-org-api](https://parse.bot/marketplace/6140488b-1fec-46d7-8ffd-0f0d99ee60fb/portoflosangeles-org-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/port-of-los-angeles/`
**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 container statistics

Retrieves monthly and annual container throughput statistics in TEUs (Twenty-Foot Equivalent Units) from the Port of Los Angeles. Monthly statistics compare the current reporting month year-over-year with change amounts and percentages. Annual statistics show total TEU counts grouped by decade ranges. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get facts and figures

Retrieves high-level port facts, key statistics, trade volume, infrastructure details, finances, economic impact data, and market share information. Data is organized by section heading. Published annually in the first quarter with calendar-year and fiscal-year comparisons. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/port-of-los-angeles/get-facts-and-figures \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get latest news

Retrieves news releases from the Port of Los Angeles news archive, sorted newest to oldest. Returns title, URL, and publication date for each release. Includes releases from the past several years. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get social feed

Retrieves the social media feed for the Port of Los Angeles via the Juicer aggregation service. Returns recent posts from LinkedIn, X (Twitter), and other social platforms. Each post includes message content, poster info, timestamps, engagement metrics, media attachments, and source platform details. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get terminal details

Retrieves detailed information about a specific terminal including its name, features (capabilities and equipment), berth designation, and contact information. Use slug and type values obtained from get_terminal_list. Not all terminals have all fields populated — features and berths may be absent for overview-type pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Terminal slug identifier from get_terminal_list results (e.g. 'trapac', 'apm-terminals-pacific', 'wwl-auto', 'pasha'). |
| `type` | string | Yes | Terminal type from get_terminal_list results. Accepted values: 'container', 'automobile', 'breakbulk', 'dry-bulk', 'liquid-bulk', 'passenger', 'multi-use', 'maritime-support'. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/port-of-los-angeles/get-terminal-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>","type":"<string>"}'
```

### Get terminal list

Retrieves a list of all terminals at the Port of Los Angeles, including their name, type classification, slug identifier, and full URL. Terminal types include container, automobile, breakbulk, dry-bulk, liquid-bulk, passenger, multi-use, and maritime-support. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get tonnage statistics

Retrieves historical tonnage data (general cargo, liquid bulk, dry bulk) from 1970 to present, plus a tons conversion table. Tonnage values are in millions of revenue tons. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

## 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.