# Tayara.tn Scraper — Tunisia Classifieds & Prices (`logiover/tayara-tn-scraper`) Actor

Tayara.tn Scraper turns Tunisia's largest classifieds marketplace into structured data. Scrape any category — cars, real estate, phones, jobs — with the title, a numeric price in dinars, the publisher (with a shop flag), the governorate/delegation location and image URLs. A no-code Tayara API altern

- **URL**: https://apify.com/logiover/tayara-tn-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** E-commerce, Real estate
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🇹🇳 Tayara.tn Scraper — Tunisia Classifieds & Prices

> **Export Tayara.tn listings across every category — title, price, publisher, governorate and images — to JSON, CSV or Excel. Keyless.**

![data](https://img.shields.io/badge/data-JSON%C2%B7CSV%C2%B7Excel-2b8a3e?style=flat-square) ![login](https://img.shields.io/badge/login-not%20required-0b7285?style=flat-square) ![pricing](https://img.shields.io/badge/pricing-pay%20per%20result-5f3dc4?style=flat-square)

**Tayara.tn Scraper** turns Tunisia's largest classifieds marketplace into structured data. Scrape any category — cars, real estate, phones, jobs — with the title, a numeric price in dinars, the publisher (with a shop flag), the governorate/delegation location and image URLs. A no-code Tayara API alternative on Apify.

### 📋 At a glance

| | |
|---|---|
| **Source** | tayara.tn (Tunisia #1 marketplace) |
| **Coverage** | All Tunisia, every category |
| **Volume** | Hundreds+ per category (deep pagination) |
| **Data** | Title · price · publisher · location |
| **Currency** | TND |
| **Output** | JSON, CSV, Excel |
| **Login** | Not required |

### ❓ What is Tayara.tn Scraper?

Tayara.tn is Tunisia's leading classifieds site. This scraper reads its embedded result data (premium and new listings merged and de-duplicated), so every row carries a numeric price in Tunisian dinars, the publisher name and shop flag, and the governorate/delegation location. The listing URL is built from the stable item id.

### ⭐ Why use this scraper?

- ✅ **Any category** — cars, real estate, phones, jobs
- ✅ **Numeric price** in TND, ready to sort and filter
- ✅ **Publisher name and shop flag** for lead context
- ✅ **Governorate and delegation** location broken out
- ✅ **Deep pagination** with automatic de-duplication of sticky premium ads
- ✅ **Keyless & browserless** — low cost per row

### 📦 What data can you extract?

| Field | Description |
|---|---|
| `listingId` | Ad ID |
| `title` | Title |
| `listingUrl` | Ad URL |
| `priceAmount` | Price |
| `currency` | Currency |
| `description` | Description |
| `publisherName` | Publisher |
| `isShop` | Is shop |
| `governorate` | Governorate |
| `delegation` | Delegation |
| `publishedOn` | Published |
| `imageUrl` | Image |
| `country` | Country |
| `source` | Source |
| `scrapedAt` | Scraped at |

### 🎯 Use cases

- Monitor used-car or phone prices across Tunisia
- Track real-estate asking prices by governorate
- Build a Tunisian marketplace dataset for analysis
- Compare shop vs private-publisher listings
- Feed a price-intelligence tool with a Tunisia feed

### 🚀 How to use it

1. Copy a **category path** from a Tayara.tn URL (the part after `/ads/`), e.g. `c/Véhicules` or `c/Immobilier`.
2. Set **Maximum results** and click **Start**.
3. Export to JSON, CSV or Excel, or pull via the Apify API.

#### Input example

```json
{
  "categoryPath": "c/Véhicules",
  "maxResults": 1000
}
```

### 💳 Pricing

Runs on a **pay-per-result** model with **Apify Store volume discounts** — higher plan tiers pay less per row and you only pay for records delivered. A **free tier** is available to try it, no credit card required.

### ⚖️ Legal

This scraper collects **publicly available** listing data only; nothing behind a login. You remain responsible for how you use the exported data, including any personal data, under GDPR and local law.

### ❔ FAQ

<details>
<summary><b>Do I need a Tayara account?</b></summary>

No. Listings are public — no login required.

</details>

<details>
<summary><b>Which categories are covered?</b></summary>

All of them — set the category path from any Tayara search URL (after `/ads/`).

</details>

<details>
<summary><b>Why are some prices empty?</b></summary>

Ads marked 'price on request' / negotiable carry no number; the row keeps the rest of the data.

</details>

<details>
<summary><b>Does it paginate beyond page 1?</b></summary>

Yes — it walks pages and de-duplicates the premium ads that repeat, so each page adds fresh listings.

</details>

<details>
<summary><b>How am I charged?</b></summary>

Pay per result — you only pay for the ads delivered.

</details>

***

<sub>Keywords: tayara scraper, tayara.tn scraper, tayara api, tunisia classifieds data, scrape tayara, tunisia marketplace data, tunisia real estate data, tayara cars tunisia</sub>

# Actor input Schema

## `categoryPath` (type: `string`):

Path after /ads/ from a Tayara.tn URL, e.g. c/Véhicules, c/Immobilier, c/Informatique-et-Multimedias.

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

Stop after this many ads; the Actor paginates until met.

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

Residential Tunisia proxy is preselected for reliable access.

## Actor input object example

```json
{
  "categoryPath": "c/Véhicules",
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TN"
  }
}
```

# Actor output Schema

## `listingId` (type: `string`):

No description

## `title` (type: `string`):

No description

## `listingUrl` (type: `string`):

No description

## `priceAmount` (type: `string`):

No description

## `currency` (type: `string`):

No description

## `description` (type: `string`):

No description

## `publisherName` (type: `string`):

No description

## `isShop` (type: `string`):

No description

## `governorate` (type: `string`):

No description

## `delegation` (type: `string`):

No description

## `publishedOn` (type: `string`):

No description

## `imageUrl` (type: `string`):

No description

## `country` (type: `string`):

No description

## `source` (type: `string`):

No description

## `scrapedAt` (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 = {
    "categoryPath": "c/Véhicules",
    "maxResults": 500,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "TN"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/tayara-tn-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 = {
    "categoryPath": "c/Véhicules",
    "maxResults": 500,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "TN",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/tayara-tn-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 '{
  "categoryPath": "c/Véhicules",
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TN"
  }
}' |
apify call logiover/tayara-tn-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/tayara-tn-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/ZpU2NxXFmpwci0WAV/builds/IED3MQYQyyaKJ1Okc/openapi.json
