# Sercotec — 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 funding programs and open calls from Chile's SME support agency (Sercotec). Search by region and instrument, retrieve program eligibility and application requirements, and look up regional office details.

**Category:** Government & Public Data | **Website:** [sercotec.cl/](https://sercotec.cl/) | **Docs:** [parse.bot/marketplace/90fda232-5f93-4df4-8b54-70a68f360a88/sercotec-cl-api](https://parse.bot/marketplace/90fda232-5f93-4df4-8b54-70a68f360a88/sercotec-cl-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-sercotec-cl-api-90fda232/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_open_calls_by_region

Returns open and closed funding calls filtered by region and instrument. Combines results from both active and closed call listings. Each call includes project name, dates, region, and a link_ficha URL for application details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instrument_id` | integer | No | Filter by instrument ID |
| `region_id` | integer | No | Filter by region ID (0 for all/Nacional, 1-16 for specific Chilean regions) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sercotec-cl-api-90fda232/get_open_calls_by_region \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id":"<integer>","region_id":"<integer>"}'
```

### get_program_application_bases

Returns links to downloadable application bases (PDF documents) for a given call URL. Use the link_ficha field from get_open_calls_by_region results as the call_url input.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `call_url` | string | Yes | The full URL of a specific call page from get_open_calls_by_region results (link_ficha field) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sercotec-cl-api-90fda232/get_program_application_bases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_url":"<string>"}'
```

### get_program_detail

Returns full details of a specific SERCOTEC program by its slug. Includes description, funding support amounts and conditions, eligibility criteria, how to apply, and the program page URL. The slug comes from list_all_programs results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The program's URL slug from list_all_programs results (e.g., 'capital-semilla-emprende', 'crece', 'capital-abeja-emprende', 'impulso-emprendedor', 'crece-sostenible', 'pymes-globales', 'digitaliza-tu-almacen', 'creacion-y-fortalecimiento-de-cooperativas', 'barrios-comerciales', 'fortalecimiento-gremial', 'capital-pioneras') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sercotec-cl-api-90fda232/get_program_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_regions_and_offices

Returns a list of Chilean regions with IDs and slugs when called without parameters. When a region_slug is provided, fetches office details for that region from the Sercotec website. Region slugs come from the list returned when no slug is provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `region_slug` | string | No | A region slug to get office details (e.g., 'antofagasta', 'valparaiso', 'metropolitana'). Omitting returns the full list of regions. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sercotec-cl-api-90fda232/get_regions_and_offices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region_slug":"<string>"}'
```

### list_all_programs

Returns all SERCOTEC funding programs organized by category. Each program includes a slug for detail lookup and an instrument_id for filtering calls. Categories are Comenzando (starting), Fortaleciendo (strengthening), and Asociando (associating).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sercotec-cl-api-90fda232/list_all_programs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
