{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre Scraper - Search, Products, Reviews, Sellers",
    "description": "Mercado Libre and Mercado Livre in 18 countries, no login: search with every filter, product details with variations, stock, shipping and buy-box offers, reviews, Q&A, seller profiles, categories, best sellers, deals and a market report per keyword.",
    "version": "1.0",
    "x-build-id": "9p68u63TukBUkGuqD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~mercadolibre-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-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/pomlabs~mercadolibre-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-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/pomlabs~mercadolibre-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-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": "What to get",
            "enum": [
              "auto",
              "search",
              "product",
              "reviews",
              "questions",
              "seller",
              "categories",
              "bestsellers",
              "deals",
              "market",
              "suggestions"
            ],
            "type": "string",
            "description": "auto (default): each query picks its mode (product link -> product, seller link -> seller, words -> search). search: keyword search with filters, up to 2,000 listings per query and country. product: full product page (price, list price, stock, variations, specs, shipping options, buy-box offers, seller, rating breakdown, optional reviews and Q&A). reviews: all reviews of a product, filter by stars. questions: questions and answers of a product. seller: seller profile and reputation plus their listings. categories: the category tree of a country (or the children of categoryId). bestsellers: best-seller rankings of a category (or the home rankings). deals: today's deals page. market: one report per keyword and country (price quartiles, sellers' share, free-shipping %, official-store %, sponsored %, best sellers). suggestions: what buyers type in the search box for a keyword start, per country (up to 20 per query).",
            "default": "auto"
          },
          "queries": {
            "title": "Queries or URLs",
            "type": "array",
            "description": "One per line: keywords (search, market), product links or ids such as MLB-123456789 or /p/MLB123456 (product, reviews, questions), seller links, seller ids or a link of one of the seller's products (seller). Optional for categories, bestsellers and deals. Up to 50 per run.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Countries for keyword modes (each keyword runs in each country). Product and seller links carry their own country.",
            "items": {
              "type": "string",
              "enum": [
                "MLB",
                "MLA",
                "MLM",
                "MLC",
                "MCO",
                "MLU",
                "MPE",
                "MEC",
                "MLV",
                "MBO",
                "MPY",
                "MRD",
                "MPA",
                "MCR",
                "MGT",
                "MHN",
                "MNI",
                "MSV"
              ],
              "enumTitles": [
                "Brazil (MLB)",
                "Argentina (MLA)",
                "Mexico (MLM)",
                "Chile (MLC)",
                "Colombia (MCO)",
                "Uruguay (MLU)",
                "Peru (MPE)",
                "Ecuador (MEC)",
                "Venezuela (MLV)",
                "Bolivia (MBO)",
                "Paraguay (MPY)",
                "Dominican Republic (MRD)",
                "Panama (MPA)",
                "Costa Rica (MCR)",
                "Guatemala (MGT)",
                "Honduras (MHN)",
                "Nicaragua (MNI)",
                "El Salvador (MSV)"
              ]
            },
            "default": [
              "MLB"
            ]
          },
          "maxItems": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Listings, reviews or questions per query and country (up to 2,000). Product mode: one row per link.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Search order, as on the site.",
            "default": "relevance"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "new",
              "used",
              "refurbished"
            ],
            "type": "string",
            "description": "Only listings in this condition (empty = any)."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in the country's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in the country's currency."
          },
          "minDiscount": {
            "title": "Min discount %",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this discount (site filter)."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings rated at least this (1-5), checked on the returned rows."
          },
          "minSold": {
            "title": "Min units sold",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings that show at least this many units sold, checked on the returned rows."
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop listings whose title contains any of these words (accents and case ignored), checked on the returned rows.",
            "items": {
              "type": "string"
            }
          },
          "interestFreeOnly": {
            "title": "Interest-free installments only",
            "type": "boolean",
            "description": "Only listings that offer installments without interest, checked on the returned rows."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only listings with free shipping (site filter)."
          },
          "fullShippingOnly": {
            "title": "Full (fulfilled by Mercado Libre) only",
            "type": "boolean",
            "description": "Only listings shipped from Mercado Libre's warehouses (site filter)."
          },
          "officialStoresOnly": {
            "title": "Official stores only",
            "type": "boolean",
            "description": "Only listings from official brand stores (site filter)."
          },
          "scrapeProductDetails": {
            "title": "Open each listing (full details)",
            "type": "boolean",
            "description": "Search: also open each listing's product page and add stock, variations, specs, shipping options and seller. Charged as a product per listing."
          },
          "returnSimilarListings": {
            "title": "Return the listing a dead link redirects to",
            "type": "boolean",
            "description": "product: when Mercado Libre sends your product link to a different listing (usually because yours ended), return that listing too, marked similarListing: true with inputUrl and redirectedTo. Off: the link comes back as 'redirected' and is not charged.",
            "default": false
          },
          "includeSponsored": {
            "title": "Keep sponsored listings",
            "type": "boolean",
            "description": "Search: keep the sponsored (ad) listings, marked isAd. Turn off to drop them.",
            "default": true
          },
          "categoryId": {
            "title": "Category id",
            "type": "string",
            "description": "Category such as MLB1055. Search or market without a keyword lists the whole category; with a keyword, narrows it. Bestsellers: the ranking of this category. Categories: its children."
          },
          "maxReviews": {
            "title": "Reviews per product (product mode)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Product mode: also bring up to this many reviews inside each product row (0 = the 5 shown on the page)."
          },
          "maxQuestions": {
            "title": "Questions per product (product mode)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Product mode: also bring up to this many questions and answers inside each product row."
          },
          "reviewOrder": {
            "title": "Review order",
            "enum": [
              "relevance",
              "dateCreated"
            ],
            "type": "string",
            "description": "reviews and product: order of the reviews. 'dateCreated' returns the newest first.",
            "default": "relevance"
          },
          "reviewRating": {
            "title": "Reviews with these stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Reviews: only reviews with this many stars (1-5)."
          },
          "maxItemsPerSeller": {
            "title": "Listings per seller",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Seller mode: how many of the seller's listings to bring (default: Max results per query)."
          },
          "includeSellerProfile": {
            "title": "Seller profile row",
            "type": "boolean",
            "description": "seller: add one profile row per seller before the listings: reputation, level, and for sellers with a store page the followers, logo, banner, date created, tags, brand, store menu and moderation and debt flags.",
            "default": true
          },
          "marketSample": {
            "title": "Listings sampled per market report",
            "minimum": 50,
            "maximum": 1000,
            "type": "integer",
            "description": "Market mode: how many listings the report reads per keyword and country (50-1,000). The report is one row.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}