{
  "openapi": "3.0.1",
  "info": {
    "title": "Mudah.my New Listings & Price Alert (Malaysia)",
    "description": "Newest Mudah.my listings for any category, one flat row each: title, price in MYR (null when none is stated), state, town, first-listed and last-bumped times, seller type, photos, make/model/size attributes, URL. Filter by state, keyword, seller type and price.",
    "version": "0.1",
    "x-build-id": "MJQpejfZUXaF3a38z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/superslowsloth~mudah-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-superslowsloth-mudah-listings",
        "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/superslowsloth~mudah-listings/runs": {
      "post": {
        "operationId": "runs-sync-superslowsloth-mudah-listings",
        "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/superslowsloth~mudah-listings/run-sync": {
      "post": {
        "operationId": "run-sync-superslowsloth-mudah-listings",
        "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",
        "required": [
          "categories"
        ],
        "properties": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Mudah.my categories to read, one per line: a category slug as it appears in mudah.my URLs (cars-for-sale, mobile-phones-and-gadgets-for-sale, motorcycles-for-sale, computers-and-accessories-for-sale, properties-for-rent, for-sale for all categories), a short name like cars (becomes cars-for-sale), or a full mudah.my category URL with any filters you set on the website (it keeps its own state and filters). A listing that two categories both show is returned once, under the first.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "State",
            "type": "string",
            "description": "Limit the search to one state or federal territory, written as in Mudah URLs: selangor, kuala-lumpur, penang, johor, perak, sabah, sarawak, melaka, kedah, negeri-sembilan and so on. Leave as malaysia for the whole country. An unknown value makes Mudah answer with an empty page and the run reports it as a failure. Ignored for a category given as a full URL, which keeps its own state.",
            "default": "malaysia"
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional keyword searched inside each category (for example myvi or iphone 15). Mudah matches it against the listing title. Leave empty to read the whole category."
          },
          "maxItems": {
            "title": "Max listings per category",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Read at most this many listings for each category. Mudah serves 39 to 40 per page and stops serving a search after about 10,000 results (page 250 or 256), however many it reports finding.",
            "default": 100
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "The order Mudah lists the results in. 'Newest first' is Mudah's own default and is the one for new-listing alerts; it orders by when a listing was last placed at the top, so a listing the seller bumps can reappear near the top. Use first_listed_at to tell a new listing from a bumped one.",
            "default": "newest"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "company"
            ],
            "type": "string",
            "description": "Return every listing, only private sellers, or only business sellers (Mudah's 'company' ads).",
            "default": "all"
          },
          "minPrice": {
            "title": "Minimum price (RM)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price to return, in whole Malaysian ringgit, inclusive. Leave empty for no lower bound. For rentals the price is the monthly rent."
          },
          "maxPrice": {
            "title": "Maximum price (RM)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price to return, in whole Malaysian ringgit, inclusive. Leave empty for no upper bound. For rentals the price is the monthly rent."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy (automatic datacenter exits) is the default and is what this actor was measured on: Mudah's category pages answered Apify datacenter and residential exits with HTTP 200 on 2026-10-10. A proxy is what lets a refused request, such as Cloudflare's challenge page, be retried from a fresh address.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}