# SEPREC Bolivia Business Registry Scraper (`scrapers_lat/seprec-bolivia-scraper`) Actor

Scrape Bolivian company records from the official SEPREC commercial registry by name or matricula. Extract razon social, NIT, legal form, status, address, coordinates, economic activity, phone and email across all of Bolivia. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers_lat/seprec-bolivia-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $11.54 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

[![SEPREC Bolivia Business Registry Scraper](https://scrapers.lat/banners/seprec-bolivia-scraper.png)](https://console.apify.com/actors/zZ6ujFuRdhdxBeLls/input)

## SEPREC Bolivia Business Registry Scraper

Here is one real result, with every field the actor returns:

```json
{
  "businessName": "FARMACIAS CORPORATIVAS S.A. FARMACORP S.A.",
  "matricula": "1015447026",
  "previousMatricula": "00013675",
  "nit": "1015447026",
  "status": "ACTIVO",
  "matriculaStatus": "MATRICULA RENOVADA",
  "legalForm": "SOCIEDAD ANONIMA",
  "economicActivity": "a) Realizar toda la actividad farmaceutica en general, efectuar por cuenta propia, ajena y/o asociada con terceros la comercializacion de productos farmaceuticos, productos cosmeticos e insumos [trimmed for length, real value continues with the full objeto social clauses a) through q)]",
  "address": "URUBO OPEN MALL URB COLINAS DEL URUBO S1-ET1-CC3 Sin número Edif. URUBO OPEN MALL Piso SUBSUELO",
  "street": "URUBO OPEN MALL URB COLINAS DEL URUBO S1-ET1-CC3",
  "city": "SANTA CRUZ DE LA SIERRA",
  "province": "ANDRES IBAÑEZ",
  "department": "SANTA CRUZ",
  "latitude": "-17.749315",
  "longitude": "-63.215202",
  "phone": "3489190",
  "email": "mgcanaviri@farmacorp.com",
  "lastRenewalYear": 2025,
  "fiscalYearEndMonth": "4",
  "phones": ["3489190", "69053781", "3469057"],
  "emails": ["mgcanaviri@farmacorp.com"],
  "economicActivities": ["[the full objeto social text plus the registered activity list; trimmed here for length, real values]"],
  "searchTerm": "FARMACORP",
  "url": "https://miempresa.seprec.gob.bo/",
  "observedAt": "2026-08-10T14:06:05.792Z",
  "error": null
}
```

The most complete SEPREC Bolivia company scraper available. It returns every field the official commercial registry exposes for each economic unit, from NIT, legal form and status to the full postal address with geo-coordinates, the objeto social, and the phone numbers and emails on file, so you get contactable KYB leads across all of Bolivia in one run.

**📥 [Input](https://apify.com/scrapers_lat/seprec-bolivia-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/seprec-bolivia-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/seprec-bolivia-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/seprec-bolivia-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Bolivia-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)
![Billing](https://img.shields.io/badge/Billing-Pay%20per%20result-brightgreen)

### Table of contents

- [What it does](#what-it-does)
- [Quickstart](#quickstart)
- [Input reference](#input-reference)
- [Output reference](#output-reference)
- [Example output record](#example-output-record)
- [Run via API and CLI](#run-via-api-and-cli)
- [Fetch results](#fetch-results)
- [Billing and limits](#billing-and-limits)
- [FAQ and troubleshooting](#faq-and-troubleshooting)

### What it does

The actor searches the official SEPREC commercial registry of Bolivia (`miempresa.seprec.gob.bo`) for each of your search terms, matches economic units by company name (razon social) or by matricula number, and writes one normalized record per matching unit to the run's dataset. With details enabled it fetches the full registry record for each match: NIT, complete address with latitude and longitude, the objeto social (economic activity), the phone numbers and emails on file, the legal form, status and last renewal year.

Missing source values are returned as `null` and lists as empty arrays, never invented. Names, addresses and activity text are returned exactly as the registry stores them.

### Quickstart

Open the actor, paste this into the input, and press Run. It looks up companies whose razon social contains FARMACORP and returns the full detail record for each.

```json
{
  "searchTerms": ["FARMACORP"],
  "searchType": "nombre",
  "withDetails": true,
  "maxCompanies": 10
}
```

To look up exact matricula numbers instead of names, set `searchType` to `matricula`:

```json
{
  "searchTerms": ["1015447026"],
  "searchType": "matricula",
  "withDetails": true
}
```

`searchTerms` drives the run. Everything else is optional; `withDetails` defaults to on and `maxCompanies` defaults to 10.

### Input reference

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `searchTerms` | string\[] | yes | `["FARMACORP"]` | Company names or matricula numbers to look up. With `nombre` each term is a substring match on razon social, for example `BANCO`, `FARMACORP`. With `matricula` each term must be an exact matricula or previous matricula number. |
| `searchType` | enum | no | `nombre` | How terms are matched. `nombre` matches razon social by substring; `matricula` matches an exact matricula or previous matricula number. |
| `withDetails` | boolean | no | `true` | When on, fetches the full registry record for each match (NIT, address with coordinates, objeto social, phones, emails, last renewal year). Off returns only the lightweight search-listing fields. |
| `maxCompanies` | integer | no | `10` | Maximum number of economic units to collect across all search terms. Range 1 to 1000000. Free Apify plans are capped at 25 per run. |
| `useProxy` | boolean | no | `false` | Route requests through an Apify proxy. Direct requests normally work; enable only if the SEPREC host starts blocking the run. |

### Output reference

One dataset item per economic unit. Types: `string`, `integer`, `string[]`, or `null` when the source value is absent.

| Field | Type | Description |
|---|---|---|
| `businessName` | string | Razon social (registered company name). |
| `matricula` | string | Current SEPREC matricula number (unique per unit). |
| `previousMatricula` | string | Prior matricula number, or `null`. |
| `nit` | string | Tax identification number (NIT), or `null`. |
| `status` | string | Registry status, for example `ACTIVO`. |
| `matriculaStatus` | string | Matricula state, for example `MATRICULA RENOVADA`. |
| `legalForm` | string | Legal form, for example `SOCIEDAD ANONIMA`. |
| `economicActivity` | string | Primary objeto social (economic activity) text, or `null`. |
| `economicActivities` | string\[] | All economic activity texts on file. |
| `address` | string | Full registered address as stored. |
| `street` | string | Street portion of the address. |
| `city` | string | City. |
| `province` | string | Province. |
| `department` | string | Department (Bolivian region). |
| `latitude` | string | Latitude of the registered address, or `null`. |
| `longitude` | string | Longitude of the registered address, or `null`. |
| `phone` | string | Primary contact phone, or `null`. |
| `phones` | string\[] | All contact phone numbers on file. |
| `email` | string | Primary contact email, or `null`. |
| `emails` | string\[] | All contact emails on file. |
| `lastRenewalYear` | integer | Year of the last matricula renewal, or `null`. |
| `fiscalYearEndMonth` | string | Fiscal year end month, or `null`. |
| `searchTerm` | string | The input term that produced this record. |
| `url` | string | SEPREC portal URL. |
| `observedAt` | string | ISO 8601 timestamp of when the record was collected. |
| `error` | string | `null` on success. On a failed term, a record with a populated `error` field is written instead. |

### Example output record

Real record from a live run (input `{"searchTerms": ["FARMACORP"], "searchType": "nombre", "withDetails": true}`), long activity text trimmed:

```json
{
  "businessName": "FARMACIAS CORPORATIVAS S.A. FARMACORP S.A.",
  "matricula": "1015447026",
  "previousMatricula": "00013675",
  "nit": "1015447026",
  "status": "ACTIVO",
  "matriculaStatus": "MATRICULA RENOVADA",
  "legalForm": "SOCIEDAD ANONIMA",
  "economicActivity": "a) Realizar toda la actividad farmaceutica en general [trimmed for length, real value continues]",
  "address": "URUBO OPEN MALL URB COLINAS DEL URUBO S1-ET1-CC3 Sin número Edif. URUBO OPEN MALL Piso SUBSUELO",
  "street": "URUBO OPEN MALL URB COLINAS DEL URUBO S1-ET1-CC3",
  "city": "SANTA CRUZ DE LA SIERRA",
  "province": "ANDRES IBAÑEZ",
  "department": "SANTA CRUZ",
  "latitude": "-17.749315",
  "longitude": "-63.215202",
  "phone": "3489190",
  "email": "mgcanaviri@farmacorp.com",
  "lastRenewalYear": 2025,
  "fiscalYearEndMonth": "4",
  "phones": ["3489190", "69053781", "3469057"],
  "emails": ["mgcanaviri@farmacorp.com"],
  "searchTerm": "FARMACORP",
  "url": "https://miempresa.seprec.gob.bo/",
  "observedAt": "2026-08-10T14:06:05.792Z",
  "error": null
}
```

### Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace `<TOKEN>` with your Apify API token.

Run synchronously and get dataset items in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~seprec-bolivia-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["BANCO"],"searchType":"nombre","withDetails":true,"maxCompanies":25}'
```

Start a run asynchronously:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~seprec-bolivia-scraper/runs?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["1015447026"],"searchType":"matricula"}'
```

Apify CLI:

```bash
apify call scrapers_lat/seprec-bolivia-scraper \
  --input '{"searchTerms":["FARMACORP"],"withDetails":true}'
```

### Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing `format`:

```bash
## JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"

## CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"

## Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"
```

`<DATASET_ID>` is returned as `defaultDatasetId` in the run object. Use `offset` and `limit` to page through large result sets. `clean=true` drops empty and internal fields.

### Billing and limits

- **Pay per result.** You are charged per economic unit returned (`result` event). See the [pricing tab](https://apify.com/scrapers_lat/seprec-bolivia-scraper/pricing) for the current per-result price.
- **Details add-on.** When `withDetails` is on and a full registry record is fetched, a `details` event is charged in addition to the base `result`. Turn `withDetails` off to return only the lightweight listing fields.
- **No charge on failure.** If a search term errors or matches nothing, the actor writes a record with a populated `error` field and does not charge for it. Empty runs cost nothing.
- **Spend cap respected.** Set `maxTotalChargeUsd` on the run; once reached, the actor stops emitting and charging further billable results.
- **Free Apify plans** are capped at 25 records per run. Upgrade for higher `maxCompanies`.

### FAQ and troubleshooting

**A search term returned 0 records. Why?**
No economic unit matched that name or matricula. Check spelling, try a shorter substring for name search, and confirm the matricula number is exact. Zero-result runs are not charged.

**Why are `phone`, `email` or coordinates null?**
Not every company has that data on file with SEPREC, and detail fields require `withDetails` on. Missing source values are returned as `null`, never invented.

**What is the difference between name and matricula search?**
`nombre` does a substring match on the razon social, so `BANCO` returns many companies. `matricula` matches one exact matricula or previous matricula number.

**Can I get several phones and emails?**
Yes. `phones` and `emails` return every number and address on file; `phone` and `email` hold the primary one.

**Is this an official SEPREC tool?**
No. This actor is independent and has no affiliation with SEPREC or the Bolivian government. It reads only publicly available registry data. Use it in accordance with SEPREC's terms.

### Related scrapers

- [Argentina Companies Scraper](https://apify.com/scrapers_lat/argentina-companies-scraper): Argentine company records by CUIT or name.
- [Chile Companies Registry Scraper](https://apify.com/scrapers_lat/chile-companies-registry-scraper): Chilean companies by RUT or name.
- [Brazil CNPJ Scraper](https://apify.com/scrapers_lat/brazil-cnpj-scraper): Brazilian company records by CNPJ.
- [Colombia Company Financials Scraper](https://apify.com/scrapers_lat/colombia-company-financials-scraper): Colombian company financial statements.
- [Peru INDECOPI Trademarks Scraper](https://apify.com/scrapers_lat/indecopi-trademarks-scraper): Peruvian trademark registrations.

### More scrapers at scrapers.lat

Built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> Independent tool, not affiliated with SEPREC or the Bolivian government. Accesses only publicly available commercial registry data. Use in accordance with SEPREC's terms of service.

# Actor input Schema

## `maxCompanies` (type: `integer`):

Maximum number of economic units to collect across all search terms. Optional.

## `withDetails` (type: `boolean`):

When enabled, the scraper fetches the full registry record for every match: NIT, complete address with geo-coordinates, economic activity (objeto social), the contact phone numbers and emails on file, and the last renewal year. Disable to return only the lightweight search-listing fields.

## `searchTerms` (type: `array`):

Company names or matricula numbers to look up in the SEPREC commercial registry. With the Name search type each term does a substring match on razon social (e.g. "BANCO", "FARMACORP"); with the Matricula search type each term must be an exact matricula or previous matricula number. One record is produced per matching economic unit, up to Max Items. Add one or more.

## `searchType` (type: `string`):

How every search term is interpreted. Name matches razon social by substring; Matricula matches an exact matricula or previous matricula number.

## `useProxy` (type: `boolean`):

Route requests through an Apify proxy. Direct datacenter requests normally work; enable this only if the SEPREC host starts blocking the run.

## Actor input object example

```json
{
  "maxCompanies": 10,
  "withDetails": true,
  "searchTerms": [
    "FARMACORP"
  ],
  "searchType": "nombre",
  "useProxy": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxCompanies": 10,
    "searchTerms": [
        "FARMACORP"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/seprec-bolivia-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxCompanies": 10,
    "searchTerms": ["FARMACORP"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/seprec-bolivia-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxCompanies": 10,
  "searchTerms": [
    "FARMACORP"
  ]
}' |
apify call scrapers_lat/seprec-bolivia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/seprec-bolivia-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zZ6ujFuRdhdxBeLls/builds/r2UzBPB7v4FuAtIEO/openapi.json
