{
  "openapi": "3.0.1",
  "info": {
    "title": "Reclame Aqui Scraper",
    "description": "Scrape Reclame Aqui, Brazil's consumer complaint site: complaints with the full conversation, company reputation over five periods, CNPJ, contacts, rankings and keyword searches. Every run reports how much it reached. Proxy included; personal data masked.",
    "version": "1.0",
    "x-build-id": "bakZPnNfxynnPvcmd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yasmany.casanova~reclame-aqui-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yasmany.casanova-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/yasmany.casanova~reclame-aqui-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yasmany.casanova-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/yasmany.casanova~reclame-aqui-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yasmany.casanova-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 read, up to 1,000. Each line can be a name (Electrolux), the short name in its page address (electrolux), the page itself (https://www.reclameaqui.com.br/empresa/electrolux/) or a CNPJ. When several companies fit a name, the run returns the options instead of guessing.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword searches across the whole site",
            "type": "array",
            "description": "Keywords searched in every company's complaints, such as 'cobrança indevida'. Up to 100. Each search returns up to Max complaints.",
            "items": {
              "type": "string"
            }
          },
          "complaintUrls": {
            "title": "Complaint links",
            "type": "array",
            "description": "Links to single complaints, up to 5,000, each returned with its whole conversation.",
            "items": {
              "type": "string"
            }
          },
          "rankingUrls": {
            "title": "Ranking or segment links",
            "type": "array",
            "description": "Links to a site ranking (https://www.reclameaqui.com.br/ranking/mais-reclamadas/30-dias/) or to a segment page (https://www.reclameaqui.com.br/segmentos/<segment>/<subsegment>/), which gives its best and worst companies. Up to 200.",
            "items": {
              "type": "string"
            }
          },
          "maxComplaints": {
            "title": "Max complaints",
            "minimum": 0,
            "type": "integer",
            "description": "Most complaints to return for each company or search, newest first. 0 reads everything within reach, up to Max items: past one list of about 509, the run narrows the lists by state, status, problem, product and category, and the coverage row says how much it reached.",
            "default": 100
          },
          "maxItems": {
            "title": "Max items in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Most rows to charge for in the whole run, counting complaints, companies and ranking rows together. Raise it for a large run; 0 means the run's ceiling of 50,000 rows.",
            "default": 1000
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "not_answered",
              "answered",
              "rated",
              "solved",
              "not_solved"
            ],
            "type": "string",
            "description": "Keep only complaints in this status.",
            "default": "all"
          },
          "states": {
            "title": "Consumer's state",
            "type": "array",
            "description": "Keep only complaints from these Brazilian states. Two-letter codes, such as SP or RJ.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword inside each company",
            "type": "string",
            "description": "Keep only the complaints of the companies above that mention this word. The site searches for it, so it reaches further than filtering a list."
          },
          "problems": {
            "title": "Problem types",
            "type": "array",
            "description": "Keep only these problems, by the name the site uses, such as 'Cobrança indevida'. Accents and capitals do not matter, and part of a name is enough.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "Product types",
            "type": "array",
            "description": "Keep only these products, by the name the site uses.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep only these categories, by the name the site uses.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Keep complaints from this date on: 2026-01-31, or a period back from today such as 7 days, 2 weeks, 3 months or 1 year. The site has no date filter, so a date far in the past of a very large company may not be fully reachable; the coverage row says so."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Keep complaints up to this date, in the same formats."
          },
          "includeReplies": {
            "title": "Include the conversation",
            "type": "boolean",
            "description": "Add every company answer, consumer reply and rating comment to each complaint. Included in the price; turning it off only makes the run faster.",
            "default": true
          },
          "includeCompanyProfile": {
            "title": "Include the company profile",
            "type": "boolean",
            "description": "Add one row per company: score, RA1000 status, rates over five periods, monthly reputation, CNPJ, contacts, page views, segment ranking, and complaint counts per problem, product and category.",
            "default": true
          },
          "includeComplaints": {
            "title": "Include complaints",
            "type": "boolean",
            "description": "Turn off to get only company rows and rankings. Searches and complaint links are skipped too.",
            "default": true
          },
          "readRankedCompanies": {
            "title": "Also read the ranked companies",
            "type": "boolean",
            "description": "Treat every company of the rankings above as if it were in Companies.",
            "default": false
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Keep only the main fields of each row. Useful for spreadsheets and for sending rows to an AI model.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Leave out empty fields",
            "type": "boolean",
            "description": "Remove fields with no value from each row.",
            "default": false
          },
          "maxTextLength": {
            "title": "Max text length",
            "minimum": 0,
            "type": "integer",
            "description": "Longest a complaint, reply or description can be, in characters. 0 keeps the whole text.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new or changed complaints",
            "type": "boolean",
            "description": "For scheduled runs: return only complaints that are new, or that were answered or rated since the last run with the same monitor name. Each row carries change_type. The first run reads like a normal one.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of one schedule apart from another's. Leave it empty if you have only one."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Requests at once. Lower it only if you are using your own proxy with a connection limit.",
            "default": 16
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Required: the site refuses most direct requests. The pre-selected proxy is included in the price, so leave it as it is. Change it only to use your own proxy provider; every request then goes through it.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}