{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Scraper — Complaints, Reply Threads & Reputation",
    "description": "Scrape Reclame Aqui (reclameaqui.com.br) complaints with the full company–consumer reply thread, plus each company's RA1000 status, score, response, resolution and would-buy-again rates and 3-year history. Filter by problem type, keyword, CNPJ and date. Incremental alerts.",
    "version": "0.1",
    "x-build-id": "lFCLXFKcVhmEqSe7X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corvuslab~reclame-aqui-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corvuslab-reclame-aqui-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/corvuslab~reclame-aqui-scraper/runs": {
      "post": {
        "operationId": "runs-sync-corvuslab-reclame-aqui-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/corvuslab~reclame-aqui-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-corvuslab-reclame-aqui-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": {
          "companies": {
            "title": "🏢 Companies",
            "type": "array",
            "description": "Companies to scrape. Each entry can be the company's page link (<code>https://www.reclameaqui.com.br/empresa/nubank/</code>), its page name (<code>nubank</code>), a CNPJ (<code>18.236.120/0001-58</code>) or just the brand name (<code>Magazine Luiza</code>) — a name is matched to the company with the most complaints.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔤 Search complaints by keyword",
            "type": "array",
            "description": "Find complaints that mention these words, e.g. <code>cobrança indevida</code>, <code>atraso na entrega</code>. With companies above, the search runs inside each company's complaints; without, it searches every company on Reclame Aqui.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Reclame Aqui links",
            "type": "array",
            "description": "Paste any Reclame Aqui links: a company page or its complaint list, a single complaint (returned with its full reply thread), or a search results page (<code>/busca/?q=...</code>).",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "📌 Complaint status",
            "enum": [
              "all",
              "not_answered",
              "answered",
              "evaluated",
              "resolved",
              "not_resolved"
            ],
            "type": "string",
            "description": "Only return complaints in this state — the same tabs as the company's complaint list on the site.",
            "default": "all"
          },
          "problemTypes": {
            "title": "🏷️ Problem types",
            "type": "array",
            "description": "Only complaints filed under these problem types, as the site names them, e.g. <code>Cobrança indevida</code>, <code>Atraso na entrega</code>, <code>Estorno do valor pago</code>. Accents and capitals don't matter. Leave empty for every problem.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "📅 Filed on or after",
            "type": "string",
            "description": "Only complaints filed on or after this date: <code>2026-10-01</code>, or a span back from today such as <code>7 days</code>, <code>2 weeks</code>, <code>3 months</code>."
          },
          "dateTo": {
            "title": "📅 Filed on or before",
            "type": "string",
            "description": "Only complaints filed on or before this date, e.g. <code>2026-10-15</code>."
          },
          "maxComplaintsPerCompany": {
            "title": "🔢 Max complaints per company / search",
            "minimum": 0,
            "type": "integer",
            "description": "How many complaints to read for each company and each keyword search, newest first. <code>0</code> = as many as can be reached (deep reads are split by problem type and status automatically).",
            "default": 50
          },
          "maxResults": {
            "title": "🧮 Max results (whole run)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on records in the dataset across the whole run (complaints and company profiles). <code>0</code> or empty = no cap. You are only charged for records returned."
          },
          "includeReplies": {
            "title": "💬 Include the full reply thread",
            "type": "boolean",
            "description": "Add every interaction to each answered complaint: the company's answers, the consumer's replies and the final evaluation, with dates — plus the company's first reply and its response time in hours. Unanswered complaints cost no extra time.",
            "default": true
          },
          "includeCompanyProfile": {
            "title": "🏢 Include a company reputation profile",
            "type": "boolean",
            "description": "Add one record per company: RA reputation, score, response / resolution / would-buy-again rates, average response time, complaint counts per period (up to 3 years), top problems and products, CNPJ, phones, address and social links. Billed as a company reputation record, separately from complaints (see the Pricing tab).",
            "default": true
          },
          "scrapeComplaints": {
            "title": "📝 Include complaints",
            "type": "boolean",
            "description": "Turn off to get only the company reputation profiles (fast reputation checks across many companies).",
            "default": true
          },
          "compact": {
            "title": "🗜️ Compact output",
            "type": "boolean",
            "description": "Return only the core fields: smaller records for spreadsheets and AI agents.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "🧹 Skip empty fields",
            "type": "boolean",
            "description": "Drop null and empty fields from each record.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "✂️ Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Cut complaint texts to this many characters. <code>0</code> = full text.",
            "default": 0
          },
          "incrementalMode": {
            "title": "♻️ Incremental mode",
            "type": "boolean",
            "description": "Remember complaints between runs and emit only new ones and ones whose status moved — answered, replied to, rated or resolved. Each record gets a changeType and its previous status.",
            "default": false
          },
          "stateKey": {
            "title": "🗝️ State key",
            "type": "string",
            "description": "Name for the tracked set. Leave empty to derive one from your settings. Use different keys to track different sets."
          },
          "emitUnchanged": {
            "title": "🔁 Include unchanged records",
            "type": "boolean",
            "description": "Also emit complaints and profiles that have not changed since the previous run.",
            "default": false
          },
          "telegramToken": {
            "title": "💬 Telegram bot token",
            "type": "string",
            "description": "Bot token from @BotFather."
          },
          "telegramChatId": {
            "title": "🆔 Telegram chat ID",
            "type": "string",
            "description": "Chat or channel ID, e.g. \"-100123456789\" or \"@yourchannel\"."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord webhook URL",
            "type": "string",
            "description": "Discord incoming-webhook URL."
          },
          "webhookUrl": {
            "title": "🪝 Webhook URL",
            "type": "string",
            "description": "Any HTTPS endpoint. Receives a JSON POST with the matched complaints — works with n8n, Make and Zapier."
          },
          "webhookHeaders": {
            "title": "🧾 Webhook headers",
            "type": "object",
            "description": "Extra headers for the webhook request, e.g. {\"Authorization\": \"Bearer xyz\"}."
          },
          "notificationLimit": {
            "title": "🔢 Complaints per notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many complaints to include in each notification message.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. Company reads connect on their own and don't need it. A keyword search across all of Reclame Aqui (no company given) is occasionally refused; if a run says so, enable Apify Proxy here.",
            "default": {
              "useApifyProxy": false
            }
          },
          "detailConcurrency": {
            "title": "🚀 Thread concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many reply threads to load in parallel.",
            "default": 8
          },
          "maxRequestRetries": {
            "title": "🔄 Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a failed request before giving up on it.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}