# Colombia Case Law: Constitutional Court & Council of State (`legaltech/altas-cortes-co`) Actor

Search Colombian high-court case law: Constitutional Court rulings and orders (Relatoría) and Council of State rulings (SAMAI), by text, ruling number, topic, section, rapporteur and dates.

- **URL**: https://apify.com/legaltech/altas-cortes-co.md
- **Developed by:** [Miguel González](https://apify.com/legaltech) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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

### Colombia Case Law: Constitutional Court & Council of State

Searches the case law of two Colombian high courts in their official sources. Constitutional Court (Corte Constitucional): rulings and orders (T, C, SU, A) in the search service of its Relatoría, by full text, topics and subtopics of the Relatoría thesaurus, operative part (resuelve) or challenged statutes; by ruling number (T-760/08, SU-214/16); filters by ruling type, process type, rapporteur and dates; returns number, type, process, date, case file, rapporteur, separate opinions, topic, summary (síntesis), passages and optional full text. Council of State (Consejo de Estado): titled rulings of SAMAI, by full text, case number (radicado) or internal number; filters by section (Sección Primera to Quinta and subsections, Sala Plena, Sala de Consulta), ruling type, rapporteur (ponente), descriptor (topic) and dates; returns radicado, section, rapporteur, ruling type, process type, parties, decision date and the Relatoría titling: descriptors, legal issue (problema jurídico), answer, extract and legal sources.

### Use cases

- Find Constitutional Court rulings on an issue and get their official summary.
- List the Relatoría topics and subtopics under which a matter was decided (e.g. matrimonio igualitario).
- Retrieve a ruling by number (T-760/08, C-355/06) with its full text.
- Search Council of State rulings of one section (e.g. Sección Tercera, reparación directa) by rapporteur, descriptor and dates.
- Get the legal issue and answer of each Council of State ruling for quick analysis.

### How to use (guide for AI agents)

- `sources`: corte-constitucional, consejo-estado (both by default) — pick by title.
- `searchIn` (Constitutional Court): text, topics, operativePart, statutes.
- `searchIn: "topics"` returns one item per topic/subtopic of the Relatoría thesaurus, so the same ruling can appear several times. The source does not filter or sort topics by date: the actor applies `dateFrom`, `dateTo`, `rapporteur` and the date order itself, reading up to 10 pages of the source (slower, about 10-30 s). `totalFound` is then the number of matching items found, not an exact total.
- `ceSections` and `ceRulingTypes` (Council of State) and `ccRulingTypes`/`ccProcessTypes` (Constitutional Court): pick by title.
- `rulingNumbers`: "T-760/08", "SU-214/16" (Constitutional Court); 23-digit radicado or internal number (Council of State).
- Search terms in Spanish.
- Every result includes `searchTerm` and `rank`; `passages` holds the paragraphs where the search terms appear, ready for LLM analysis.

### Input example

```json
{
    "searchTerms": ["falla del servicio"],
    "sources": ["corte-constitucional", "consejo-estado"],
    "ceSections": ["Sección Tercera (Subsección A)"],
    "ceRulingTypes": ["Sentencia"],
    "dateFrom": "2023-01-01",
    "sortOrder": "newest",
    "maxResults": 20,
    "passages": 3
}
```

### Output example (abridged)

```json
[
    {
        "source": "Corte Constitucional",
        "searchTerm": "matrimonio igualitario",
        "rank": 2,
        "rulingNumber": "SU.214/16",
        "rulingType": "Sentencia de unificación",
        "processType": "Acciones de Tutela",
        "decisionDate": "2016-04-28",
        "caseNumber": "T-4167863 Y OTROS ACUMULADOS",
        "rapporteur": "Alberto Rojas Ríos",
        "summary": "A través de esta providencia se resuelven seis casos ...",
        "url": "https://www.corteconstitucional.gov.co/relatoria/2016/SU214-16.htm"
    },
    {
        "source": "Consejo de Estado",
        "searchTerm": null,
        "rank": 1,
        "caseNumber": "05001233300020150062301",
        "internalNumber": "73854",
        "rulingType": "Sentencia",
        "section": "Sección Tercera (Subsección A)",
        "rapporteur": "JOSÉ ROBERTO SÁCHICA MÉNDEZ",
        "processType": "LEY 1437 CONTROVERSIAS CONTRACTUALES",
        "plaintiff": "PINUR LTDA",
        "defendant": "MUNICIPIO DE TURBO ANTIOQUIA",
        "decisionDate": "2026-06-26",
        "titles": [{
            "descriptors": ["FACULTAD OFICIOSA DEL JUEZ", "DEBERES DEL JUEZ DE SEGUNDA INSTANCIA", "CADUCIDAD DEL MEDIO DE CONTROL"],
            "legalIssue": "¿Puede el juez de segunda instancia examinar de oficio la caducidad del medio de control, aun cuando dicho asunto no haya sido planteado expresamente por el apelante?",
            "answer": "Si",
            "extract": "De acuerdo con el art 328 del CGP, la competencia del juez de segundo grado está circunscrita al análisis de los argumentos expuestos por el apelante...",
            "legalSource": "LEY 1564 DE 2012 - ARTÍCULO 328"
        }],
        "url": "https://samai.consejodeestado.gov.co/vistas/casos/list_procesos.aspx?guid=050012333000201500623011100103"
    }
]
```

### Notes and limits

- Council of State: only rulings titled by its Relatoría in SAMAI are covered, and the date filter starts on 2021-12-01. The full text (PDF) is not downloaded; `url` opens the case file in SAMAI and `certificate` is the document hash shown by the source.
- Council of State searches run on an ASP.NET form (one request per filter and per page of 10 results), so they are slower than Constitutional Court searches.
- Constitutional Court: the rapporteur filter is applied to the results returned by the source.

### Source

Only official sources are used (courts, ministries or the open data published by the courts themselves). Results are returned as published by the source.

### Proxy

No proxy is needed: the sources are official open services. If they start blocking, enable `proxyConfiguration` (Apify RESIDENTIAL (CO) recommended, or your own `proxyUrls`). Requests then go through a sticky session (same IP, own cookies) with a Chrome TLS fingerprint (impit), and the IP is rotated on 403/429 or network errors.

# Actor input Schema

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

One search per item, in Spanish. Constitutional Court: words or "exact phrase" over the full text (or over the field chosen in `searchIn`). Council of State: full-text search of the titled rulings.

## `rulingNumbers` (type: `array`):

Constitutional Court ruling numbers such as "T-760/08", "SU-214/16", "C-355/06" or "A. 185A/16"; Council of State case numbers (radicado, 23 digits) or internal numbers (número interno).

## `sources` (type: `array`):

Which courts to search. Codes are opaque: do NOT guess them; choose by reading the title (enumTitle) of each option.

## `searchIn` (type: `string`):

"topics" returns each ruling with the topic and subtopic under which the Relatoría classified it.

## `ccRulingTypes` (type: `array`):

Constitutional Court ruling types (T, C, SU, A). Empty = all.

## `ccProcessTypes` (type: `array`):

Constitutional Court process types. Empty = all.

## `ceSections` (type: `array`):

Sección Primera: nullity and general administrative matters; Segunda: labour/public employment; Tercera: contracts and state liability (reparación directa); Cuarta: taxes; Quinta: elections and tutela.

## `ceRulingTypes` (type: `array`):

Council of State ruling types. Empty = all.

## `rapporteur` (type: `string`):

Name or surname, e.g. "Sáchica" or "Reyes Cuartas". Council of State: applied by the source; Constitutional Court: applied to the results.

## `ceTopic` (type: `string`):

Only rulings titled with a descriptor containing this text, e.g. "caducidad" or "falla del servicio".

## `dateFrom` (type: `string`):

Decision date, start of range (YYYY-MM-DD). The Council of State date filter starts on 2021-12-01.

## `dateTo` (type: `string`):

Decision date, end of range (YYYY-MM-DD).

## `sortOrder` (type: `string`):

Sort criterion.

## `maxResults` (type: `integer`):

Maximum per search term and court. The Council of State returns 10 results per page.

## `passages` (type: `integer`):

Paragraphs containing the search terms, returned in `passages` (0 = none). Constitutional Court: from the full text (each ruling is opened); Council of State: from the titling (legal issue, answer, extract).

## `includeFullText` (type: `boolean`):

Adds the `text` field with the full Constitutional Court ruling. Greatly increases output size.

## `proxyConfiguration` (type: `object`):

Optional. The sources usually work without a proxy. If they block, use Apify RESIDENTIAL (CO) or your own proxyUrls; requests then use sticky sessions, IP rotation and a Chrome TLS fingerprint.

## Actor input object example

```json
{
  "searchTerms": [
    "matrimonio igualitario"
  ],
  "rulingNumbers": [],
  "sources": [
    "corte-constitucional",
    "consejo-estado"
  ],
  "searchIn": "text",
  "ccRulingTypes": [],
  "ccProcessTypes": [],
  "ceSections": [],
  "ceRulingTypes": [],
  "sortOrder": "relevance",
  "maxResults": 20,
  "passages": 3,
  "includeFullText": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset of rulings returned by the search, one item per result. Main fields: source, searchTerm, rulingNumber, caseNumber, rulingType, section, rapporteur, decisionDate, summary, titles, passages, url. See the dataset schema for the full list of fields.

# 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 = {
    "searchTerms": [
        "matrimonio igualitario"
    ],
    "rulingNumbers": [],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("legaltech/altas-cortes-co").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 = {
    "searchTerms": ["matrimonio igualitario"],
    "rulingNumbers": [],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("legaltech/altas-cortes-co").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 '{
  "searchTerms": [
    "matrimonio igualitario"
  ],
  "rulingNumbers": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call legaltech/altas-cortes-co --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,legaltech/altas-cortes-co"
        }
    }
}
```

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/o1bxVKDkOkhKpkeLf/builds/kFX231MifsRdgmkxd/openapi.json
