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

> Search and find contact information for over 11,000 staffing firms across the US by keyword, state, employment type, or job category. Access complete details including addresses, phone numbers, and websites for any staffing company in the directory.

**Category:** Business Directories | **Website:** [americanstaffing.net/](https://americanstaffing.net/) | **Docs:** [parse.bot/marketplace/7d55d859-d1c2-49e1-9b64-2e4cda5d6b26/americanstaffing-net-api](https://parse.bot/marketplace/7d55d859-d1c2-49e1-9b64-2e4cda5d6b26/americanstaffing-net-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-americanstaffing-net-api-7d55d859/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_companies

Fetch all companies listed in the ASA directory without any filters (paginated, 20 per page). Equivalent to get_directory_page with no filters applied. Iterate through pages (0-indexed) to retrieve the complete directory of over 11,000 companies.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-indexed) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-americanstaffing-net-api-7d55d859/get_all_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_company_details

Retrieve full contact details for a specific company by its ASA directory URL. Returns complete information including street address, phone number, company website, staffing services provided, and job field categories. The URL is obtained from the get_directory_page or get_all_companies endpoints.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | The ASA directory detail page URL for a specific company (obtained from get_directory_page results, e.g., 'https://americanstaffing.net/members-directory/aerotek/') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-americanstaffing-net-api-7d55d859/get_company_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_directory_page

Search for staffing companies in the ASA Member Directory with various filters. Returns a page of companies with basic summary information (name, location, services, job fields). Results are paginated with 20 items per page. Combine filters for narrower results. Use get_company_details on a returned company URL to retrieve full contact info (phone, address, website).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `employment_option` | string | No | Filter by employment type |
| `job_field` | string | No | Filter by job category |
| `page` | integer | No | Page number for pagination (0-indexed) |
| `query` | string | No | Keyword search across company name, city, state, and other indexed text |
| `state` | string | No | Filter by US state name (e.g., 'Texas', 'California', 'New York') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-americanstaffing-net-api-7d55d859/get_directory_page \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"employment_option":"<string>","job_field":"<string>","page":"<integer>","query":"<string>","state":"<string>"}'
```
