{
  "openapi": "3.0.1",
  "info": {
    "title": "Gumtree API & Scraper: Export UK Ads, Prices, Sellers & Alerts",
    "description": "Scrape Gumtree.com (UK) without login: ads by keyword, category, county, town or postcode, or from a search, category or ad URL. Price, photos, attributes (car, property, jobs), full text, seller rating and website. New-ad and price-drop alerts. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "33HyV4hVb5mtr7ujz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~gumtree-uk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-gumtree-uk-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/s_actors~gumtree-uk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-gumtree-uk-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/s_actors~gumtree-uk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-gumtree-uk-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to search for, as you would type it on Gumtree: \"iphone 15\", \"road bike\", \"golf gti\", \"sofa\". One search per keyword. Leave empty to list a whole category (choose one below) or paste URLs.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "County, town or postcode",
            "type": "string",
            "description": "Only ads from this place: a nation or county (\"England\", \"South Yorkshire\"), a town or area (\"Leeds\", \"Chorlton\") or a postcode (\"M1\", \"SW1A\"). With a postcode or town the radius below applies. Empty = the whole UK."
          },
          "radius": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Search this many miles around the place above (the site uses 1, 3, 5, 10, 15, 30, 50, 75, 100). Used with \"County, town or postcode\"."
          },
          "startUrls": {
            "title": "Gumtree URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (gumtree.com/search?...), category pages (gumtree.com/cars-vans-motorbikes/cars/london) or single ad links (gumtree.com/p/<category>/<title>/<id>: one row with ad and seller details). A search URL keeps its own filters (make, year, bedrooms ...); the form adds the missing ones.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads per search",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum ads for each keyword and each URL. Gumtree shows about 1,300 ads per search: above it the Actor reads the search county by county and town by town, so a keyword or category can return every ad in the UK.",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "cars-vans-motorbikes",
              "cars",
              "motorbikes-scooters",
              "vans",
              "campervans-motorhomes",
              "caravans",
              "trucks",
              "plant-tractors",
              "other-vehicles",
              "motors-accessories",
              "motors-parts",
              "cars-wanted",
              "for-sale",
              "kitchen-appliances",
              "stereos-audio",
              "baby-kids-stuff",
              "cameras-studio-equipment",
              "christmas-decorations",
              "clothing",
              "computers-software",
              "diy-tools-materials",
              "health-beauty",
              "home-garden",
              "house-clearance",
              "cds-dvds-games-books",
              "music-instruments",
              "office-furniture-equipment",
              "phones",
              "sports-leisure-travel",
              "tickets",
              "tv-dvd-cameras",
              "video-games-consoles",
              "freebies",
              "miscellaneous-goods",
              "stuff-wanted",
              "swap-shop",
              "business-services",
              "business-office-services",
              "childcare-services",
              "clothing-services",
              "telecoms-computer-services",
              "entertainment-services",
              "tax-money-visa-services",
              "food-drink-services",
              "goods-supplier-retailer-services",
              "health-beauty-services",
              "motoring-services",
              "pet-services-supplies",
              "property-shipping-services",
              "building-home-removal-services",
              "transport-services",
              "travel-services-tour-services",
              "tuition-lessons",
              "wedding-services",
              "flats-houses",
              "property-for-sale",
              "property-to-rent",
              "property-to-share",
              "home-swap",
              "commercial",
              "garage-parking",
              "international-property-for-sale",
              "holiday-rentals",
              "property-wanted",
              "pets",
              "birds",
              "cats",
              "dogs",
              "pet-equipment-accessories",
              "exotics",
              "fish",
              "horses-ponies",
              "pets-missing-lost-found",
              "pets-for-sale",
              "small-furries",
              "jobs",
              "accounting-jobs",
              "secretary-pa-jobs",
              "agriculture-and-farming-jobs",
              "animals-jobs",
              "arts-and-heritage-jobs",
              "volunteer-charity-work-jobs",
              "childcare-jobs",
              "computing-it-jobs",
              "construction-jobs",
              "customer-service-call-center-jobs",
              "driving-warehouse-jobs",
              "engineering-jobs",
              "financial-services-jobs",
              "gardening-landscaping-jobs",
              "health-beauty-jobs",
              "healthcare-medicine-pharmaceutical-jobs",
              "hospitality-catering-jobs",
              "housekeeping-cleaning-jobs",
              "training-hr-jobs",
              "paralegal-legal-jobs",
              "leisure-and-tourism-jobs",
              "manufacturing-jobs",
              "marketing-advertising-and-pr-jobs",
              "media-design-creative-jobs",
              "performing-arts-jobs",
              "purchasing-and-procurement-jobs",
              "recruitment-resourcing-jobs",
              "retail-jobs",
              "sales-customer-service-jobs",
              "scientific-and-research-jobs",
              "security-jobs",
              "social-work-jobs",
              "sport-fitness-and-leisure-jobs",
              "teaching-nursery-jobs",
              "transport-logistics-and-delivery-jobs",
              "community",
              "artists-theatres",
              "classes",
              "events-gigs-nightlife",
              "groups-associations",
              "lost-found-stuff",
              "music-bands-musicians-djs",
              "rideshare-car-pooling",
              "skills-language-swap",
              "sports-teams-partners",
              "travel-travel-partners"
            ],
            "type": "string",
            "description": "Only this category (main categories and their sub-categories). With no keywords it lists the whole category."
          },
          "minPrice": {
            "title": "Minimum price (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount."
          },
          "maxPrice": {
            "title": "Maximum price (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "trade"
            ],
            "type": "string",
            "description": "Private people or trade sellers (dealers, shops, agents). \"Trade\" with \"Ad and seller details\" gives a lead list: business name, website, rating, number of ads.",
            "default": "any"
          },
          "photosOnly": {
            "title": "Ads with photos only",
            "type": "boolean",
            "description": "Skip ads without a picture.",
            "default": false
          },
          "searchDescription": {
            "title": "Search in titles and descriptions",
            "type": "boolean",
            "description": "Match the keywords against the text of the ad as well as its title (more results, more noise).",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "priceAsc",
              "priceDesc",
              "distance"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while ads are added during a run and is what monitoring needs. \"Nearest first\" needs a postcode or town.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Ad and seller details",
            "type": "boolean",
            "description": "Open every ad page to add the full text, all photos and attributes, the exact dates (first posted, renewed), coordinates, and the seller: name, website, rating, reviews, number of ads, time on Gumtree and last activity. Same price per ad, slower run.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name, plus ads whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Sorted newest first, a run stops after two pages with nothing new. Schedule the Actor to get new ads every few minutes. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}