# Tayara.tn Scraper (Tunisia classifieds) (`flourishing_catfish/tayara-scraper`) Actor

Scrape Tayara.tn, the largest classifieds site in Tunisia: phones, cars, property. Price in TND, governorate, publish date, shop, photos. No login.

- **URL**: https://apify.com/flourishing_catfish/tayara-scraper.md
- **Developed by:** [Make Life Fair](https://apify.com/flourishing_catfish) (community)
- **Categories:** E-commerce, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Tayara.tn Scraper — Tunisia Classifieds Data

Extract listings from **Tayara.tn**, Tunisia's largest classifieds marketplace: phones, cars, real estate, electronics, home and more. Keyword search, no login, no browser.

### What you get

| Field | Example |
|---|---|
| `title`, `url`, `id` | iphone 13 256go |
| `price`, `currency` | 950, TND |
| `governorate`, `delegation` | Ariana, Riadh Andalous |
| `publishedAt` | 2026-11-06T10:53:28Z |
| `description` | listing text (phone numbers hidden) |
| `isShop`, `shopName` | |
| `image`, `images` | photo URLs |

### Use cases

- **Price research** for phones, cars and property in Tunisia.
- **Market monitoring** — schedule daily runs for new listings.
- **Dealer and shop research.**

### Input

```json
{"searchQueries": ["iphone 15", "golf 7", "appartement s+2"], "maxItemsPerSearch": 300}
```

### Pricing

Pay per listing returned. Platform usage included.

### Notes

Collects publicly visible listing data. Phone numbers in descriptions and private sellers' names are removed.

### Sample output

One real listing from a test run (long text shortened):

```json
{
  "id": "6aef240028cf9f77de8a0db0",
  "title": "iphone 13 256go",
  "url": "https://www.tayara.tn/item/6aef240028cf9f77de8a0db0/",
  "price": 950,
  "currency": "TND",
  "description": "Je vends mon iphone 13 version 256.\nLe téléphone sera vendu avec son cable chatgeur d’origine, une coque de protection magsafe",
  "governorate": "Ben Arous",
  "delegation": "Ezzahra",
  "publishedAt": "2026-11-07T13:13:36.000Z",
  "isShop": false,
  "shopName": null,
  "image": "https://cdn.tayara.tn/c3/c3085a0b-ddf9-4211-8716-11c10c06219d",
  "images": [
    "https://cdn.tayara.tn/c3/c3085a0b-ddf9-4211-8716-11c10c06219d",
    "https://cdn.tayara.tn/f8/f87cd932-937a-48f4-a0f3-1f8f2b0ad233",
    "https://cdn.tayara.tn/1a/1ae4460e-8f9e-4a4f-a6a6-ae68dcc29c35"
  ],
  "query": "iphone",
  "page": 1,
  "position": 1,
  "scrapedAt": "2026-11-07T13:19:35.036219+00:00"
}
```

### How to use

1. Click **Try for free** (or Start).
2. Type keywords (e.g. `iphone`, `voiture`, `appartement`).
3. Set the maximum number of listings, then run.
4. Download the results as JSON, CSV, Excel or HTML, or send them to Google Sheets, Make, Zapier or a webhook.

You can schedule the run (daily, hourly) in Apify to track new listings and price changes over time.

### How much does it cost?

**$4 per 1,000 listings** ($0.004 per listing), and Apify platform usage is included in that price.

| Listings | Cost |
|---|---|
| 100 | $0.40 |
| 1,000 | $4 |
| 10,000 | $40 |

### Use it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("flourishing_catfish/tayara-scraper").call(run_input={"searchQueries": ["iphone"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

HTTP API (returns the items directly):

```bash
curl -X POST "https://api.apify.com/v2/acts/flourishing_catfish~tayara-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"searchQueries": ["iphone"]}'
```

### FAQ

**Do I need a Tayara account?** No. It reads public pages only, with no login and no browser.

**Is scraping Tayara legal?** It collects publicly visible data. You're responsible for how you use it: follow the site's terms and the data-protection law that applies to you (e.g. GDPR), and don't use it for spam.

**Something broke or a field is missing?** Report it on this Actor's Issues tab with the input you used.

### Also searched as

scraper Tayara, annonces Tunisie, petites annonces tayara.tn, prix voitures Tunisie, immobilier Tunis, Tunisia classifieds data

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords (French, Arabic or English), one per line.

## `maxItemsPerSearch` (type: `integer`):

Stop after this many listings for each search.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "maxItemsPerSearch": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("flourishing_catfish/tayara-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 = { "searchQueries": ["iphone"] }

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

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

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

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "iphone"
  ]
}' |
apify call flourishing_catfish/tayara-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,flourishing_catfish/tayara-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7MVVtQIVhvbSvq0i7/builds/nOIUziX9iQiLdUd9p/openapi.json
