{
  "openapi": "3.0.1",
  "info": {
    "title": "MercadoLibre Multi-Country Marketplace Scraper",
    "description": "Search MercadoLibre by keyword or category, fetch item detail by ID, or list a country's category tree across 9 Latin American sites. Returns price, seller, shipping and category data per item.",
    "version": "2.0",
    "x-build-id": "m4pbC1XYTxetki7oF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~mercadolibre-multi-country-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-mercadolibre-multi-country-marketplace-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/vexaloom-labs~mercadolibre-multi-country-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-mercadolibre-multi-country-marketplace-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/vexaloom-labs~mercadolibre-multi-country-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-mercadolibre-multi-country-marketplace-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",
        "required": [
          "mode",
          "siteId"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "product",
              "reviews",
              "questions",
              "seller",
              "categories",
              "bestSellers",
              "deals",
              "searchProducts",
              "searchByCategory",
              "getProductDetails",
              "getCategories"
            ],
            "type": "string",
            "description": "Choose the kind of MercadoLibre data you need.",
            "default": "search"
          },
          "siteId": {
            "title": "Country site",
            "enum": [
              "MLA",
              "MLB",
              "MLM",
              "MLC",
              "MCO",
              "MPE",
              "MLU",
              "MEC",
              "MLV",
              "MBO",
              "MPY",
              "MGT",
              "MHN",
              "MNI",
              "MSV",
              "MCR",
              "MPA",
              "MRD",
              "MLO"
            ],
            "type": "string",
            "description": "MercadoLibre country marketplace to query.",
            "default": "MLA"
          },
          "searchQuery": {
            "title": "Search keywords",
            "type": "string",
            "description": "Keyword to search for (mode=search). Example: laptop.",
            "default": "laptop"
          },
          "searchUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Paste MercadoLibre search, category or seller listing URLs (mode=search/seller). One per line.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "categoryId": {
            "title": "Category ID or URL",
            "type": "string",
            "description": "Category to browse or use as a filter (mode=search/categories/bestSellers/deals). Example: MLM1652."
          },
          "categoryQuery": {
            "title": "Category discovery keyword",
            "type": "string",
            "description": "Find matching categories from a keyword (mode=categories). Example: laptop."
          },
          "sellerId": {
            "title": "Seller ID or URL",
            "type": "string",
            "description": "Seller to catalog (mode=seller/search). Numeric ID, _CustId_ URL or seller_id URL."
          },
          "productUrls": {
            "title": "Product URLs or IDs",
            "type": "array",
            "description": "Product, catalog or item URLs or IDs (mode=product/reviews/questions). One per line.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "How to order search and seller results.",
            "default": "relevance"
          },
          "condition": {
            "title": "Item condition",
            "enum": [
              "all",
              "any",
              "new",
              "used",
              "refurbished",
              "open_box"
            ],
            "type": "string",
            "description": "Filter products by condition (mode=search/seller).",
            "default": "any"
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest price in the country currency (mode=search/seller). 0 means no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Highest price in the country currency (mode=search/seller). 0 means no maximum.",
            "default": 0
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Keep products with free shipping (mode=search/seller).",
            "default": false
          },
          "fullShippingOnly": {
            "title": "MercadoLibre FULL only",
            "type": "boolean",
            "description": "Keep products fulfilled by MercadoLibre FULL (mode=search/seller).",
            "default": false
          },
          "officialStoresOnly": {
            "title": "Official stores only",
            "type": "boolean",
            "description": "Keep products sold by official stores (mode=search/seller).",
            "default": false
          },
          "minDiscount": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep products discounted by at least this percentage (mode=search/seller/deals). 0 disables it.",
            "default": 0
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Include paid placements in search and seller results.",
            "default": true
          },
          "includeDetails": {
            "title": "Enrich with product details",
            "type": "boolean",
            "description": "Fetch the full detail page for every search or seller result (mode=search/seller). Slower, more fields.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Attach review summary and review rows to product records (mode=product).",
            "default": false
          },
          "includeQuestions": {
            "title": "Include questions",
            "type": "boolean",
            "description": "Attach buyer questions and answers to product records (mode=product).",
            "default": false
          },
          "includeSellerProfile": {
            "title": "Include seller profile",
            "type": "boolean",
            "description": "Emit a seller profile row before the catalog (mode=seller).",
            "default": false
          },
          "includeAttributes": {
            "title": "Include category attributes",
            "type": "boolean",
            "description": "Attach the attribute schema to a category record (mode=categories with categoryId).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum records to return. Product queries stop at the source's 2,000-row window.",
            "default": 50
          },
          "maxReviews": {
            "title": "Maximum reviews",
            "minimum": 1,
            "maximum": 1650,
            "type": "integer",
            "description": "Maximum review rows per product (mode=reviews). Values above 330 sweep every rating bucket.",
            "default": 30
          },
          "reviewRating": {
            "title": "Review rating filter",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only collect reviews with this star rating (mode=reviews).",
            "default": "all"
          },
          "maxQuestions": {
            "title": "Maximum questions",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum buyer questions per product (mode=questions/product).",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}