{
  "openapi": "3.0.1",
  "info": {
    "title": "Apartments.com.gh Scraper - Ghana Property Listings",
    "description": "Scrape apartments.com.gh, Ghana's property portal: rent, sale, short let, land and commercial listings with price in USD or cedis, rooms, address, photos and agencies. Filter by city, area, price and keyword. No login, no proxy.",
    "version": "0.1",
    "x-build-id": "dT2zayohE39CmRdUz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~apartments-gh-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-apartments-gh-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~apartments-gh-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-apartments-gh-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~apartments-gh-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-apartments-gh-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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "listings",
              "agencies"
            ],
            "type": "string",
            "description": "Property listings: one row per ad. Real estate agencies: one row per business in the site agent directory (about 20 agents).",
            "default": "listings"
          },
          "maxItems": {
            "title": "Max results (free plan: 10)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows. Free plan: 10 per run. Paid: up to 1,000,000."
          },
          "startUrls": {
            "title": "Page links or listing IDs",
            "type": "array",
            "description": "One per line: a listing page, a listing ID such as 3412, a search or category page, or an agent profile (/user/profile/...). Example: 3412.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "any",
              "44",
              "43",
              "47",
              "45",
              "50",
              "98",
              "49",
              "99",
              "100",
              "101",
              "48"
            ],
            "type": "string",
            "description": "Rent, sale, short let, land and so on. Short lets are priced per day, rentals per month.",
            "default": "any"
          },
          "city": {
            "title": "City",
            "enum": [
              "any",
              "accra",
              "tema",
              "kumasi",
              "takoradi",
              "cape-coast",
              "aburi"
            ],
            "type": "string",
            "description": "Accra holds about 90 percent of the ads.",
            "default": "any"
          },
          "area": {
            "title": "Neighborhood",
            "type": "string",
            "description": "Name from the site list, for example East Legon, Cantonments or Osu. An unknown name returns one free error row. Empty = whole city.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Words searched in title and description, for example swimming pool. Empty = no keyword.",
            "default": ""
          },
          "priceMin": {
            "title": "Min price (raw number, any currency)",
            "minimum": 0,
            "type": "integer",
            "description": "Example: 1000 matches both $1,000 and 1,000 cedis. Pair with Currency to keep one. 0 = no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price (raw number, any currency)",
            "minimum": 0,
            "type": "integer",
            "description": "Example: 5000. 0 = no maximum.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "any",
              "USD",
              "GHS"
            ],
            "type": "string",
            "description": "Keep only ads priced in US dollars or Ghana cedis. Ads without a price are dropped when you pick one.",
            "default": "any"
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Example: 2. Ads that do not state bedrooms (studios, land) are dropped when set. 0 = no limit.",
            "default": 0
          },
          "photosOnly": {
            "title": "Only ads with photos",
            "type": "boolean",
            "description": "Skip ads that have no photo.",
            "default": false
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "newest",
              "oldest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "Newest first by default. Price sorts compare the raw number and ignore currency.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Open every listing page for full details",
            "type": "boolean",
            "description": "Adds the full description, typed address, amenities and property type. Slower: one extra request per listing.",
            "default": false
          },
          "includeIndividuals": {
            "title": "Include names of individual sellers",
            "type": "boolean",
            "description": "By default only businesses are named and individuals stay anonymous. Turn on to also return individual seller names and profile links. Phones and e-mails are never returned.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new results",
            "type": "boolean",
            "description": "Skips listings delivered by an earlier run of the same search and charges only for new ones.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor label (optional)",
            "type": "string",
            "description": "Keeps two monitors apart for the same filters. Example: accra-rentals-weekly.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget earlier results first",
            "type": "boolean",
            "description": "Clears the saved list for this search before the run.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}