{
  "openapi": "3.0.1",
  "info": {
    "title": "MercadoLibre Chile Scraper | Prices, Listings & Historical Data",
    "description": "Scrape MercadoLibre Chile (mercadolibre.cl / MLC) listings. Extract CLP prices, discounts, search rank, sponsored ads, item IDs, URLs, thumbnails, shipping/Full signals, and AI-ready JSON/CSV for price monitoring, historical datasets, and ecommerce research.",
    "version": "0.1",
    "x-build-id": "wU8d6Mi6iagRkIMan"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jchame~mercadolibre-chile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jchame-mercadolibre-chile-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/jchame~mercadolibre-chile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jchame-mercadolibre-chile-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/jchame~mercadolibre-chile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jchame-mercadolibre-chile-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Product names or keywords to search on MercadoLibre Chile.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "MercadoLibre URLs",
            "type": "array",
            "description": "MercadoLibre Chile search/listing URLs or direct product URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique listings to save across all inputs.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Maximum items per query",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional per-query cap. Use 0 for no per-query cap.",
            "default": 0
          },
          "maxPagesPerQuery": {
            "title": "Maximum pages per query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Each API search page returns up to 50 listings. Keep this low for cheaper, steadier runs.",
            "default": 2
          },
          "htmlRetryCount": {
            "title": "HTML retry count",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many extra attempts to make for each public page using fresh proxy sessions.",
            "default": 2
          },
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "api_first",
              "api_only",
              "html_only"
            ],
            "type": "string",
            "description": "API first uses API when an OAuth token is provided, otherwise it uses public HTML extraction. HTML mode is best for no-token runs.",
            "default": "api_first"
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "lean",
              "standard",
              "enriched"
            ],
            "type": "string",
            "description": "Lean is smallest. Standard returns search-result intelligence from embedded page state. Enriched adds product-page or API detail evidence such as sold-count buckets, seller IDs, reputation, review totals, category, condition, and shipping details.",
            "default": "standard"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Sorting applied to keyword searches when supported by MercadoLibre.",
            "default": "relevance"
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Optional MercadoLibre Chile category ID, for example MLC1051.",
            "default": ""
          },
          "includeDetails": {
            "title": "Enrich item details",
            "type": "boolean",
            "description": "Fetch richer item details. With OAuth, the Actor uses MercadoLibre API. Without OAuth, it visits public product pages for sold-count buckets, seller signals, category, reviews, and shipping details.",
            "default": false
          },
          "maxPublicDetailPages": {
            "title": "Maximum public detail pages",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap for product-page enrichment when Enrich item details is enabled without an OAuth token. Product pages improve evidence but cost more than search-result parsing.",
            "default": 50
          },
          "includeSeller": {
            "title": "Enrich sellers",
            "type": "boolean",
            "description": "Fetch public seller profile and reputation signals when available.",
            "default": false
          },
          "includeReviews": {
            "title": "Fetch reviews",
            "type": "boolean",
            "description": "Fetch public item review summaries where the endpoint allows it. Some review data may require a token.",
            "default": false
          },
          "mercadoLibreAccessToken": {
            "title": "MercadoLibre access token",
            "type": "string",
            "description": "Optional OAuth token for MercadoLibre API endpoints that require authentication. Without it, the Actor still uses public page extraction."
          },
          "includeRaw": {
            "title": "Include raw snippets",
            "type": "boolean",
            "description": "Include compact raw API snippets for debugging. Leave off for clean production datasets.",
            "default": false
          },
          "includeTrendingSearches": {
            "title": "Include MercadoLibre trends",
            "type": "boolean",
            "description": "Use MercadoLibre Chile trending search terms as additional queries before the manually provided searches. Requires a MercadoLibre OAuth token.",
            "default": false
          },
          "maxTrendingSearches": {
            "title": "Maximum trending searches",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of MercadoLibre Chile trending search terms to add when trends are enabled.",
            "default": 20
          },
          "trendCategoryIds": {
            "title": "Trend category IDs",
            "type": "array",
            "description": "Optional MercadoLibre Chile category IDs for trend collection, for example MLC1051. Leave empty for site-wide trends.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many enrichment requests can run at the same time.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Request delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between requests in milliseconds. Higher values are slower but gentler.",
            "default": 700
          },
          "failOnQualityDrop": {
            "title": "Fail on quality drop",
            "type": "boolean",
            "description": "Fail the run when quality thresholds are not met. Useful for scheduled canary checks and monitoring.",
            "default": false
          },
          "minCoreFieldFillScore": {
            "title": "Minimum core field score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Minimum allowed average fill score for core fields when fail-on-quality-drop is enabled.",
            "default": 0
          },
          "minFieldFillScore": {
            "title": "Minimum expected field score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Minimum allowed average fill score for expected fields when fail-on-quality-drop is enabled.",
            "default": 0
          },
          "maxWarningCount": {
            "title": "Maximum warnings",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum allowed warning count when fail-on-quality-drop is enabled.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Residential Chile proxy is the recommended production default for MercadoLibre Chile page extraction.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "CL"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}