# CustoJusto Scraper - Portuguese Classifieds Data (`studio-amba/custojusto-scraper`) Actor

Scrape classified listings from CustoJusto.pt, Portugal's largest classifieds marketplace. Search by keyword, category, location, and price range. Extract titles, prices, seller info, images, and more. No login or cookies required.

- **URL**: https://apify.com/studio-amba/custojusto-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 87.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does CustoJusto Scraper do?

**CustoJusto Scraper** extracts classified listing data from [CustoJusto.pt](https://www.custojusto.pt), Portugal's largest online classifieds platform. It collects item titles, prices, categories, locations, seller types, condition, posting dates, images, and direct URLs.

CustoJusto covers all major classifieds categories including vehicles, real estate, electronics, furniture, fashion, sports, services, and jobs across every Portuguese district from Lisboa to Porto, Faro to Madeira.

Running on the Apify platform gives you full API access, scheduled runs, webhook integrations, and automatic proxy rotation — no infrastructure to manage.

### Why use CustoJusto Scraper?

- **Market research** — Track pricing trends for products across Portugal's classifieds market
- **Competitive intelligence** — Monitor what's being sold, at what price, and where
- **Real estate monitoring** — Watch property listings across Portuguese districts
- **Vehicle pricing** — Compare used car prices nationwide
- **Lead generation** — Find professional sellers and service providers
- **Academic research** — Analyze the Portuguese second-hand economy
- **Price comparison** — Aggregate classifieds data with other Portuguese marketplaces

### How to scrape CustoJusto data

1. Go to the [CustoJusto Scraper](https://apify.com/studio-amba/custojusto-scraper) page on Apify Store
2. Click **Try for free** to open the Actor in Apify Console
3. Enter your search query in Portuguese (e.g., "iphone", "apartamento", "bicicleta")
4. Optionally select a category and district to narrow results
5. Set price range filters if needed
6. Adjust **Max Results** to control how many listings to collect
7. Click **Start** and wait for the run to complete
8. Download your data as JSON, CSV, Excel, or HTML from the Output tab

No login, cookies, or API keys are required. The scraper works out of the box.

### Input

| Parameter | Type | Description |
|---|---|---|
| `searchQuery` | String | Search term in Portuguese. Default: "iphone" |
| `category` | String | Category filter (veiculos, imobiliario, informatica, etc.) |
| `location` | String | Portuguese district (lisboa, porto, faro, etc.) Default: nationwide |
| `priceFrom` | Number | Minimum price in EUR |
| `priceTo` | Number | Maximum price in EUR |
| `maxResults` | Integer | Maximum listings to scrape (1-2000). Default: 100 |
| `proxyConfiguration` | Object | Proxy settings. Pre-configured for Portugal residential proxies |

#### Example input

```json
{
    "searchQuery": "apartamento t2",
    "category": "imobiliario",
    "location": "lisboa",
    "priceTo": 250000,
    "maxResults": 50
}
````

### Output

Each listing produces a JSON object with the following fields:

```json
{
    "itemTitle": "Apartamento T2 Renovado - Centro de Lisboa",
    "price": 185000,
    "currency": "EUR",
    "category": "Imobiliario",
    "location": "Lisboa",
    "condition": "",
    "postedDate": "Hoje, 14:30",
    "sellerType": "Professional",
    "imageUrl": "https://prod-images.custojusto.pt/gallery/12345-apartamento.jpg",
    "url": "https://www.custojusto.pt/lisboa/imobiliario/apartamentos-venda/apartamento-t2-renovado-44567890",
    "scrapedAt": "2026-06-09T12:00:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data fields

| Field | Type | Description |
|---|---|---|
| `itemTitle` | String | The listing title |
| `price` | Number | Price in euros (null if not listed) |
| `currency` | String | Always "EUR" |
| `category` | String | CustoJusto category name |
| `location` | String | City or district |
| `condition` | String | Novo, Usado, Como novo, Recondicionado |
| `postedDate` | String | When posted (Hoje, Ontem, or date) |
| `sellerType` | String | Professional or Private |
| `imageUrl` | String | Listing thumbnail URL |
| `url` | String | Direct link to the listing |
| `scrapedAt` | String | ISO 8601 timestamp of data collection |

### How much does it cost to scrape CustoJusto?

CustoJusto Scraper uses Playwright (browser-based) scraping for reliable data extraction. Typical costs on the Apify platform:

- **100 listings**: ~$0.10-0.15 in platform usage
- **500 listings**: ~$0.40-0.60 in platform usage
- **1,000 listings**: ~$0.70-1.00 in platform usage

Costs depend on proxy usage and the number of pages loaded. The scraper paginates automatically so you only pay for what you need. Apify's free tier includes $5 of monthly usage — enough for thousands of listings.

### Tips and advanced options

- **Use Portuguese keywords** for best results. CustoJusto is a Portuguese-language site, so "telemóvel" works better than "mobile phone"
- **Combine category + location** to narrow results and reduce run time
- **Price filters** work on the server side, reducing unnecessary data transfer
- **Schedule regular runs** via Apify Console to monitor price changes over time
- **Integrate via API** or webhooks to feed data into your own systems, Google Sheets, or databases

#### Popular search examples

| Use case | searchQuery | category | location |
|---|---|---|---|
| iPhones in Porto | iphone | telemoveis | porto |
| Apartments in Lisboa | apartamento | imobiliario | lisboa |
| Used cars in Faro | carro | veiculos | faro |
| Furniture nationwide | sofá | casa-jardim | portugal |
| Bicycles in Braga | bicicleta | desporto-lazer | braga |

### FAQ and support

#### Is it legal to scrape CustoJusto?

This scraper collects only publicly available data from CustoJusto.pt that any visitor can see in a web browser. It does not bypass login walls, collect personal data, or violate access restrictions. Always ensure your use case complies with applicable laws and CustoJusto's terms of service.

#### Why are some prices null?

Some listings on CustoJusto don't display a price (marked as "Contactar" or "Preço sob consulta"). These are returned with `price: null`.

#### Can I scrape a specific CustoJusto page URL?

This scraper works via keyword search with optional category and location filters. For direct URL scraping, contact us for a custom solution.

#### The scraper returns 0 results

- Check that your search query exists on CustoJusto.pt — try the same search in your browser first
- Very specific or misspelled queries may return no results
- Check the debug screenshot in the key-value store for more information

#### I need help or found a bug

Open an issue in the [Issues tab](https://apify.com/studio-amba/custojusto-scraper/issues) or contact us for custom scraping solutions.

# Actor input Schema

## `searchQuery` (type: `string`):

Search term in Portuguese (e.g. 'iphone', 'apartamento', 'bicicleta', 'sofá'). Leave empty to use default search.

## `category` (type: `string`):

Filter results by CustoJusto category.

## `location` (type: `string`):

Filter by Portuguese district. Leave empty for nationwide search.

## `priceFrom` (type: `number`):

Minimum price filter in euros.

## `priceTo` (type: `number`):

Maximum price filter in euros.

## `maxResults` (type: `integer`):

Maximum number of listings to scrape. CustoJusto shows ~40 results per page.

## `proxyConfiguration` (type: `object`):

Proxy settings for reliable scraping. Residential proxies recommended for Portugal.

## Actor input object example

```json
{
  "searchQuery": "iphone",
  "location": "portugal",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "iphone",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PT"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/custojusto-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": "iphone",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PT",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/custojusto-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "iphone",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  }
}' |
apify call studio-amba/custojusto-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/custojusto-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CustoJusto Scraper - Portuguese Classifieds Data",
        "description": "Scrape classified listings from CustoJusto.pt, Portugal's largest classifieds marketplace. Search by keyword, category, location, and price range. Extract titles, prices, seller info, images, and more. No login or cookies required.",
        "version": "0.1",
        "x-build-id": "Uf4cuJWpyI4P0Cjmw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~custojusto-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-custojusto-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/studio-amba~custojusto-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-custojusto-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/studio-amba~custojusto-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-custojusto-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": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search term in Portuguese (e.g. 'iphone', 'apartamento', 'bicicleta', 'sofá'). Leave empty to use default search."
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "veiculos",
                            "imobiliario",
                            "informatica",
                            "telemoveis",
                            "electronica",
                            "casa-jardim",
                            "desporto-lazer",
                            "moda",
                            "emprego",
                            "servicos",
                            "animais",
                            "bebes-criancas",
                            "musica-filmes-livros",
                            "coleccionismo",
                            "equipamento-profissional"
                        ],
                        "type": "string",
                        "description": "Filter results by CustoJusto category."
                    },
                    "location": {
                        "title": "Location (District)",
                        "enum": [
                            "portugal",
                            "lisboa",
                            "porto",
                            "braga",
                            "faro",
                            "coimbra",
                            "aveiro",
                            "setubal",
                            "leiria",
                            "viseu",
                            "santarem",
                            "viana-do-castelo",
                            "vila-real",
                            "braganca",
                            "castelo-branco",
                            "guarda",
                            "evora",
                            "beja",
                            "portalegre",
                            "acores",
                            "madeira"
                        ],
                        "type": "string",
                        "description": "Filter by Portuguese district. Leave empty for nationwide search.",
                        "default": "portugal"
                    },
                    "priceFrom": {
                        "title": "Minimum Price (EUR)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum price filter in euros."
                    },
                    "priceTo": {
                        "title": "Maximum Price (EUR)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum price filter in euros."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape. CustoJusto shows ~40 results per page.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings for reliable scraping. Residential proxies recommended for Portugal."
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
