{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre Reviews & Preguntas Scraper",
    "description": "Extrae opiniones (reviews) y preguntas de Mercado Libre en Chile, Argentina, México, Colombia, Perú y Uruguay: estrellas, texto, fecha y fotos. Exporta a Excel, CSV o JSON. Mercado Libre reviews & Q&A scraper API. IA opcional (tu key Gemini/OpenAI): US$0,20/1.000 reseñas.",
    "version": "0.1",
    "x-build-id": "hYqaoEAGxIn12yxUk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ener90~mercadolibre-reviews-questions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ener90-mercadolibre-reviews-questions",
        "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/ener90~mercadolibre-reviews-questions/runs": {
      "post": {
        "operationId": "runs-sync-ener90-mercadolibre-reviews-questions",
        "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/ener90~mercadolibre-reviews-questions/run-sync": {
      "post": {
        "operationId": "run-sync-ener90-mercadolibre-reviews-questions",
        "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": {
          "startUrls": {
            "title": "Product / listing URLs",
            "type": "array",
            "description": "Catalog product URLs (…/p/MLC123) or listing URLs (articulo.mercadolibre.cl/MLC-123-…_JM).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "itemIds": {
            "title": "Item / product IDs",
            "type": "array",
            "description": "IDs like MLC37981310 or MLA41149389. Bare numbers use the Country field.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Default country (site)",
            "enum": [
              "MLC",
              "MLA",
              "MLM",
              "MCO",
              "MLU",
              "MPE"
            ],
            "type": "string",
            "description": "Used only for bare numeric IDs.",
            "default": "MLC"
          },
          "maxReviews": {
            "title": "Max reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of reviews saved per product.",
            "default": 100
          },
          "includeQuestions": {
            "title": "Include questions & answers",
            "type": "boolean",
            "description": "Fetch questions & answers via the official Mercado Libre API. Needs mlClientId + mlClientSecret (your own free ML developer app) or mlAccessToken. For catalog products (/p/) the listings found in the reviews are used.",
            "default": false
          },
          "maxQuestions": {
            "title": "Max questions per listing",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of questions saved per listing.",
            "default": 50
          },
          "maxListingsPerProduct": {
            "title": "Max listings per catalog product (questions)",
            "minimum": 0,
            "type": "integer",
            "description": "For catalog products (/p/), questions are fetched for up to this many seller listings found in the reviews.",
            "default": 3
          },
          "mlClientId": {
            "title": "Mercado Libre app Client ID",
            "type": "string",
            "description": "Client ID (App ID) of your app at developers.mercadolibre.com. Used with mlClientSecret to get a token automatically (client_credentials)."
          },
          "mlClientSecret": {
            "title": "Mercado Libre app Client Secret",
            "type": "string",
            "description": "Secret Key of your Mercado Libre app. Stored encrypted, never logged."
          },
          "mlAccessToken": {
            "title": "Mercado Libre API access token",
            "type": "string",
            "description": "Optional: a ready OAuth access token instead of Client ID/Secret (expires after 6 h)."
          },
          "aiInsights": {
            "title": "AI insights per product (optional)",
            "type": "boolean",
            "description": "Adds one 'ai-insight' row per product: sentiment %, top pros, cons, themes, feature requests, notable quotes and an executive summary. Requires your own Gemini or OpenAI API key. US$0.20 per 1,000 reviews analyzed (only when AI insights are on); AI tokens are billed by your provider. Off by default.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "gemini",
              "openai"
            ],
            "type": "string",
            "description": "Leave empty to auto-detect from the key (keys starting with 'sk-' are OpenAI, others Gemini)."
          },
          "aiApiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "Your Gemini (aistudio.google.com) or OpenAI key. Used only for the AI calls; stored encrypted and never logged."
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Optional. Default: gemini-3.1-flash-lite or gpt-4.1-mini."
          },
          "aiLanguage": {
            "title": "AI output language",
            "type": "string",
            "description": "Language of the AI text (e.g. English, Spanish, Portuguese).",
            "default": "Spanish"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "RESIDENTIAL proxies recommended if requests get blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}