{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Scraper: Complaints, Reputation, Monitor",
    "description": "Reclame Aqui scraper: complaints and company reputation from reclameaqui.com.br for many companies in one run. Filter by status, category, product, problem, keyword and date. Company replies and consumer ratings. Monitor new complaints, status and reputation changes. No personal data.",
    "version": "0.1",
    "x-build-id": "cgBSvLdvETtTJ2TEo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahamster~reclame-aqui-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahamster-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/datahamster~reclame-aqui-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datahamster-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/datahamster~reclame-aqui-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datahamster-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",
        "required": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Reclame Aqui companies, one per line: the short name from the company's link (\"nubank\", \"mercado-livre\", \"ifood\") or the link itself, e.g. \"https://www.reclameaqui.com.br/empresa/nubank/\". A complaint-list link copied from the site with its filters (\"https://www.reclameaqui.com.br/empresa/nubank/lista-reclamacoes/?status=nao_respondidas\") keeps those filters for that company. All companies are read in one run and every complaint comes back once.",
            "items": {
              "type": "string"
            }
          },
          "includeCompanyProfile": {
            "title": "Company reputation record",
            "type": "boolean",
            "description": "One row per company: reputation (RA1000, Ótimo, Bom, Regular, Ruim, Não recomendada), score, response, solved and would-buy-again rates, complaints, average response time, the five periods Reclame Aqui shows (6 and 12 months, this year, last year, 3 years), segment ranking, top complaint categories and problems, CNPJ, website.",
            "default": true
          },
          "includeComplaints": {
            "title": "Complaints",
            "type": "boolean",
            "description": "Return the company's complaints (newest first) with their status and category.",
            "default": true
          },
          "maxComplaintsPerCompany": {
            "title": "Max complaints per company",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Complaints to read per company (and per filter combination). Reclame Aqui lists at most 500 per company and filter (100 pages of 5). In monitor mode this is the depth checked on every run.",
            "default": 20
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "not_answered",
              "answered",
              "evaluated",
              "solved",
              "not_solved"
            ],
            "type": "string",
            "description": "Reclame Aqui's own status tabs.",
            "default": "all"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional. Reclame Aqui's search inside each company's complaints, e.g. \"limite\" or \"reembolso\"."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Optional. A complaint category as the site shows it in the company's filter list (\"Cartões de Crédito\", \"Delivery Alimentação\") or its numeric id. Accents and case do not matter. If a company has no such category, its complaints are skipped and the run summary lists the categories it has."
          },
          "product": {
            "title": "Product",
            "type": "string",
            "description": "Optional. Product or service from the company's filter list, e.g. \"Cartão de crédito\"."
          },
          "problem": {
            "title": "Problem",
            "type": "string",
            "description": "Optional. Problem type from the company's filter list, e.g. \"Cobrança indevida\", \"Estorno do valor pago\"."
          },
          "dateFrom": {
            "title": "Created from",
            "type": "string",
            "description": "Optional. Only complaints created on or after this day (YYYY-MM-DD, UTC). Reading stops once the list passes this day."
          },
          "includeReplies": {
            "title": "Replies and consumer rating",
            "type": "boolean",
            "description": "Open each complaint's page for the company's replies, the consumer's replies and final comment, and the rating (solved, would buy again, score 0-10). One extra request per complaint. Names in greetings and signatures, e-mails, phones and CPF are removed from every text.",
            "default": false
          },
          "reportStatusChanges": {
            "title": "Monitor: status changes",
            "type": "boolean",
            "description": "Monitor mode: also return a complaint you already got when its status moves forward (not answered, answered, solved or not solved).",
            "default": true
          },
          "minScoreChange": {
            "title": "Monitor: score change to report",
            "minimum": 0,
            "type": "number",
            "description": "Monitor mode: a company row comes back when its reputation label changes or its 6-month score moves by at least this much (0-10 scale).",
            "default": 0.1
          },
          "minRateChange": {
            "title": "Monitor: rate change to report",
            "minimum": 0,
            "type": "number",
            "description": "Monitor mode: a company row also comes back when its response, solved or would-buy-again rate moves by at least this many percentage points.",
            "default": 1
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows in total, company records included (you pay only for returned rows).",
            "default": 100
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrape",
              "monitor"
            ],
            "type": "string",
            "description": "scrape = full results; monitor = only new/changed items since the previous run of this task",
            "default": "scrape"
          },
          "monitorStateId": {
            "title": "Monitor state id",
            "type": "string",
            "description": "Optional state id when not running as a saved task (monitor mode)"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST a change summary here in monitor mode"
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional: bot token for monitor-mode change summaries"
          },
          "telegramChatId": {
            "title": "Telegram chat id",
            "type": "string",
            "description": "Optional: chat id that receives monitor-mode summaries"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}