{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Scraper — Complaints & Ratings",
    "description": "Scrape Reclame Aqui complaints and company ratings: reputation score and status, RA1000 seal, total complaints, response and solution rates, and every complaint's title, text, status, city and date, with optional company replies. Public data, no login.",
    "version": "0.1",
    "x-build-id": "5ymdcnXoXjqrxy0Vm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~reclameaqui-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-reclameaqui-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/tortuga~reclameaqui-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-reclameaqui-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/tortuga~reclameaqui-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-reclameaqui-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": "Reclame Aqui company slugs (the part after /empresa/ in the company's URL, e.g. \"nubank\", \"magazine-luiza-loja-online\") or company names (\"Magazine Luiza\"). A name that is not a slug is looked up with the site's own company search and the first company whose name matches the words you typed is used; the run's SUMMARY lists which company a name resolved to. When no name matches, nothing is scraped or charged for it and SUMMARY lists the closest companies.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Reclame Aqui URLs. Company pages (https://www.reclameaqui.com.br/empresa/nubank/, also the lista-reclamacoes or sobre sub-pages) are processed like a company slug. Complaint pages (https://www.reclameaqui.com.br/nubank/<title>_<id>/) return that complaint with the company's replies.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxComplaintsPerCompany": {
            "title": "Max complaints per company",
            "minimum": 0,
            "type": "integer",
            "description": "Newest complaints to collect per company (10 per request). 0 = company profiles only. Reclame Aqui serves about the newest 500 complaints of a list, however many it reports, so higher values stop there and SUMMARY says so; each Complaint status is a list of its own. With Only new or changed items on, this is the window of complaints checked on every run.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many dataset items in total (company profiles and complaints across all companies). No request is made for complaints that would not fit.",
            "default": 100
          },
          "status": {
            "title": "Complaint status",
            "enum": [
              "all",
              "notAnswered",
              "answered",
              "evaluated",
              "solved",
              "notSolved"
            ],
            "type": "string",
            "description": "Which complaints to read, the same tabs as the company's complaint list on the site (filtered by Reclame Aqui, so you only pay for complaints you want). Evaluated complaints carry the consumer's score, the solved flag and the \"would do business again\" answer.",
            "default": "all"
          },
          "keyword": {
            "title": "Only complaints mentioning",
            "type": "string",
            "description": "Optional: only complaints whose text matches this word or phrase (Reclame Aqui's own search inside the company's complaints, e.g. \"cartão\", \"reembolso\", \"entrega\")."
          },
          "includeReplies": {
            "title": "Include company replies",
            "type": "boolean",
            "description": "Also open each complaint's page and save the conversation: the company's replies (resposta da empresa), the consumer's follow-up (réplica) and the closing evaluation (consideração final), as `replies` plus `companyReply` / `companyReplyAt`. One extra request and a small extra charge per complaint (see pricing).",
            "default": false
          },
          "complaintsNewerThan": {
            "title": "Only complaints newer than",
            "type": "string",
            "description": "Only complaints created after: a date (YYYY-MM-DD) or a period such as '7 days' or '24 hours'. Complaints are read newest first and reading stops at the first page that is entirely older, or at the site's limit of about 500 complaints per list."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only new complaints and complaints whose status changed (not answered -> answered -> solved / not solved), plus a company profile whose reputation score or status changed. Use with a Schedule; unchanged items are not charged and their complaint pages are not opened. Max complaints per company is the window checked on every run.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same companies stay separate; defaults to a key derived from the input (companies, URLs, status, keyword)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Reclame Aqui sits behind Cloudflare and blocks datacenter IPs, so the default is Apify's RESIDENTIAL proxy group with Brazilian IPs, the only route tested (an Apify proxy without a country is set to Brazil). The traffic is light, about 20 KB per 10 complaints and 40 KB per complaint page, and it is included in the price per item, so it is not billed to you separately. Refused requests are retried on a new IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "BR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}