{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Livre Scraper: Mercadolivre Brazil Products & Prices",
    "description": "Scrape Mercado Livre Brazil products by search words, list, seller, official store, offers or product link: Pix and card prices, old price, discount, installments, sold count, rating, reviews, seller, shipping, FULL and CEP. Product pages and Q&A optional. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "YVYdNfSKN9oo5ni71"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~mercadolivre-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-mercadolivre-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/hyperbach~mercadolivre-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-mercadolivre-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/hyperbach~mercadolivre-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-mercadolivre-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": "Search words",
            "maxItems": 1000,
            "type": "array",
            "description": "Words you would type in Mercado Livre's search box, one search per line (Portuguese works best: notebook gamer, tênis masculino). Each search is walked page by page, 48 products a page, to the source's own end (at most 42 pages) or to maxPages / maxItems.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Mercado Livre links or MLB ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Mercado Livre links, one a line: a search or any list page of lista.mercadolivre.com.br (read with its own filters and sort), a seller's list (lista.mercadolivre.com.br/_CustId_<seller id>), an official store (mercadolivre.com.br/loja/<store>), the offers of the day (mercadolivre.com.br/ofertas), the best sellers (mercadolivre.com.br/mais-vendidos), or a product (…/p/MLB…, produto.mercadolivre.com.br/MLB-…). A bare MLB id is read as a product: 10 digits or more a listing, fewer a catalog product.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond maxPages and your charge limit. The product links are read first (one row each), then the searches and lists in your order: at a low maxItems a later input can get no row (its own row says so).",
            "default": 0
          },
          "maxPages": {
            "title": "Max pages per search or list",
            "minimum": 0,
            "maximum": 42,
            "type": "integer",
            "description": "The most pages each search or list is read to (48 products a page; the offers 48, the best sellers one page). 0 = to the list's own end: Mercado Livre lists at most 42 pages (about 2,000 products) of any search, whatever its count says.",
            "default": 0
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Mercado Livre's own sort of a search, a seller's or a store's list: most relevant (its default), lowest price, highest price. A list link keeps its own sort.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Mercado Livre's own price filter, in reais. The input's own row names the filters the page said it applied."
          },
          "maxPrice": {
            "title": "Max price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Mercado Livre's own price filter, in reais."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Mercado Livre's own condition filter.",
            "default": "any"
          },
          "freeShipping": {
            "title": "Only free shipping",
            "type": "boolean",
            "description": "Mercado Livre's own free-shipping filter (Frete grátis).",
            "default": false
          },
          "fullShipping": {
            "title": "Only shipped by FULL",
            "type": "boolean",
            "description": "Mercado Livre's own FULL filter (stocked and shipped by Mercado Livre).",
            "default": false
          },
          "minDiscount": {
            "title": "Min discount (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Mercado Livre's own discount filter: products at least this many percent off (10, 20, 30, 40, 50, 60 are the site's own steps). 0 = any.",
            "default": 0
          },
          "officialStoresOnly": {
            "title": "Only official stores",
            "type": "boolean",
            "description": "Mercado Livre's own official-store filter (Lojas oficiais).",
            "default": false
          },
          "noInterestInstallments": {
            "title": "Only installments without interest",
            "type": "boolean",
            "description": "Mercado Livre's own installments filter (Parcelamento sem juros).",
            "default": false
          },
          "shippingOrigin": {
            "title": "Shipping origin",
            "enum": [
              "any",
              "local",
              "international"
            ],
            "type": "string",
            "description": "Mercado Livre's own shipping-origin filter: from Brazil, or international purchases.",
            "default": "any"
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Off (the default): the sponsored cards (Patrocinado) the list shows on top of the results are left out and not charged. On: they are rows too, each with sponsored = true and no organic position.",
            "default": false
          },
          "includeDetails": {
            "title": "Read each product's page",
            "type": "boolean",
            "description": "Off (the default): each row is the list card (ids, title, prices, installments, sold count, rating, reviews, seller, shipping, position). On: each row is also read from the product's own page: description, specs, all pictures, the video, variations, stock, the seller's id, status and sales, the buy box's other offers, the warranty, the return policy, payment methods and the reviews the page shows. One more page a product; a product row is priced apart from a card row.",
            "default": false
          },
          "includeQuestions": {
            "title": "Add questions and answers",
            "type": "boolean",
            "description": "Adds the product's first 20 buyers' questions (the Q&A page's first page) with the seller's answers and the answer dates to each row: one more page a product, charged as an add-on on the rows that have it. No name is in the row: a name after a greeting is replaced by [nome].",
            "default": false
          },
          "cep": {
            "title": "CEP (delivery region)",
            "type": "string",
            "description": "A Brazilian CEP (8 digits, 20040-002 or 20040002): the prices and the delivery are read for it. Empty: Mercado Livre's default region for a visitor (CEP 05211120, São Paulo). Each row names the CEP the page read."
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}