# Stage — 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 discover internship opportunities across Morocco's job market by accessing detailed listings from Stage.ma, including position details, requirements, and company information. Find the perfect internship match by filtering through available opportunities on the platform.

**Category:** Jobs | **Website:** [www.stage.ma/offres-stage](https://www.stage.ma/offres-stage) | **Docs:** [parse.bot/marketplace/b25deb47-f5d6-4589-bae0-67be7e650479/stage-ma-api](https://parse.bot/marketplace/b25deb47-f5d6-4589-bae0-67be7e650479/stage-ma-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-stage-ma-api-b25deb47/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_internship

Get full details of a specific internship posting including description, company information, dates, salary, and requirements. The slug can be extracted from search_internships results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Internship URL slug in format '{id}-{title-slug}' (e.g. '9310-consultant-junior-data'). Available from search_internships results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-stage-ma-api-b25deb47/get_internship \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_internships

Search internship listings on Stage.ma with optional filters for specialty, location, remote type, and salary. Returns paginated results with 10 items per page. Each result includes title, company, location, duration, start date, and tags.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | City ID to filter by location. |
| `page` | integer | No | Page number for pagination. |
| `remote_type` | string | No | Presence type filter. |
| `salary` | string | No | Set to 'true' to filter only paid internships, 'false' or omit for all. |
| `search` | string | No | Free-text search query to filter internships by title or keywords. |
| `specialty` | string | No | Specialty ID to filter by field of study. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-stage-ma-api-b25deb47/search_internships \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","remote_type":"<string>","salary":"<string>","search":"<string>","specialty":"<string>"}'
```
