# Port of Los Angeles — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_container_statistics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_facts_and_figures \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_latest_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_social_feed \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_terminal_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_terminal_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-portoflosangeles-org-api-6140488b/get_tonnage_statistics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
