{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Complaints Scraper",
    "description": "Reclame Aqui Complaints Scraper exports Brazilian consumer complaints with full text, status, solved/evaluated flags, score, city, category, product, problem and the company reply thread, plus company reputation: scores, response and solved rates, RA1000 status, ranking, CNPJ. No login.",
    "version": "1.0",
    "x-build-id": "F19XREDyIaNE89BXI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~reclame-aqui-complaints-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-reclame-aqui-complaints-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/neuro-scraper~reclame-aqui-complaints-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-reclame-aqui-complaints-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/neuro-scraper~reclame-aqui-complaints-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-reclame-aqui-complaints-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": "Company short names (as in the company address, e.g. nubank, mercado-livre), company page links or company names.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Direct URLs",
            "type": "array",
            "description": "Optional: company page links (https://www.reclameaqui.com.br/empresa/nubank/) or single complaint links.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional: words searched inside the complaints of each company (e.g. cartão, pix). Without companies, a query is used to find the company.",
            "items": {
              "type": "string"
            }
          },
          "scrapeComplaints": {
            "title": "Scrape complaints",
            "type": "boolean",
            "description": "Output one row per complaint. Turn off to get only the company reputation records.",
            "default": true
          },
          "includeCompanyProfile": {
            "title": "Include company reputation record",
            "type": "boolean",
            "description": "Add one row per company with the reputation scorecard (scores, rates, totals, ranking, CNPJ, all periods).",
            "default": true
          },
          "includeCompanyStats": {
            "title": "Include company stats on each complaint",
            "type": "boolean",
            "description": "Copy the company score, response rate, solved rate and totals into every complaint row.",
            "default": true
          },
          "maxComplaintsPerCompany": {
            "title": "Max complaints per company / query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many complaints per company (and per search query). 0 = all.",
            "default": 20
          },
          "maxItems": {
            "title": "Max total records",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows in total. 0 = no total limit.",
            "default": 0
          },
          "statusFilter": {
            "title": "Complaint status",
            "type": "array",
            "description": "Which complaint list to read (the same tabs the website offers). Several = several lists, duplicates removed.",
            "items": {
              "type": "string",
              "enum": [
                "LATEST",
                "PENDING",
                "ANSWERED",
                "EVALUATED",
                "SOLVED",
                "UNSOLVED"
              ],
              "enumTitles": [
                "Latest (all)",
                "Not answered",
                "Answered by company",
                "Evaluated by consumer",
                "Solved",
                "Not solved"
              ]
            },
            "default": [
              "LATEST"
            ]
          },
          "solvedOnly": {
            "title": "Solved only",
            "type": "boolean",
            "description": "Keep only complaints the consumer marked as solved.",
            "default": false
          },
          "withReplyOnly": {
            "title": "With company reply only",
            "type": "boolean",
            "description": "Keep only complaints the company replied to.",
            "default": false
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Optional: a complaint category of the company, by name as shown on the website (e.g. Cartões de Crédito)."
          },
          "productType": {
            "title": "Product / service",
            "type": "string",
            "description": "Optional: a product or service of the company, by name (e.g. Empréstimo)."
          },
          "problemType": {
            "title": "Problem type",
            "type": "string",
            "description": "Optional: a problem type, by name (e.g. Cobrança indevida)."
          },
          "specialCategory": {
            "title": "Special list",
            "type": "string",
            "description": "Optional: a special complaint list the website offers, e.g. blackfriday."
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional: only complaints created on or after this date (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional: only complaints created on or before this date (YYYY-MM-DD)."
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Optional: keep only complaints whose title or text contains one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional: drop complaints whose title or text contains one of these words.",
            "items": {
              "type": "string"
            }
          },
          "complaintDetails": {
            "title": "Fetch full complaint page",
            "type": "boolean",
            "description": "Open every complaint for the category, product and problem names and the complete reply thread.",
            "default": true
          },
          "includeInteractions": {
            "title": "Include full reply thread",
            "type": "boolean",
            "description": "Add the list of company replies and consumer follow-ups (column interactions).",
            "default": true
          },
          "incrementalMode": {
            "title": "Incremental mode (only new / changed rows)",
            "type": "boolean",
            "description": "Remember every row of this run; the next run outputs only NEW and UPDATED rows (column changeType).",
            "default": false
          },
          "stateKey": {
            "title": "Incremental memory name",
            "type": "string",
            "description": "Optional name of the memory used by incremental mode, e.g. \"brand-a\". Different names = independent monitors."
          },
          "emitUnchanged": {
            "title": "Incremental: also output unchanged rows",
            "type": "boolean",
            "description": "With incremental mode, also output rows that did not change (changeType UNCHANGED).",
            "default": false
          },
          "emitExpired": {
            "title": "Incremental: output expired rows",
            "type": "boolean",
            "description": "With incremental mode, output one EXPIRED row for every row of the last run that is no longer found.",
            "default": false
          },
          "notifyOnlyNew": {
            "title": "Notify only when there are new rows",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when the run found NEW rows.",
            "default": false
          },
          "notifyOnlyChanges": {
            "title": "Notify only on changes",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when rows are NEW, UPDATED or EXPIRED.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Output only the core columns (smaller files, easier sheets).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Drop columns that are empty on a row.",
            "default": false
          },
          "flatten": {
            "title": "Flatten for CSV",
            "type": "boolean",
            "description": "Nested objects become separate columns (parent.child), lists become comma-separated text.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Description max length",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cut long texts to this many characters. 0 = full text.",
            "default": 0
          },
          "descriptionFormat": {
            "title": "Description format",
            "enum": [
              "all",
              "text",
              "html",
              "markdown"
            ],
            "type": "string",
            "description": "Which variants of the long text to keep.",
            "default": "all"
          },
          "webhookUrl": {
            "title": "Webhook URL (notification)",
            "type": "string",
            "description": "Optional: at the end of the run, POST a JSON summary (counts + first rows) to this URL (n8n, Make, Zapier...)."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Optional extra HTTP headers for the webhook, e.g. {\"Authorization\": \"Bearer ...\"}."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL for a run summary."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional Discord webhook URL for a run summary."
          },
          "telegramToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional token of your own Telegram bot, used with the chat ID for a run summary."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional Telegram chat ID that receives the run summary."
          },
          "notificationLimit": {
            "title": "Rows in a notification",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many rows the notification lists.",
            "default": 10
          },
          "minDelayMs": {
            "title": "Min delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional pause between requests in milliseconds (slower but gentler).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are read in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is used by default; a Brazilian residential IP is tried automatically when needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}