{
  "openapi": "3.0.1",
  "info": {
    "title": "Chợ Tốt (Chotot) Vietnam Listings Scraper",
    "description": "Vietnam classifieds from Chợ Tốt public gateway API: property, cars, motorbikes, electronics. Price, location, seller contact, photos. No login.",
    "version": "0.1",
    "x-build-id": "eavsdv17ZJSYLeidw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~chotot-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-chotot-listings-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/stone_jadex~chotot-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-chotot-listings-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/stone_jadex~chotot-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-chotot-listings-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": {
          "category": {
            "title": "Category",
            "enum": [
              "all",
              "property",
              "1000",
              "1010",
              "1020",
              "1030",
              "1040",
              "1050",
              "cars",
              "2000",
              "2010",
              "2020",
              "2030",
              "2050",
              "electronics",
              "5000",
              "furniture",
              "9000",
              "fashion",
              "3000"
            ],
            "type": "string",
            "description": "Gateway cg code or alias. Live codes (2026-10): property/1000 BĐS, 1010 apartments, 1020 houses, cars/2010 Ô tô, 2020 Xe máy, electronics/5000. 'all' walks without cg filter.",
            "default": "property"
          },
          "region": {
            "title": "Region",
            "enum": [
              "0",
              "13000",
              "12000",
              "hcmc",
              "hanoi"
            ],
            "type": "string",
            "description": "Gateway region_v2. Live probe: 13000 = Tp Hồ Chí Minh, 12000 = Hà Nội, 0 = all Vietnam. (haketa README had these two cities swapped.)",
            "default": "13000"
          },
          "scrapeDetails": {
            "title": "Enrich from detail API (scrapeDetails)",
            "type": "boolean",
            "description": "Calls /v1/public/ad-listing/{list_id} per row for seller phone (as published, often masked), full description, full image gallery and extra specs. Alias: includeDetails. Charged as listing-detail instead of listing.",
            "default": false
          },
          "includeDetails": {
            "title": "Enrich from detail API (includeDetails alias)",
            "type": "boolean",
            "description": "Same as scrapeDetails. Either flag turns detail enrichment on.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many charged listings. Alias: maxRecords.",
            "default": 50
          },
          "maxPages": {
            "title": "Max API pages",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional. Each page is up to 20 ads (offset o=0,20,40…)."
          },
          "requestDelayMs": {
            "title": "Minimum gap between request starts (ms)",
            "minimum": 1000,
            "type": "integer",
            "description": "At least 1 second between request starts (≤1 req/s). Aliases: requestDelay, requestIntervalMs.",
            "default": 1000
          },
          "concurrency": {
            "title": "Detail requests in flight",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many detail API calls may run at once when scrapeDetails is on. List pages stay serial.",
            "default": 1
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "type": "integer",
            "description": "Stops cleanly and writes the OUTPUT record before this limit.",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Direct connection by default. Enable only if you see repeated 403/429. Prefer datacenter first; residential download budget is a fixed developer cap (5 MB), not user-tunable.",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyFallback": {
            "title": "Use proxy only after repeated blocks",
            "type": "boolean",
            "description": "When a proxy is configured, stay on direct connection until repeated HTTP 403 or 429, then switch.",
            "default": false
          },
          "startUrls": {
            "title": "Optional listing IDs or detail URLs",
            "type": "array",
            "description": "Optional. Gateway detail URLs or bare numeric list_id values. When set, category/region list crawl is skipped.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}