{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Scraper",
    "description": "Scrape company reputation data from Reclame Aqui (reclameaqui.com.br) — Brazil's leading consumer complaints platform. Extract reputation score, complaint count, response rate, resolution rate, and recent complaints by company name or direct URL.\n",
    "version": "0.1",
    "x-build-id": "5Rr8PZkXb7hT3C9Ex"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jungle_synthesizer~reclame-aqui-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jungle_synthesizer-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/jungle_synthesizer~reclame-aqui-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jungle_synthesizer-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/jungle_synthesizer~reclame-aqui-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jungle_synthesizer-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": [
          "maxItems"
        ],
        "properties": {
          "sp_intended_usage": {
            "title": "What is the intended usage of this data?",
            "minLength": 1,
            "type": "string",
            "description": "What will this data feed? E.g. lead lists, KYB checks, price tracking."
          },
          "sp_improvement_suggestions": {
            "title": "How can we improve this crawler for you?",
            "minLength": 1,
            "type": "string",
            "description": "Provide any feedback or suggestions for improvements."
          },
          "sp_contact": {
            "title": "Contact Email",
            "minLength": 1,
            "type": "string",
            "description": "We'll personally help with your use case. No spam."
          },
          "resumeCursor": {
            "title": "Resume cursor (continue a previous run)",
            "type": "string",
            "description": "Leave empty for a fresh crawl. To CONTINUE a previous run where it stopped — without paying again for records you already received — paste the `resumeCursor` value from that run's Output (the run's OUTPUT key). Resume promptly: the previous run's data expires with your account's retention window (free tier: your ~10 most recent runs)."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "List of Reclame Aqui company profile URLs to scrape (e.g. https://www.reclameaqui.com.br/empresa/nubank/). Use this OR companyNames.\n",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "companyNames": {
            "title": "Company Names",
            "type": "array",
            "description": "List of company slugs, names or CNPJs (e.g. \"nubank\", \"Magazine Luiza\", \"18.236.120/0001-58\"). A lowercase slug is tried as a Reclame Aqui profile first; a name with spaces or capitals, a CNPJ, or a slug with no profile is resolved through Reclame Aqui's search to the right company. A branch CNPJ resolves to its company. Can be combined with startUrls.\n",
            "items": {
              "type": "string"
            }
          },
          "scrapeComplaints": {
            "title": "Scrape Recent Complaints",
            "type": "boolean",
            "description": "When enabled, also scrape the most recent complaints for each company (up to maxComplaintsPerCompany).\n",
            "default": true
          },
          "maxComplaintsPerCompany": {
            "title": "Max Complaints Per Company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of recent complaints to scrape per company, newest first (Reclame Aqui serves 5 per page; each extra page is one more request). Hard ceiling 100 - values above it are rejected by the input form.\n",
            "default": 10
          },
          "complaintsSinceDays": {
            "title": "Only complaints from the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional date window for \"recent\" complaints. Complaints are read newest first and paging stops at the first one older than N days, so you only receive complaints filed inside the window. maxComplaintsPerCompany still caps the count. Leave empty for no date limit. Requires Scrape Recent Complaints to be on.\n"
          },
          "outputComplaintRows": {
            "title": "Output complaints as rows",
            "type": "boolean",
            "description": "Also save one row per complaint (text, status, date, city, state) beside each company row. Each complaint row is billed as one result. Requires Scrape Recent Complaints to be on.\n",
            "default": false
          },
          "statusFilter": {
            "title": "Complaint status",
            "enum": [
              "PENDING",
              "ANSWERED",
              "EVALUATED",
              "SOLVED"
            ],
            "type": "string",
            "description": "Only complaints in this state: PENDING (not answered yet), ANSWERED, EVALUATED (the consumer rated the company's answer) or SOLVED (the consumer marked it solved). Leave empty for every complaint, newest first. Requires Scrape Recent Complaints to be on.\n"
          },
          "complaintCategory": {
            "title": "Complaint category",
            "type": "string",
            "description": "Only complaints in this category, as the company's Reclame Aqui page names it (e.g. \"Cartões de Crédito\"), or its id."
          },
          "problemType": {
            "title": "Problem type",
            "type": "string",
            "description": "Only complaints about this problem, as the company's page names it (e.g. \"Cobrança indevida\"), or its id."
          },
          "productType": {
            "title": "Product or service",
            "type": "string",
            "description": "Only complaints about this product or service, as the company's page names it (e.g. \"Cartão de crédito\"), or its id."
          },
          "complaintKeywords": {
            "title": "Complaints mentioning",
            "type": "array",
            "description": "Only complaints whose title or text mentions at least one of these words or phrases (case and accents ignored: \"cobranca\" matches \"Cobrança\"). Complaints that do not match are never saved or billed. Reads up to the newest 100 complaints per company to find matches. Requires Scrape Recent Complaints to be on.\n",
            "items": {
              "type": "string"
            }
          },
          "excludeComplaintKeywords": {
            "title": "Skip complaints mentioning",
            "type": "array",
            "description": "Leave out complaints whose title or text mentions any of these words or phrases (case and accents ignored). Combines with Complaints mentioning. Requires Scrape Recent Complaints to be on.\n",
            "items": {
              "type": "string"
            }
          },
          "includeInteractions": {
            "title": "Include reply threads",
            "type": "boolean",
            "description": "Attach each complaint's full thread (the company's answers, the consumer's replies and final answer) to its complaint row as interactions. Opens every complaint page, so each complaint row with a thread is billed as three results instead of one. Requires Output complaints as rows.\n",
            "default": false
          },
          "dateFrom": {
            "title": "Complaints from date",
            "type": "string",
            "description": "Only complaints filed on or after this date (YYYY-MM-DD). Combines with the last N days window; the later start wins.\n"
          },
          "dateTo": {
            "title": "Complaints until date",
            "type": "string",
            "description": "Only complaints filed on or before this date (YYYY-MM-DD). Reaches back at most 100 complaints, the Max Complaints Per Company ceiling.\n"
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of company profiles to scrape (not counting complaints).",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}