{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Livre / Mercado Libre Scraper (Fast & Cheap)",
    "description": "Fast HTTP scraper, no browser. Mercado Livre deals, prices, installments, free & Full shipping, ads, best sellers. $1/1,000 products. Ofertas do dia, parcelamento, frete Full.",
    "version": "0.1",
    "x-build-id": "xfM4DCQ8OxzPajWym"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goat_afiliados~mercado-livre-fast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goat_afiliados-mercado-livre-fast-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/goat_afiliados~mercado-livre-fast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-goat_afiliados-mercado-livre-fast-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/goat_afiliados~mercado-livre-fast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-goat_afiliados-mercado-livre-fast-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"
        ],
        "properties": {
          "mode": {
            "title": "Modo",
            "enum": [
              "SEARCH",
              "CATEGORY",
              "DEALS",
              "BEST_SELLERS"
            ],
            "type": "string",
            "description": "SEARCH: busca por palavras-chave. CATEGORY: produtos de categorias. DEALS: ofertas do dia e relâmpago. BEST_SELLERS: mais vendidos (geral ou por categoria).",
            "default": "SEARCH"
          },
          "searchQueries": {
            "title": "Palavras-chave",
            "type": "array",
            "description": "Uma busca por linha. Usado no modo SEARCH.",
            "default": [
              "notebook gamer"
            ],
            "items": {
              "type": "string"
            }
          },
          "categoryUrlsOrIds": {
            "title": "Categorias (ID ou URL)",
            "type": "array",
            "description": "IDs como MLB1648 ou links do Mercado Livre. Obrigatório no modo CATEGORY; opcional em DEALS e BEST_SELLERS (vazio = geral). Em DEALS e BEST_SELLERS use o ID, um link /mais-vendidos/MLB… ou /ofertas?category=MLB….",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Máximo de produtos por busca/categoria",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Limite por palavra-chave ou categoria. Busca e categoria chegam a 2.000 (40 páginas × 50); ofertas a ~500; mais vendidos a 20.",
            "default": 100
          },
          "sort": {
            "title": "Ordenação",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Vale para SEARCH e CATEGORY.",
            "default": "relevance"
          },
          "condition": {
            "title": "Condição",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Novo, usado ou todos. Produtos sem rótulo de condição contam como novos.",
            "default": "all"
          },
          "priceMin": {
            "title": "Preço mínimo (R$)",
            "minimum": 0,
            "maximum": 21474836,
            "type": "integer",
            "description": "Em reais. Vazio = sem mínimo."
          },
          "priceMax": {
            "title": "Preço máximo (R$)",
            "minimum": 0,
            "maximum": 21474836,
            "type": "integer",
            "description": "Em reais. Vazio = sem máximo."
          },
          "onlyFreeShipping": {
            "title": "Somente frete grátis",
            "type": "boolean",
            "description": "Descarta produtos sem frete grátis. Frete grátis só na primeira compra não conta.",
            "default": false
          },
          "excludeSponsored": {
            "title": "Excluir anúncios patrocinados",
            "type": "boolean",
            "description": "Descarta cartões marcados como anúncio (is_ad).",
            "default": false
          },
          "outputFormat": {
            "title": "Formato da saída",
            "enum": [
              "simplified",
              "detailed"
            ],
            "type": "string",
            "description": "simplified: campos limpos, link canônico sem rastreio e preços em reais. detailed: todos os campos ricos do cartão (promoções, atributos, variações, textos de frete, localização…).",
            "default": "simplified"
          },
          "requestDelayMs": {
            "title": "Intervalo entre páginas (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Atraso médio entre requisições, com variação aleatória de 50% a 150%.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "O Mercado Livre costuma bloquear IPs de datacenter. Se aparecerem bloqueios (BLOCKED), use proxy residencial do Brasil.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}