{
  "openapi": "3.0.1",
  "info": {
    "title": "Lista 69-B del SAT y proveedores sancionados en LatAm",
    "description": "Revise RFC, CNPJ, NIT y cédulas jurídicas en listas oficiales de empresas sancionadas: lista 69-B del SAT (México), CEIS y CNEP (Brasil), SECOP (Colombia), SICOP (Costa Rica) y BID. También busca por nombre con coincidencia aproximada. Debida diligencia de proveedores en lote.",
    "version": "1.0",
    "x-build-id": "adn2k4vNDQmIryXNJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendata-cr~latam-sanctions-screening/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendata-cr-latam-sanctions-screening",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/opendata-cr~latam-sanctions-screening/runs": {
      "post": {
        "operationId": "runs-sync-opendata-cr-latam-sanctions-screening",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/opendata-cr~latam-sanctions-screening/run-sync": {
      "post": {
        "operationId": "run-sync-opendata-cr-latam-sanctions-screening",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "taxIds": {
            "title": "Identificaciones / Tax IDs",
            "type": "array",
            "description": "NIT, CNPJ, RFC o cédula jurídica. Se aceptan puntos, guiones y la barra del CNPJ. Un NIT de 9 dígitos coincide con el mismo NIT con dígito de verificación. Tax IDs. Punctuation is ignored.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Nombres de empresa / Company names",
            "type": "array",
            "description": "Se buscan por aproximación si la coincidencia aproximada de nombre está activa. No distingue mayúsculas ni tildes. Fuzzy name search. Case and accents are ignored.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Consultas avanzadas / Advanced queries",
            "type": "array",
            "description": "Objetos {\"taxId\", \"name\", \"country\"} cuando un nombre debe limitarse a un país. Un texto suelto se trata como identificación si parece un ID y como nombre si no. Objects tie an ID and a name to one country. A plain string is an ID or a name."
          },
          "countries": {
            "title": "Países / Countries",
            "type": "array",
            "description": "Códigos ISO. Vacío revisa todas las fuentes. CO, BR, MX y CR limitan la lista de ese país. El BID se incluye siempre y se filtra por el país de la firma. Empty searches every source. IDB firms are filtered by the firm's country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fuzzyNameMatch": {
            "title": "Coincidencia aproximada de nombre / Fuzzy name match",
            "type": "boolean",
            "description": "Compara nombres de forma aproximada. Las coincidencias exactas por identificación no dependen de esto. Fuzzy name matching. Exact tax-ID matches do not use it.",
            "default": true
          },
          "fuzzyThreshold": {
            "title": "Umbral / Fuzzy threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "De 0 a 100. Con 92 pasa un nombre casi completo y no pasa una sola palabra genérica. 0 to 100.",
            "default": 92
          },
          "maxResults": {
            "title": "Máximo de coincidencias / Maximum matches",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Tope de coincidencias cobradas. El formulario propone 25. Cada coincidencia cuesta US$0,02. Si se omite el campo, el tope es 500. Cap on charged matches. The form suggests 25. Each match costs US$0.02. If omitted, the cap is 500.",
            "default": 500
          },
          "maxMatchesPerQuery": {
            "title": "Máximo por consulta / Maximum per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Una empresa puede tener varias sanciones. Cada fila es una coincidencia. One company can have several sanctions. Each row is a match.",
            "default": 100
          },
          "useCache": {
            "title": "Usar caché del índice / Use index cache",
            "type": "boolean",
            "description": "Guarda el índice de empresas en un Key-Value Store con nombre. Mientras la caché no haya vencido, las siguientes ejecuciones no vuelven a descargar las listas. Stores the company index in a named Key-Value Store.",
            "default": true
          },
          "refreshCache": {
            "title": "Reconstruir caché / Refresh cache",
            "type": "boolean",
            "description": "Ignora la caché y vuelve a descargar las listas. Ignore the cache and download the lists again.",
            "default": false
          },
          "cacheTtlHours": {
            "title": "Vida de la caché (horas) / Cache TTL (hours)",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Pasado este plazo, el índice se reconstruye. After this the index is rebuilt.",
            "default": 24
          },
          "cacheStoreName": {
            "title": "Almacén de la caché / Cache store name",
            "type": "string",
            "description": "Key-Value Store con nombre. No es el dataset de resultados. Named Key-Value Store. It is not the results dataset.",
            "default": "latam-sanctions-index"
          },
          "includeUnmatched": {
            "title": "Registrar consultas sin coincidencia / Record queries with no match",
            "type": "boolean",
            "description": "Se guardan en el registro NO_MATCHES del Key-Value Store. No se cobran como coincidencia. Written to the NO_MATCHES key-value record. Not charged.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}