# TecnoCasa Scraper by URL

Extract data from TecnoCasa

- Template page: [https://www.octoparse.com/template/tecnocasa-scraper-url](https://www.octoparse.com/template/tecnocasa-scraper-url)
- 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 detail pages.

## Output

The current workflow extracts 8 fields, including `Estado`, `Estado1`, `Estado2`, `Estado3`, `Imagen`, `Precio`, `Título`, `Título_URL`.

## 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 URLs and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URLs

Required. URLs Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=10000.

## How to Use

## TecnoCasa Scraper by URL

This template collects listing data from Tecnocasa (https://www.tecnocasa.es/) using listing page URLs.

### Input

- **URLs** (required): Enter one or more Tecnocasa listing page URLs, one per line.

### Output

Returns the following fields per listing: Título, Título_URL, Imagen, Precio, Estado, Estado1, Estado2, Estado3.

### How to Use

1. Open the template and select **Try it** or **Start**.
2. Enter the listing URLs in the input field.
3. Choose a local or cloud run.
4. Review the output rows and export or process the data.

### Limitations

- Only collects data displayed on the listing page. Fields like Estado1, Estado2, Estado3 may be empty if not provided.
- Scheduling and API access (Octoparse OpenAPI, AgentTools API) may require a paid Octoparse plan.

### Tips

- Start with a few inputs to verify the output before scaling.
- Use specific, valid listing URLs to avoid unrelated records.

## 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

- [Google Local Service Scraper (by URL)](https://www.octoparse.com/template/google-business-local-services-scraper)
- [Twitter Scraper (by Account URL)](https://www.octoparse.com/template/twitter-scraper-by-account-url)
- [Etsy Product Scraper (by URL)](https://www.octoparse.com/template/etsy-product-scraper-by-url)
- [Zillow Listing Scraper (by URL)](https://www.octoparse.com/template/zillow-scraper)
- [Rikunabi NEXT Job Scraper by URL](https://www.octoparse.com/template/rikunabi-next-job-scraper)

## Input Schema

```json
{
  "title": "TecnoCasa Scraper by URL input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRLs": {
      "title": "URLs",
      "description": "URLs",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRLs"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRLs": [
    "https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html",
    "https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html",
    "https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html"
  ]
}
```

Example 2

```json
{
  "uRLs": [
    "https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html",
    "https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html",
    "https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html"
  ]
}
```

Example 3

```json
{
  "uRLs": [
    "https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html",
    "https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html",
    "https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html"
  ]
}
```

Example 4

```json
{
  "uRLs": [
    "https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html",
    "https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html",
    "https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html"
  ]
}
```

Example 5

```json
{
  "uRLs": [
    "https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html",
    "https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html",
    "https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Estado": {
      "type": "string",
      "description": ""
    },
    "Estado1": {
      "type": "string",
      "description": ""
    },
    "Estado2": {
      "type": "string",
      "description": ""
    },
    "Estado3": {
      "type": "string",
      "description": ""
    },
    "Imagen": {
      "type": "string",
      "description": ""
    },
    "Precio": {
      "type": "string",
      "description": ""
    },
    "Título": {
      "type": "string",
      "description": ""
    },
    "Título_URL": {
      "type": "string",
      "description": ""
    }
  },
  "title": "TecnoCasa Scraper by URL 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

Example 1

```json
{
  "Estado": "\n                            Villarrubia De Los Ojos\n                        ",
  "Estado1": "3 dorm.",
  "Estado2": "235 m2",
  "Estado3": "1 baño",
  "Imagen": "https://cdn-media.medialabtc.it/es/agencies/cr002/estates/673846/images/10268215/gallery_media.jpeg",
  "Precio": "\n                            46.900 €\n                        ",
  "Título": "\n                            Casa en venta\n                        ",
  "Título_URL": "https://www.tecnocasa.es/venta/casa/ciudad-real/villarrubia-de-los-ojos/673846.html"
}
```

Example 2

```json
{
  "Estado": "\n                            Santander\n                        ",
  "Estado1": "3 dorm.",
  "Estado2": "87 m2",
  "Estado3": "1 baño",
  "Imagen": "https://cdn-media.medialabtc.it/es/agencies/sn001/estates/541090/images/10241905/gallery_media.jpeg",
  "Precio": "\n                            199.900 €\n                        ",
  "Título": "\n                            Piso en venta\n                        ",
  "Título_URL": "https://www.tecnocasa.es/venta/piso/cantabria/santander/541090.html"
}
```

Example 3

```json
{
  "Estado": "\n                            Alcázar De San Juan\n                        ",
  "Estado1": "4 dorm.",
  "Estado2": "205 m2",
  "Estado3": "2 baños",
  "Imagen": "https://cdn-media.medialabtc.it/es/agencies/cr500/estates/662720/images/10020746/gallery_media.jpeg",
  "Precio": "\n                            147.900 €\n                        ",
  "Título": "\n                            Casa en venta\n                        ",
  "Título_URL": "https://www.tecnocasa.es/venta/casa/ciudad-real/alcazar-de-san-juan/662720.html"
}
```

Example 4

```json
{
  "Estado": "\n                            Manzanares\n                        ",
  "Estado1": "1 dorm.",
  "Estado2": "111 m2",
  "Estado3": "2 baños",
  "Imagen": "https://cdn-media.medialabtc.it/es/agencies/cr506/estates/665267/images/10063309/gallery_media.jpeg",
  "Precio": "\n                            85.000 €\n                        ",
  "Título": "\n                            Casa rural en venta\n                        ",
  "Título_URL": "https://www.tecnocasa.es/venta/casa-rural/ciudad-real/manzanares/665267.html"
}
```

Example 5

```json
{
  "Estado": "\n                            Castilleja De La Cuesta\n                        ",
  "Estado1": "3 dorm.",
  "Estado2": "130 m2",
  "Estado3": "1 baño",
  "Imagen": "https://cdn-media.medialabtc.it/es/agencies/se512/estates/658242/images/9854786/gallery_media.jpeg",
  "Precio": "\n                            275.000 €\n                        ",
  "Título": "\n                            Casa en venta\n                        ",
  "Título_URL": "https://www.tecnocasa.es/venta/casa/sevilla/castilleja-de-la-cuesta/658242.html"
}
```

## 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`.

```json
{
  "templateName": "tecnocasa-scraper-url",
  "taskName": "TecnoCasa Scraper by URL",
  "parameters": "{\"uRLs\":[\"https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html\",\"https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html\",\"https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRLs\":[\"https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html\",\"https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html\",\"https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "tecnocasa-scraper-url",
        "taskName": "TecnoCasa Scraper by URL",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "tecnocasa-scraper-url",
  "taskName": "TecnoCasa Scraper by URL",
  "parameters": "{\"uRLs\":[\"https://www.tecnocasa.es/venta/inmuebles/castilla-la-mancha/ciudad-real.html\",\"https://www.tecnocasa.es/venta/inmuebles/andalucia/sevilla.html\",\"https://www.tecnocasa.es/venta/inmuebles/cantabria/cantabria/santander.html\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `tecnocasa-scraper-url`, 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/tecnocasa-scraper-url.json)
- [Manifest](https://www.octoparse.com/templates/tecnocasa-scraper-url-manifest.json)
