{
  "openapi": "3.0.1",
  "info": {
    "title": "Tatui Imoveis Scraper - Property Ads, Agencies & Articles",
    "description": "Scrape tatuiimoveis.com, a regional real estate directory for Tatui and nearby towns in Sao Paulo, Brazil: property ads with BRL prices and areas, the agency directory with CRECI and addresses, articles with full text, and town price statistics. No login, no proxy.",
    "version": "0.1",
    "x-build-id": "51KxLgJXrZgZMkE3A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~tatuiimoveis-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-tatuiimoveis-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/recordsdata~tatuiimoveis-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-tatuiimoveis-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/recordsdata~tatuiimoveis-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-tatuiimoveis-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": {
          "recordTypes": {
            "title": "What to collect",
            "type": "array",
            "description": "Pick one or more: property ads (house, land, farm, shop prices in BRL), agency directory, articles with full text, or town statistics. Posts you name below are delivered whatever their kind.",
            "items": {
              "type": "string",
              "enum": [
                "listings",
                "agencies",
                "articles",
                "places"
              ],
              "enumTitles": [
                "Property ads (listings)",
                "Agency directory (agencies)",
                "Articles with full text",
                "Town statistics (places)"
              ]
            },
            "default": [
              "listings",
              "agencies"
            ]
          },
          "maxItems": {
            "title": "Maximum rows (all types together)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows, for example 100. Free plans are limited to 10 rows per run.",
            "default": 50
          },
          "sortBy": {
            "title": "Order of results",
            "enum": [
              "newest",
              "oldest",
              "price-asc",
              "price-desc",
              "name"
            ],
            "type": "string",
            "description": "Newest or oldest stop reading as soon as the limit is reached. Price and name orders read the whole directory first (about 10 requests). Price orders apply to property ads only.",
            "default": "newest"
          },
          "cities": {
            "title": "Towns",
            "type": "array",
            "description": "One per line, for example Tatui, Sorocaba, Itapetininga. Accents and capitals do not matter. Empty means all towns.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Every word must start a word in the title, text, address or neighbourhood, for example chacara or financiamento.",
            "default": ""
          },
          "operation": {
            "title": "Sale or rent",
            "enum": [
              "any",
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "For sale, for rent, or any. Free land donations are kept only on Any.",
            "default": "any"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Pick one or more, for example House and Land. Empty means all types.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "apartment",
                "land",
                "farm",
                "commercial",
                "other"
              ],
              "enumTitles": [
                "House",
                "Apartment",
                "Land (terreno, lote)",
                "Farm, small farm, ranch (chacara, sitio)",
                "Commercial",
                "Other"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum price (BRL)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "For example 100000. Sale price for sale ads, monthly rent for rent ads. Ads without a price are left out when set. 0 means no limit.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (BRL)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "For example 500000. 0 means no limit.",
            "default": 0
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "For example 3. Ads that do not state bedrooms are left out when set. 0 means no limit.",
            "default": 0
          },
          "minArea": {
            "title": "Minimum area (m2)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "For example 200. Compared with the largest of built, land and total area. 0 means no limit.",
            "default": 0
          },
          "agencyServices": {
            "title": "Agency services",
            "type": "array",
            "description": "Keep agencies that list at least one of these services. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "sale",
                "rent",
                "rural"
              ],
              "enumTitles": [
                "Sale",
                "Rent (locacao)",
                "Rural properties"
              ]
            },
            "default": []
          },
          "onlyWithWebsite": {
            "title": "Only agencies with a website",
            "type": "boolean",
            "description": "On: keeps entries that publish a web address.",
            "default": false
          },
          "articleCategories": {
            "title": "Article categories",
            "type": "array",
            "description": "Keep posts of these categories. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "articles",
                "news",
                "government-aid",
                "app-tips"
              ],
              "enumTitles": [
                "Artigos (guides)",
                "Noticias (news)",
                "Auxilio Governo (government aid)",
                "Dicas de Aplicativos (app tips)"
              ]
            },
            "default": []
          },
          "includeFullText": {
            "title": "Full article text",
            "type": "boolean",
            "description": "On: the full cleaned text of each article. Off: summary, headings and counts only (smaller rows).",
            "default": true
          },
          "postedAfter": {
            "title": "Posted on or after",
            "type": "string",
            "description": "For example 2016-01-01. Empty means no lower limit.",
            "default": ""
          },
          "postedBefore": {
            "title": "Posted on or before",
            "type": "string",
            "description": "For example 2018-12-31. Empty means no upper limit.",
            "default": ""
          },
          "startUrls": {
            "title": "Site links",
            "type": "array",
            "description": "tatuiimoveis.com post pages (/casa-venda-tatui-jardim-wanderley/), category pages (/category/artigos/), tag pages (/tag/sorocaba/) or search pages (/?s=chacara). Filters apply to category, tag and search pages, not to single posts.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "postIds": {
            "title": "Post numbers (WordPress IDs)",
            "type": "array",
            "description": "One per line, for example 3489. It is the listingId, agencyId or articleId of a row. Unknown numbers return a free error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeContactDetails": {
            "title": "Business contacts",
            "type": "boolean",
            "description": "On: adds the phone (E.164) and email of agencies and the broker name, CRECI licence and phone for agency ads. Private sellers are never included. Use only with a lawful reason.",
            "default": false
          },
          "includeRaw": {
            "title": "Raw source payload",
            "type": "boolean",
            "description": "On: adds a raw field with the unmapped source data of the post. Seller contact lines are never included.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new records",
            "type": "boolean",
            "description": "On: skips records delivered by an earlier run of the same search (ads, agencies, articles). Nothing skipped is charged.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "One label per saved search, for example sorocaba-houses. Keeps monitors with identical settings apart.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget what was delivered",
            "type": "boolean",
            "description": "On: clears the memory of this search before the run, so everything counts as new.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Pause between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Time between two requests, for example 300. The actor never goes below 300 ms.",
            "default": 300
          },
          "proxyConfiguration": {
            "title": "Proxy (usually not needed)",
            "type": "object",
            "description": "Leave off: the site works without one. Turn on only if requests start failing.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}