{
  "openapi": "3.0.1",
  "info": {
    "title": "MercadoLibre Scraper | Products Prices LatAm",
    "description": "Scrape MercadoLibre and Mercado Livre across Latin America — ofertas, categories, search & products. Extract item IDs, titles, prices & permalinks from AR/MX/BR and more. Export Excel/CSV/JSON. Unofficial — not affiliated with MercadoLibre.",
    "version": "0.1",
    "x-build-id": "AygBRXQKtmgzGcLYi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~mercadolibre-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-mercadolibre-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/lentic_clockss~mercadolibre-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-mercadolibre-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/lentic_clockss~mercadolibre-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-mercadolibre-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "ofertas",
              "category",
              "search",
              "product",
              "categories",
              "tienda"
            ],
            "type": "string",
            "description": "ofertas=/ofertas paginated deals; category=/c/{slug}; search=listado (often verification); product=PDP (often verification); categories=public categories API; tienda=official seller store (verified org identity: seller_id/official_store_id/followers).",
            "default": "ofertas"
          },
          "countrySite": {
            "title": "Country site",
            "enum": [
              "mercadolibre.com.ar",
              "mercadolibre.com.mx",
              "mercadolivre.com.br",
              "mercadolibre.cl",
              "mercadolibre.com.co",
              "mercadolibre.com.pe",
              "mercadolibre.com.uy",
              "mercadolibre.com.ve",
              "mercadolibre.com.ec",
              "mercadolibre.com.bo",
              "mercadolibre.com.gt",
              "mercadolibre.com.cr",
              "mercadolibre.com.pa",
              "mercadolibre.com.do",
              "mercadolibre.com.hn",
              "mercadolibre.com.ni",
              "mercadolibre.com.sv",
              "mercadolibre.com.py"
            ],
            "type": "string",
            "description": "MercadoLibre country host (siteId MLA/MLM/MLB… also accepted via siteId).",
            "default": "mercadolibre.com.ar"
          },
          "siteId": {
            "title": "Site ID",
            "type": "string",
            "description": "Optional MLA / MLM / MLB / … (overrides countrySite)."
          },
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Required for mode=search (listado). Often blocked by account-verification."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional list; first entry used when keyword empty.",
            "items": {
              "type": "string"
            }
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "Required for mode=category, e.g. celulares-y-telefonos (AR) or celulares-y-telefonia (MX)."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Ofertas filter category=MLAxxxx, or categories mode root id (e.g. MLA1055)."
          },
          "containerId": {
            "title": "Ofertas container_id",
            "type": "string",
            "description": "Ofertas container_id filter from deal landings."
          },
          "price": {
            "title": "Ofertas price filter",
            "type": "string",
            "description": "e.g. 65000.0-250000.0"
          },
          "installments": {
            "title": "Ofertas installments filter",
            "type": "string",
            "description": "Ofertas installments filter value."
          },
          "page": {
            "title": "Ofertas page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Ofertas page",
            "default": 1
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Full PDP URL for mode=product."
          },
          "productId": {
            "title": "Catalog product ID",
            "type": "string",
            "description": "e.g. MLA64352063 for /p/{id}"
          },
          "itemId": {
            "title": "Item ID",
            "type": "string",
            "description": "e.g. MLA1917258137"
          },
          "userProductId": {
            "title": "User product ID",
            "type": "string",
            "description": "e.g. MLAU3818396667 for /up/{id}"
          },
          "storeSlug": {
            "title": "Store slug (tienda/loja)",
            "type": "string",
            "description": "Official store slug, e.g. 2bambu (AR /tienda/{slug}) or motorola (BR /loja/{slug}). Required for mode=tienda; with enrichDetails=true (default) also enriches list results with verified seller org identity keys."
          },
          "enrichDetails": {
            "title": "Enrich leads from seller store",
            "type": "boolean",
            "description": "Default on. When a storeSlug is available, opens the tienda/loja page (guest-open) and enriches every item with verified seller org keys (shop_name, seller_id, official_store_id, followers). Phones/emails are login-gated by platform design and reported via leadAbsences.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Free plan capped at 200 results/run.",
            "default": 40
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional HTTPS Cloud Run origin (allowlisted). Production uses Actor env WORKER_BASE_URL."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}