# WG-Gesucht Listing Scraper

This template scrapes listings from WG-Gesucht.de, including city, category, title, basic info, total rent, availability, size, provider and listing URL.

- Template page: [https://www.octoparse.com/template/wg-gesucht-listing-scraper](https://www.octoparse.com/template/wg-gesucht-listing-scraper)
- Categories: Real Estate
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from web pages.

## Output

The current workflow extracts 9 fields, including `Anbieter`, `Anzeige_URL`, `Basisinformationen`, `Gesamtmiete`, `Größe`, `Kategorie`, `Stadt`, `Titel`, `Verfügbarkeit`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keywords, Select Categories and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keywords

Required. Keywords to search Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=10000.

### Select Categories

Required. Select a Category option Constraints: minItems=1; maxItems=4; items.minLength=1; items.maxLength=10000. Callable values are the `const` keys in JSON `oneOf`, not the option titles.

## How to Use

## Input

- **Keywords**: city to search, e.g. `berlin`. Enter multiple cities one per line, or import from a file or another task.
- **Category**: accommodation type, e.g. `WG-Zimmer`.

## Steps

1. Click **Try it!**
2. Enter one or more city names in **Keywords** (e.g. `berlin`).
3. Select the accommodation type in **Category** (e.g. `WG-Zimmer`).
4. Click **Start**, then choose **Run in Web Browser** or **Run with Desktop App**.
5. Wait for the task to finish, then export the data to Excel, CSV, JSON, or a database.

## Note

- If you encounter a CAPTCHA, pause the task and solve it manually in the built-in browser.

## Is scraping WG-Gesucht.de legal?

Web scraping is generally legal if you scrape publicly available non-personal data. What you do with the data is another question. Learn more about the legality of web scraping in [this article](https://helpcenter.octoparse.com/en/articles/6471169-is-web-scraping-via-octoparse-legal-and-ethical). If you are not sure, seek professional legal advice.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [WG-Gesucht Details Scraper](https://www.octoparse.com/template/wg-gesucht-details-scraper)
- [eBay Listing Page Scraper (by keyword)](https://www.octoparse.com/template/ebay-product-list-scraper-by-keyword)
- [Booking.com Hotel Listing Scraper](https://www.octoparse.com/template/booking-com-scraper)
- [Google Maps Store Listing Scraper (Japan)](https://www.octoparse.com/template/google-maps-store-listing-scraper)
- [Zillow Listing Scraper (by URL)](https://www.octoparse.com/template/zillow-scraper)

## Input Schema

```json
{
  "title": "WG-Gesucht Listing Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords",
      "description": "Keywords to search",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "select_Categories": {
      "title": "Select Categories",
      "description": "Select a Category option",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000,
        "oneOf": [
          {
            "title": "WG-Zimmer",
            "const": "//button[@data-id=\"categories\"]/following-sibling::div//ul/li[1]/a"
          },
          {
            "title": "1-Zimmer-Wohnung",
            "const": "//button[@data-id=\"categories\"]/following-sibling::div//ul/li[2]/a"
          },
          {
            "title": "Wohnung",
            "const": "//button[@data-id=\"categories\"]/following-sibling::div//ul/li[3]/a"
          },
          {
            "title": "Haus",
            "const": "//button[@data-id=\"categories\"]/following-sibling::div//ul/li[4]/a"
          }
        ]
      },
      "minItems": 1,
      "maxItems": 4,
      "x-octoparse": {
        "apiEnabled": false
      }
    }
  },
  "required": [
    "keywords",
    "select_Categories"
  ]
}
```

## Input JSON Example

No verified real input/output examples are currently available.


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Anbieter": {
      "type": "string",
      "description": ""
    },
    "Anzeige_URL": {
      "type": "string",
      "description": ""
    },
    "Basisinformationen": {
      "type": "string",
      "description": ""
    },
    "Gesamtmiete": {
      "type": "string",
      "description": ""
    },
    "Größe": {
      "type": "string",
      "description": ""
    },
    "Kategorie": {
      "type": "string",
      "description": ""
    },
    "Stadt": {
      "type": "string",
      "description": ""
    },
    "Titel": {
      "type": "string",
      "description": ""
    },
    "Verfügbarkeit": {
      "type": "string",
      "description": ""
    }
  },
  "title": "WG-Gesucht Listing Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

No verified real input/output examples are currently available.

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

No verified real input/output examples are currently available.

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `WG-Gesucht-Listing-Scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/wg-gesucht-listing-scraper.json)
- [Manifest](https://www.octoparse.com/templates/wg-gesucht-listing-scraper-manifest.json)
