# Tasa Representativa TRM Colombia USD COP (`unicentrocucuta/colombia-trm`) Actor

Tasa Representativa del Mercado TRM Colombia USD COP. Dolar oficial Superintendencia Financiera (datos.gov.co mcec-87by). Tipo de cambio peso colombiano. Optional BanRep live. Prepaid x402 GET https://x402.lagaceta.net/trm $0.005 USDC Base.

- **URL**: https://apify.com/unicentrocucuta/colombia-trm.md
- **Developed by:** [daniel vera](https://apify.com/unicentrocucuta) (community)
- **Categories:** News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TRM Colombia USD COP | Tasa Representativa del Mercado

Official **TRM Colombia** (Tasa Representativa del Mercado) USD/COP. Colombian peso exchange rate from Superintendencia Financiera via datos.gov.co dataset `mcec-87by`. Not a generic FX guess.

Optional **BanRep live** intradía tick (`mode=live`) from totoro JSON. BanRep HTML is not used.

One dataset row per run. Schedule it.

### TRM Colombia — input

```json
{"mode":"official"}
```

`mode=official` → Superintendencia Financiera daily TRM (datos.gov.co `mcec-87by`).
`mode=live` → Banco de la República intradía USD/COP.

### Output

```json
{
  "pair": "USDCOP",
  "rate": "3128.65",
  "unit": "COP",
  "source": "superfinanciera_datos_gov_co",
  "valid_from": "2026-08-15T00:00:00.000",
  "valid_to": "2026-08-18T00:00:00.000",
  "observed_at": "2026-08-16T09:00:00+00:00"
}
```

### Official sources

- Superintendencia Financiera TRM: [datos.gov.co mcec-87by](https://www.datos.gov.co/resource/mcec-87by.json)
- Banco de la República live: totoro `consultaMercadoCambiario`

If the official upstream is empty, the Actor fails closed. It does not invent a rate.

### Prepaid x402 sibling

Same official TRM as prepaid GET: <https://x402.lagaceta.net/trm> — $0.005 USDC on Base. Discovery: [/.well-known/x402](https://x402.lagaceta.net/.well-known/x402).

This Store Actor does not charge a Store PPE yet. Do not expect a $1 start.

### Related monitors

- [Website Change Monitor](https://apify.com/unicentrocucuta/url-change-watch)
- [GitHub Issues and PR Monitor](https://apify.com/unicentrocucuta/pr-watch-feed)
- [Greenhouse Jobs Scraper](https://apify.com/unicentrocucuta/greenhouse-job-watch)
- [App Store Reviews Scraper](https://apify.com/unicentrocucuta/appstore-watch)
- [Product Price Tracker](https://apify.com/unicentrocucuta/product-price-watch)
- [URL Snapshot Archive](https://apify.com/unicentrocucuta/public-source-archive-tick)

Brand: **TemporalOps**.

# Actor input Schema

## `mode` (type: `string`):

official = Superfinanciera daily TRM. live = BanRep intradía.

## Actor input object example

```json
{
  "mode": "official"
}
```

# Actor output Schema

## `pair` (type: `string`):

No description

## `rate` (type: `string`):

No description

## `unit` (type: `string`):

No description

## `source` (type: `string`):

No description

## `valid_from` (type: `string`):

No description

## `valid_to` (type: `string`):

No description

## `observed_at` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("unicentrocucuta/colombia-trm").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("unicentrocucuta/colombia-trm").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 '{}' |
apify call unicentrocucuta/colombia-trm --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unicentrocucuta/colombia-trm"
        }
    }
}

```

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/mKOEha7vHZivd5csU/builds/6PSGBxk1mUhsRxsEd/openapi.json
