{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre Scraper — Products, Sellers & Sales",
    "description": "Scrape Mercado Libre and Mercado Livre in all 18 Latin American countries. Search by keyword or paste product, category or store URLs and get 45+ fields: price, discount, units sold, seller reputation, MercadoLíder, official store, FULL shipping, specs and reviews. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "erNQjig5XsuAgcYXy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ultramarine_freezer~MeLi/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ultramarine_freezer-MeLi",
        "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/ultramarine_freezer~MeLi/runs": {
      "post": {
        "operationId": "runs-sync-ultramarine_freezer-MeLi",
        "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/ultramarine_freezer~MeLi/run-sync": {
      "post": {
        "operationId": "run-sync-ultramarine_freezer-MeLi",
        "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": {
          "busqueda": {
            "title": "Search term / Término de búsqueda",
            "type": "string",
            "description": "Product to search for (e.g. iphone 15, laptop gaming). Leave empty if you only use direct URLs. / Producto a buscar (ej: iphone 15). Déjalo vacío si solo usas URLs directas."
          },
          "startUrls": {
            "title": "Direct URLs: product, category or store / URLs directas",
            "type": "array",
            "description": "Mercado Libre URLs of products (/p/MLM...), categories or listings (listado.mercadolibre...) or stores (/tienda/...). They are auto-detected and the country comes from the domain. You can mix them with the keyword search. / URLs de producto, categoría o tienda; se auto-clasifican y el país se detecta del dominio.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "paises": {
            "title": "Countries for the keyword search / Países",
            "uniqueItems": true,
            "type": "array",
            "description": "Countries where the search term is searched. For direct URLs the country comes from the domain. / Países donde buscar el término; en URLs directas el país sale del dominio.",
            "items": {
              "type": "string",
              "enum": [
                "AR",
                "BO",
                "BR",
                "CL",
                "CO",
                "CR",
                "DO",
                "EC",
                "GT",
                "HN",
                "MX",
                "NI",
                "PA",
                "PY",
                "PE",
                "SV",
                "UY",
                "VE"
              ],
              "enumTitles": [
                "🇦🇷 Argentina",
                "🇧🇴 Bolivia",
                "🇧🇷 Brazil / Brasil",
                "🇨🇱 Chile",
                "🇨🇴 Colombia",
                "🇨🇷 Costa Rica",
                "🇩🇴 Dominican Republic / República Dominicana",
                "🇪🇨 Ecuador",
                "🇬🇹 Guatemala",
                "🇭🇳 Honduras",
                "🇲🇽 Mexico / México",
                "🇳🇮 Nicaragua",
                "🇵🇦 Panama / Panamá",
                "🇵🇾 Paraguay",
                "🇵🇪 Peru / Perú",
                "🇸🇻 El Salvador",
                "🇺🇾 Uruguay",
                "🇻🇪 Venezuela"
              ]
            },
            "default": [
              "MX"
            ]
          },
          "soloListado": {
            "title": "Fast mode: listing only / Modo rápido: solo listado",
            "type": "boolean",
            "description": "Only extracts the listing cards (title, price, discount, shipping, rating, position) WITHOUT opening each product. Much faster and cheaper, ideal for large-scale price monitoring. / Solo las tarjetas del listado, sin entrar a cada producto: más rápido y barato.",
            "default": false
          },
          "traducirColumnas": {
            "title": "Portuguese columns for Brazil / Columnas en portugués (Brasil)",
            "type": "boolean",
            "description": "Brazil rows use Portuguese column names and values (preco_atual, condicao, Novo...). Keep it OFF for a clean multi-country dataset with the same Spanish columns. / Déjalo apagado para un dataset multi-país con columnas consistentes.",
            "default": false
          },
          "maxReviews": {
            "title": "Detailed reviews per product / Reseñas por producto",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many reviews to extract with detail (stars, text, date, country, likes, photos). Use 0 to turn them off. Detail mode only. / Cuántas reseñas extraer con detalle; 0 las desactiva.",
            "default": 10
          },
          "convertirUSD": {
            "title": "Add price in USD / Añadir precio en USD",
            "type": "boolean",
            "description": "Adds the precio_usd field converted from the local currency with live exchange rates (or the ones you set below). Useful to compare prices across countries. / Agrega precio_usd con tasas del día para comparar países.",
            "default": false
          },
          "tasasUSD": {
            "title": "Manual USD exchange rates (optional) / Tasas a USD",
            "type": "object",
            "description": "Optional currency→USD factors, e.g. {\"MXN\": 0.058, \"BRL\": 0.18, \"ARS\": 0.001}. If empty and USD is on, live rates are used. / Opcional; si se deja vacío se usan tasas en vivo.",
            "default": {}
          },
          "maxItems": {
            "title": "Max products per country / Máximo de productos por país",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Products to scrape per country. Use 0 for everything available (⚠️ no limit, can be expensive). / Usa 0 para todo lo disponible (⚠️ sin límite).",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Concurrency / Concurrencia",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages processed in parallel: 3 (balanced), 5 (fastest), 2 (most stable). Values above 5 are capped at 5. / Páginas en paralelo; más de 5 se limita a 5.",
            "default": 3
          },
          "separarDatasetsPorPais": {
            "title": "Also save one file per country / Un archivo por país",
            "type": "boolean",
            "description": "When you scrape several countries, also saves one JSON file per country in the key-value store, besides the unified dataset. / Guarda además un JSON por país.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration / Configuración de proxy",
            "type": "object",
            "description": "⚠️ Residential proxies strongly recommended: Mercado Libre blocks datacenter IPs. / Muy recomendado: proxies residenciales."
          },
          "externalProxies": {
            "title": "Your own proxies (optional) / Proxies externos",
            "type": "array",
            "description": "Your own proxy URLs, format: http://user:pass@host:port. / URLs de tus propios proxies.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}