{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre Scraper LATAM (18 Países)",
    "description": "Scraper rápido, confiable y estructurado para Mercado Libre en 18 países de LATAM. Extrae precios oficiales, cuotas, descuentos, vendedores y stock sin proxies obligatorios.",
    "version": "0.0",
    "x-build-id": "FaWnver2xxojiOW9r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/doorma_10~mercadolibre-latam-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-doorma_10-mercadolibre-latam-scraper",
        "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/doorma_10~mercadolibre-latam-scraper/runs": {
      "post": {
        "operationId": "runs-sync-doorma_10-mercadolibre-latam-scraper",
        "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/doorma_10~mercadolibre-latam-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-doorma_10-mercadolibre-latam-scraper",
        "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": {
          "searchTerms": {
            "title": "Términos de búsqueda (Search terms)",
            "type": "array",
            "description": "Lista de palabras clave a buscar en Mercado Libre. Puedes agregar múltiples términos o editarlos en lote.",
            "default": [
              "celular"
            ],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "País (Country)",
            "enum": [
              "AR",
              "MX",
              "BR",
              "CL",
              "CO",
              "UY",
              "PE",
              "EC",
              "BO",
              "CR",
              "DO",
              "GT",
              "HN",
              "NI",
              "PA",
              "PY",
              "SV",
              "VE"
            ],
            "type": "string",
            "description": "Selecciona el país o marketplace regional de Mercado Libre.",
            "default": "AR"
          },
          "startUrls": {
            "title": "Enlaces directos de Mercado Libre (Mercado Libre links)",
            "type": "array",
            "description": "URLs de búsquedas, categorías, tiendas oficiales o productos directos en Mercado Libre.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Máximo de resultados por búsqueda (Max results per search or link)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cantidad máxima de productos a extraer por cada término o enlace.",
            "default": 50
          },
          "extractProductDetails": {
            "title": "Incluir detalles completos del producto (Include full product details)",
            "type": "boolean",
            "description": "Si está activo, visita la publicación de cada producto para extraer descripción detallada, galería completa de fotos en alta resolución, ficha técnica y reputación del vendedor.",
            "default": false
          },
          "sort": {
            "title": "Ordenar por (Sort by)",
            "enum": [
              "Más relevantes",
              "Menor precio",
              "Mayor precio"
            ],
            "type": "string",
            "description": "Criterio de ordenación para los resultados de búsqueda.",
            "default": "Más relevantes"
          },
          "condition": {
            "title": "Condición (Condition)",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Filtrar productos por estado o condición.",
            "default": "all"
          },
          "freeShippingOnly": {
            "title": "Solo envío gratis (Free shipping only)",
            "type": "boolean",
            "description": "Si está activo, solo incluye productos que ofrecen envío gratuito.",
            "default": false
          },
          "fullShippingOnly": {
            "title": "Solo envíos Full (Full shipping only)",
            "type": "boolean",
            "description": "Si está activo, solo incluye productos despachados mediante fulfillment Mercado Libre Full.",
            "default": false
          },
          "officialStoresOnly": {
            "title": "Solo tiendas oficiales (Official stores only)",
            "type": "boolean",
            "description": "Si está activo, filtra solo publicaciones de tiendas oficiales verificadas.",
            "default": false
          },
          "promoted": {
            "title": "Incluir publicaciones patrocinadas (Include promoted / ads)",
            "type": "boolean",
            "description": "Si está activo, incluye también los anuncios y publicaciones promocionadas.",
            "default": false
          },
          "maxPages": {
            "title": "Límite de páginas a recorrer (Max pages)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cantidad máxima de páginas de búsqueda a paginar automáticamente.",
            "default": 1
          },
          "includeReviews": {
            "title": "Incluir reseñas públicas (Include reviews)",
            "type": "boolean",
            "description": "Extrae reseñas y comentarios de compradores en los productos enriquecidos.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Configuración de Proxies (Proxy configuration)",
            "type": "object",
            "description": "Configura proxies de Apify o proxies residenciales/datacenter si se requiere distribuir tráfico en alta concurrencia. Por defecto utiliza conexión directa optimizada.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}