{
  "openapi": "3.0.1",
  "info": {
    "title": "Gumtree UK Scraper - New Ads & Price Drop Monitor",
    "description": "Schedule it hourly or daily and get only new Gumtree UK ads, price drops and removed ads: cars, vans, property to rent or buy and items for sale by keyword, town or postcode and price. Price in GBP, location, seller type, photos; cars add year, mileage, fuel and gearbox.",
    "version": "0.1",
    "x-build-id": "8ZrOmdhidPet4lM87"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~gumtree-new-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-gumtree-new-listings-monitor",
        "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/neverempty~gumtree-new-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-gumtree-new-listings-monitor",
        "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/neverempty~gumtree-new-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-gumtree-new-listings-monitor",
        "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",
              "cars-vans-motorbikes",
              "cars",
              "motorbikes-scooters",
              "vans",
              "campervans-motorhomes",
              "caravans",
              "motors-parts",
              "motors-accessories",
              "flats-houses",
              "property-to-rent",
              "property-for-sale",
              "property-to-share",
              "commercial",
              "garage-parking",
              "for-sale",
              "home-garden",
              "kitchen-appliances",
              "baby-kids-stuff",
              "computers-software",
              "phones",
              "video-games-consoles",
              "sports-leisure-travel",
              "music-instruments",
              "diy-tools-materials",
              "clothing",
              "office-furniture-equipment",
              "freebies",
              "pets",
              "dogs",
              "cats"
            ],
            "type": "string",
            "description": "Schedule it hourly or daily and get only new ads and price drops. Pick the Gumtree category, for example Cars, Property to rent or For sale. Leave Category, Keywords, Locations and Search URLs all empty to run the example: Cars near London."
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. What you would type into the Gumtree search box, for example bmw 3 series, bike, 2 bed flat, iphone 15. Each keyword is searched in each location.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "UK towns, cities, areas or postcodes as Gumtree spells them, for example london, manchester, leeds, M1 1AA. Empty = the whole UK.",
            "items": {
              "type": "string"
            }
          },
          "distance": {
            "title": "Distance (miles)",
            "enum": [
              "1",
              "3",
              "5",
              "10",
              "15",
              "30",
              "50",
              "75",
              "100",
              "1000"
            ],
            "type": "string",
            "description": "How far around each location to search. Empty = the area Gumtree uses by default for that place. Ignored when searching the whole UK."
          },
          "minPrice": {
            "title": "Minimum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in pounds. For Property to rent and Rooms to share, Gumtree compares it with the weekly rent: £1,000 a month is about £231 a week."
          },
          "maxPrice": {
            "title": "Maximum price (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in pounds. For Property to rent and Rooms to share, Gumtree compares it with the weekly rent: £1,000 a month is about £231 a week."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "trade"
            ],
            "type": "string",
            "description": "Return only private sellers, or only trade sellers and agencies. Empty = any seller."
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional. Paste the address of any Gumtree search results page, with your own filters already set on gumtree.com. Each one is watched as its own search, always newest first.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max ads per search",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "How many of the newest ads to read per search (1 to 1500; Gumtree shows at most 1500 per search). Empty = 50. In monitor mode this is the window checked for new ads and changes on each run."
          },
          "monitorMode": {
            "title": "Monitor mode: only new ads and changes",
            "type": "boolean",
            "description": "Schedule it hourly or daily and get only new ads and price drops since the last run. The first run returns the current ads as the starting point; later runs return only changes."
          },
          "includePriceDrops": {
            "title": "Return price drops",
            "type": "boolean",
            "description": "In monitor mode, return ads whose price went down since the last run, with the previous price. Empty = yes."
          },
          "includePriceIncreases": {
            "title": "Return price rises",
            "type": "boolean",
            "description": "In monitor mode, also return ads whose price went up since the last run. Empty = no."
          },
          "includeRemoved": {
            "title": "Return removed ads",
            "type": "boolean",
            "description": "In monitor mode, return ads that were returned before and have gone from the list (sold or deleted). Empty = yes."
          },
          "includeUnchanged": {
            "title": "Also return unchanged ads",
            "type": "boolean",
            "description": "In monitor mode, also return already-seen ads with no change (each one is charged). Empty = no."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each schedule its own name (letters, digits, dot, dash, underscore) so separate schedules keep separate memories. Empty = default."
          },
          "resetMonitoringState": {
            "title": "Start this watch again",
            "type": "boolean",
            "description": "Forget what this watch remembered, so this run is a first check again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}