{
  "openapi": "3.0.1",
  "info": {
    "title": "Licensed Baku Property Export Normalizer",
    "description": "Normalize authorized or licensed Baku property exports into provenance-linked review rows with stable identity, freshness, confidence gaps, human actions, and current-run settlement. Zero portal requests, verification, valuation, or automated property decisions.",
    "version": "0.2",
    "x-build-id": "5mCk212hdg4FICbwS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~tap-az-baku/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-tap-az-baku",
        "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/zinin~tap-az-baku/runs": {
      "post": {
        "operationId": "runs-sync-zinin-tap-az-baku",
        "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/zinin~tap-az-baku/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-tap-az-baku",
        "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": {
          "schemaVersion": {
            "title": "Contract version",
            "enum": [
              "2.0"
            ],
            "type": "string",
            "description": "Closed public input contract version.",
            "default": "2.0"
          },
          "authorization": {
            "title": "Rights confirmation",
            "enum": [
              "I confirm I may process and commercially use these property records."
            ],
            "type": "string",
            "description": "Required buyer attestation of processing and commercial-use rights; recorded but not independently verified by the Actor.",
            "default": "I confirm I may process and commercially use these property records."
          },
          "sourceContext": {
            "title": "Source rights context",
            "enum": [
              "buyer_owned_property_export",
              "owner_or_agent_authorized_export",
              "licensed_property_feed",
              "other_authorized_property_export"
            ],
            "type": "string",
            "description": "Buyer-declared rights context for the supplied structured export; the Actor records but does not independently verify it.",
            "default": "owner_or_agent_authorized_export"
          },
          "batchName": {
            "title": "Review batch name",
            "pattern": "\\S",
            "minLength": 1,
            "maxLength": 80,
            "type": "string",
            "description": "Stable buyer label returned with this review batch.",
            "default": "baku-property-review"
          },
          "freshnessHours": {
            "title": "Freshness threshold (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "Age threshold used to label buyer-supplied evidence as fresh, stale, or unknown.",
            "default": 168
          },
          "listings": {
            "title": "Authorized property records",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Buyer-owned, owner- or agent-authorized, or otherwise licensed property records with provenance and transformation disclosure.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "sourceListingId": {
                  "title": "Source Listing Id",
                  "description": "Buyer-supplied source listing id for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "title": {
                  "title": "Title",
                  "description": "Buyer-supplied title for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300,
                  "pattern": "\\S"
                },
                "price": {
                  "title": "Price",
                  "description": "Buyer-supplied price for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "minimum": 0.000001,
                  "maximum": 1000000000000000
                },
                "currency": {
                  "title": "Currency",
                  "description": "Buyer-supplied currency for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10,
                  "pattern": "\\S"
                },
                "deal_type": {
                  "title": "Deal type",
                  "description": "Buyer-supplied deal type for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "enum": [
                    "sale",
                    "rent"
                  ]
                },
                "property_type": {
                  "title": "Property type",
                  "description": "Buyer-supplied property type for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "pattern": "\\S"
                },
                "rooms": {
                  "title": "Rooms",
                  "description": "Buyer-supplied rooms for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 1000
                },
                "rooms_raw": {
                  "title": "Rooms raw",
                  "description": "Buyer-supplied rooms raw for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 100,
                  "pattern": "\\S"
                },
                "area_sqm": {
                  "title": "Area sqm",
                  "description": "Buyer-supplied area sqm for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 100000000
                },
                "location": {
                  "title": "Location",
                  "description": "Buyer-supplied location for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 300,
                  "pattern": "\\S"
                },
                "floor_raw": {
                  "title": "Floor raw",
                  "description": "Buyer-supplied floor raw for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 100,
                  "pattern": "\\S"
                },
                "lat": {
                  "title": "Lat",
                  "description": "Buyer-supplied lat for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": -90,
                  "maximum": 90
                },
                "lng": {
                  "title": "Lng",
                  "description": "Buyer-supplied lng for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": -180,
                  "maximum": 180
                },
                "posted_date": {
                  "title": "Posted date",
                  "description": "Buyer-supplied posted date for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$"
                },
                "description": {
                  "title": "Description",
                  "description": "Buyer-supplied description for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 500,
                  "pattern": "\\S"
                },
                "images": {
                  "title": "Images",
                  "description": "Buyer-supplied images for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "array",
                  "maxItems": 5,
                  "items": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^https://"
                  }
                },
                "url": {
                  "title": "Url",
                  "description": "Buyer-supplied url for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 9,
                  "maxLength": 2000,
                  "pattern": "^https://"
                },
                "sourceName": {
                  "title": "Source Name",
                  "description": "Buyer-supplied source name for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "sourceUrl": {
                  "title": "Source Url",
                  "description": "Buyer-supplied source url for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 9,
                  "maxLength": 2000,
                  "pattern": "^https://"
                },
                "sourceLicense": {
                  "title": "Source License",
                  "description": "Buyer-supplied source license for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 700,
                  "pattern": "\\S"
                },
                "sourceRetrievedAt": {
                  "title": "Source Retrieved At",
                  "description": "Buyer-supplied source retrieved at for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$"
                },
                "changesMade": {
                  "title": "Changes Made",
                  "description": "Buyer-supplied changes made for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500,
                  "pattern": "\\S"
                }
              },
              "required": [
                "sourceListingId",
                "title",
                "price",
                "currency",
                "deal_type",
                "property_type",
                "images",
                "url",
                "sourceName",
                "sourceUrl",
                "sourceLicense",
                "sourceRetrievedAt",
                "changesMade"
              ]
            },
            "default": [
              {
                "sourceListingId": "demo-baku-001",
                "title": "Two-bedroom apartment",
                "price": 285000,
                "currency": "AZN",
                "deal_type": "sale",
                "property_type": "Apartment",
                "rooms": 2,
                "rooms_raw": "2 otaq",
                "area_sqm": 75,
                "location": "Bakı, Azərbaycan",
                "floor_raw": "8-ci mərtəbə",
                "lat": null,
                "lng": null,
                "posted_date": "2026-08-12T09:00:00.000Z",
                "description": "Buyer-supplied property summary.",
                "images": [],
                "url": "https://properties.example.com/listings/demo-baku-001",
                "sourceName": "Example authorized property export",
                "sourceUrl": "https://properties.example.com/exports/baku",
                "sourceLicense": "Owner-authorized export for internal property review.",
                "sourceRetrievedAt": "2026-08-12T10:00:00.000Z",
                "changesMade": "Selected fields and normalized whitespace."
              }
            ]
          },
          "category": {
            "title": "Legacy Category (migration only)",
            "pattern": "\\S",
            "minLength": 1,
            "maxLength": 100,
            "type": "string",
            "description": "Legacy Tap.az `category` field retained only for migration; no source request is made."
          },
          "max_items": {
            "title": "Legacy Max results (migration only)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Legacy Tap.az `max_items` field retained only for migration; no source request is made. Historical integer bounds: 1 through 2000."
          },
          "max_pages": {
            "title": "Legacy Max pages (migration only)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Legacy Tap.az `max_pages` field retained only for migration; no source request is made. Historical integer bounds: 1 through 20."
          },
          "proxyConfiguration": {
            "title": "Legacy Proxy configuration (migration only)",
            "type": "object",
            "description": "Legacy Tap.az `proxyConfiguration` field retained only for migration; no source request is made. Historical object values are closed, normalized, and digested; they never trigger a network request.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "description": "Historical flag; normalized and digested only.",
                "type": "boolean",
                "editor": "checkbox"
              },
              "apifyProxyGroups": {
                "title": "Proxy groups",
                "description": "Historical group names; normalized and digested only.",
                "type": "array",
                "editor": "stringList",
                "minItems": 1,
                "maxItems": 10,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80,
                  "pattern": "\\S"
                }
              },
              "apifyProxyCountry": {
                "title": "Proxy country",
                "description": "Historical two-letter country code; normalized and digested only.",
                "type": "string",
                "editor": "textfield",
                "minLength": 2,
                "maxLength": 2,
                "pattern": "^[A-Z]{2}$"
              }
            },
            "additionalProperties": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}