{
  "openapi": "3.0.1",
  "info": {
    "title": "List.am Scraper | Armenia Real Estate Listings, Sale & Rent",
    "description": "Get list.am's property listings for sale and rent in Armenia: price, currency, rooms, area, plot, floor, place, seller and verification badge. Read by category, filtered category address or single listing address. Whole categories go past list.am's page limit. Item-page detail and change tracking.",
    "version": "0.1",
    "x-build-id": "i4vAghOoLUTX2rpNt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ratatoskr~listam-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ratatoskr-listam-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/ratatoskr~listam-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ratatoskr-listam-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/ratatoskr~listam-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ratatoskr-listam-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": {
          "categoryIds": {
            "title": "Category ids",
            "type": "array",
            "description": "list.am category ids, the number in a category's address (list.am/en/category/56). Real estate for sale: 62 (all of it) and 60 (apartments for sale). Long-term rentals: 63 (all of them), 56 (apartments), 1377 (houses), 59 (commercial), 270 (land) and 175 (garages and parking). Any other list.am category works the same way; its rows carry the fields its cards show.",
            "items": {
              "type": "string",
              "pattern": "^\\s*\\d+\\s*$"
            }
          },
          "categoryUrls": {
            "title": "Category or search URLs",
            "type": "array",
            "description": "The address of a list.am category page, as your browser shows it once you have opened a category and set its filters, e.g. \"https://www.list.am/en/category/56?price1=50000&price2=150000\". The run reads it with all its filters, in English, from page 1, and stops at Max listings per category. A listing's own page goes in Listing addresses or ids; list.am's keyword search and home page, and addresses on other sites, are refused before the run starts.",
            "items": {
              "type": "string",
              "pattern": "^\\s*((https?://)?((www|m)\\.)?list\\.am)?/?((en|ru|am)/)?category/\\d+(/\\d+)?/?([?#].*)?\\s*$|^\\s*\\d+\\s*$"
            }
          },
          "itemUrls": {
            "title": "Listing addresses or ids",
            "type": "array",
            "description": "One listing per line: the address of its page on list.am, as your browser shows it (\"https://www.list.am/en/item/995351378\", in any of list.am's languages), or the number in it. Each comes back as one row with the fields of its card and the detail of its page (description, attribute tiles, amenities, all its photos, coordinates and address), billed as a listing with detail. A listing list.am no longer has is named in the status message and charged nothing, and a listing given twice is read once. Clear Category ids to read only these.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(\\d+|((https?:)?//)?((www|m)\\.)?list\\.am/((en|ru|am|hy)/)?item/\\d+/?([?#].*)?|/?((en|ru|am|hy)/)?item/\\d+/?([?#].*)?)\\s*$"
            }
          },
          "includeIds": {
            "title": "Include only these listing ids",
            "type": "array",
            "description": "Optional. Return only these listing ids from the categories you give, the number in a listing's address (list.am/en/item/995165362). The run stops once it has found them all; an id it does not find in those categories is named in the status message and in the OUTPUT record. To read listings by id without a category, put them in Listing addresses or ids.",
            "items": {
              "type": "string",
              "pattern": "^\\s*\\d+\\s*$"
            }
          },
          "excludeIds": {
            "title": "Exclude these listing ids",
            "type": "array",
            "description": "Optional. Listing ids to leave out, e.g. the ones a previous run gave you.",
            "items": {
              "type": "string",
              "pattern": "^\\s*\\d+\\s*$"
            }
          },
          "fetchDetails": {
            "title": "Fetch item-page detail",
            "type": "boolean",
            "description": "Also open the page of each listing a category gives, for its description, full attributes, available amenities, photos and address. Richer, but much slower and more bandwidth. Leave off for the fast card-only walk (which already has price, rooms, area, floor, location). Listings given in Listing addresses or ids always come with this detail.",
            "default": false
          },
          "maxItemsPerCategory": {
            "title": "Max listings per category",
            "minimum": 1,
            "type": "integer",
            "description": "Stops each category or URL at this many listings. Leave it empty for 100. Enter 100000 to read a whole category; when list.am counts more listings than its pages show in one go, the run reads the rest region by region.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per category",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the pages read per category or URL, about 105 listings a page. Leave it empty and the cap follows Max listings per category: 100 pages for anything up to 1,000 listings, 10,000 pages for 100000, so the limit or the category's end stops the run first. The status message says when this cap stopped a category."
          },
          "proxyCountry": {
            "title": "Residential proxy country",
            "pattern": "^\\s*([A-Za-z]{2})?\\s*$",
            "type": "string",
            "description": "Optional two-letter country code, such as AM: list.am's Cloudflare check is then passed on a residential IP in that country. Leave it empty and the Actor chooses its own way through, which is usually faster. Any country works, since list.am serves the same listings everywhere.",
            "default": ""
          },
          "watchName": {
            "title": "Watch name (change tracking)",
            "type": "string",
            "description": "Give the watch a name and schedule the run: every run after the first returns only what changed since the last one (a new listing, or an asking price that dropped or rose), each with the previous price. Prices are compared in the currency the owner set. The first run returns everything as the baseline. Different names keep separate memories in a key-value store on your own Apify account. Unchanged listings are not output, and you pay only for the rows that are."
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "With a watch name: output only listings that changed. Off: every one, each marked with its change (or unchanged), charged as a row.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}