{
  "openapi": "3.0.1",
  "info": {
    "title": "Mourjan Scraper: MENA Classifieds Monitor",
    "description": "Collect public Mourjan property, car, job, and service listings with clean text, price, location, seller, image, and change records for research and recurring market checks.",
    "version": "1.0",
    "x-build-id": "eyTA4tVbkiPMAAF7v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~mourjan-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-mourjan-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/getascraper~mourjan-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-mourjan-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/getascraper~mourjan-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-mourjan-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": {
          "sourceMode": {
            "title": "Source Mode",
            "enum": [
              "browseUrls",
              "keywordSearch",
              "listingUrls"
            ],
            "type": "string",
            "description": "Choose public browse URLs, keyword filtering, or known public listing URLs.",
            "default": "browseUrls"
          },
          "startUrls": {
            "title": "Browse URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Provide one to 20 public Mourjan browse or category URLs for browse and keyword modes.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "A public Mourjan category or browse page URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.mourjan.com/ae/apartments/rental/en/"
              }
            ]
          },
          "listingUrls": {
            "title": "Public Listing URLs",
            "minItems": 0,
            "maxItems": 20,
            "type": "array",
            "description": "Provide one to 20 public Mourjan listing URLs when using Listing URLs mode.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "A public Mourjan listing page URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "minItems": 0,
            "maxItems": 20,
            "type": "array",
            "description": "Terms matched against the title and description of observed public listings.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "vertical": {
            "title": "Vertical",
            "enum": [
              "all",
              "property",
              "cars",
              "jobs",
              "services"
            ],
            "type": "string",
            "description": "Limit results to property, cars, jobs, services, or all supported verticals.",
            "default": "all"
          },
          "countries": {
            "title": "Countries",
            "maxItems": 20,
            "type": "array",
            "description": "Keep listings whose observed country matches one of these values.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "default": []
          },
          "cities": {
            "title": "Cities",
            "maxItems": 20,
            "type": "array",
            "description": "Keep listings whose observed city matches one of these values.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "default": []
          },
          "postedWithinDays": {
            "title": "Posted Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Optionally keep listings with a source-published date inside this window."
          },
          "listingIntent": {
            "title": "Property Intent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Optionally keep property listings offered for sale or rent."
          },
          "propertyType": {
            "title": "Property Type",
            "maxLength": 80,
            "type": "string",
            "description": "Optional property type text matched against observed listing details.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional lower price limit in the source currency."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional upper price limit in the source currency."
          },
          "minBedrooms": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Optional lower bedroom count for property listings."
          },
          "make": {
            "title": "Vehicle Make",
            "maxLength": 80,
            "type": "string",
            "description": "Optional vehicle make matched against observed vehicle details.",
            "default": ""
          },
          "model": {
            "title": "Vehicle Model",
            "maxLength": 80,
            "type": "string",
            "description": "Optional vehicle model matched against observed vehicle details.",
            "default": ""
          },
          "minYear": {
            "title": "Minimum Model Year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional lower vehicle model-year limit."
          },
          "maxYear": {
            "title": "Maximum Model Year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional upper vehicle model-year limit."
          },
          "maxMileageKm": {
            "title": "Maximum Mileage (Km)",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Optional upper vehicle mileage limit."
          },
          "jobTitle": {
            "title": "Job Title",
            "maxLength": 120,
            "type": "string",
            "description": "Optional job title matched against observed job details.",
            "default": ""
          },
          "employer": {
            "title": "Employer",
            "maxLength": 120,
            "type": "string",
            "description": "Optional employer matched against observed job details.",
            "default": ""
          },
          "salaryMin": {
            "title": "Minimum Salary",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional lower salary limit for job listings."
          },
          "salaryMax": {
            "title": "Maximum Salary",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional upper salary limit for job listings."
          },
          "employmentType": {
            "title": "Employment Type",
            "maxLength": 80,
            "type": "string",
            "description": "Optional employment type matched against observed job details.",
            "default": ""
          },
          "serviceType": {
            "title": "Service Type",
            "maxLength": 100,
            "type": "string",
            "description": "Optional service type matched against observed service details.",
            "default": ""
          },
          "location": {
            "title": "Service Location",
            "maxLength": 120,
            "type": "string",
            "description": "Optional service location matched against observed service details.",
            "default": ""
          },
          "blockedResponsePolicy": {
            "title": "Blocked Response Policy",
            "enum": [
              "failSource"
            ],
            "type": "string",
            "description": "Blocked, unavailable, or disallowed sources remain incomplete and never create false removals.",
            "default": "failSource"
          },
          "detailLevel": {
            "title": "Detail Level",
            "enum": [
              "listingOnly",
              "extended"
            ],
            "type": "string",
            "description": "Use listing-card fields or the extended public fields available on allowed pages.",
            "default": "listingOnly"
          },
          "includeDescription": {
            "title": "Include Description",
            "type": "boolean",
            "description": "Include publicly visible listing descriptions when available.",
            "default": true
          },
          "includeImages": {
            "title": "Include Images",
            "type": "boolean",
            "description": "Include publicly visible image URLs when available.",
            "default": true
          },
          "includeContacts": {
            "title": "Include Public Contacts",
            "type": "boolean",
            "description": "Include source-published phone, email, or website fields only when enabled.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Total listing cap across every source URL.",
            "default": 50
          },
          "maxPagesPerSource": {
            "title": "Maximum Pages Per Source",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum public pages to inspect for each source URL.",
            "default": 3
          },
          "maxDetailPages": {
            "title": "Maximum Detail Pages",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Bounded detail-page budget. Protected detail routes are not requested by the source policy.",
            "default": 0
          },
          "runMode": {
            "title": "Run Mode",
            "enum": [
              "snapshot",
              "changes"
            ],
            "type": "string",
            "description": "Snapshot returns current listings. Changes returns new, changed, unknown, and safe removal events.",
            "default": "snapshot"
          },
          "monitorKey": {
            "title": "Monitor Key",
            "maxLength": 120,
            "type": "string",
            "description": "Stable name for a recurring Changes run. Required when Run Mode is Changes.",
            "default": ""
          },
          "emitUnchanged": {
            "title": "Emit Unchanged Listings",
            "type": "boolean",
            "description": "Include unchanged active listings in Changes mode.",
            "default": false
          },
          "inactiveAfterDays": {
            "title": "Inactive After Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Days absent after complete coverage before an active listing can be marked removed.",
            "default": 14
          },
          "maxConcurrency": {
            "title": "Maximum Concurrent Requests",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Bounded number of public HTTP sources processed at once.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Request Delay (Ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between public page requests from a source.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}