Discover/Tayara API
live

Tayara APItayara.tn

Access Tayara.tn classified ads via API. Search listings, filter by category/location/price, retrieve seller contacts, shops, and categories.

Endpoint health
verified 5d ago
search_ads
list_ads
get_ad_detail
list_shops
get_categories
5/5 passing latest checkself-healing
Endpoints
5
Updated
26d ago

What is the Tayara API?

The Tayara.tn API provides 5 endpoints for searching, filtering, and extracting data from Tunisia's largest classified ads platform. Use search_ads to find listings by keyword, get_ad_detail to pull a specific ad's seller phone number, publisher info, and category-specific parameters, or list_shops to enumerate all active boutiques with their contact details. Response objects include price in Tunisian Dinars, geo-coordinates, images, and structured metadata.

Try it
Number of results per page.
Search keyword (e.g. 'voiture'). Omitting returns all recent ads.
Pagination offset (number of results to skip).
api.parse.bot/scraper/bf1aa8ba-a2d5-41be-94f8-5cd4155bf779/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/bf1aa8ba-a2d5-41be-94f8-5cd4155bf779/search_ads?limit=5&query=voiture&offset=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace tayara-tn-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.tayara_tn_api import Tayara, AdSummary, Ad, Shop, Category

tayara = Tayara()

# List available categories
for category in tayara.categories.list():
    print(category.name, category.id)

# Search for ads by keyword
for ad in tayara.adsummaries.search(query="voiture"):
    print(ad.title, ad.price, ad.location.governorate)

# Get full details for a specific ad
for item in tayara.adsummaries.search(query="isuzi"):
    detail = item.details()
    print(detail.title, detail.phone, detail.currency)
    for param in detail.parameters:
        print(param.label, param.value)
    break

# List ads filtered by category and location
for ad in tayara.adsummaries.list(category_id="60be84bc50ab95b45b08a094", governorate="Sfax"):
    print(ad.title, ad.price, ad.location.delegation)

# Browse all shops
for shop in tayara.shops.list():
    print(shop.name, shop.phone, shop.email)
All endpoints · 5 totalmissing one? ·

Full-text search over Tayara.tn classified ads. query matches title and description; results are sorted by recency. Paginates via offset. Each listing includes id, title, description, images, price, metadata (publisher, publish date, subcategory), and location (governorate, delegation).

Input
ParamTypeDescription
limitintegerNumber of results per page.
querystringSearch keyword (e.g. 'voiture'). Omitting returns all recent ads.
offsetintegerPagination offset (number of results to skip).
Response
{
  "type": "object",
  "fields": {
    "count": "integer total number of listings returned in this page",
    "limit": "integer page size used",
    "offset": "integer pagination offset used",
    "listings": "array of ad listing objects"
  },
  "sample": {
    "data": {
      "count": 5,
      "limit": 5,
      "offset": 0,
      "listings": [
        {
          "id": "6a293800a849fd3c0e18598b",
          "price": 300000,
          "title": "Voiture ISUZI 10 chevaux",
          "images": [
            "https://storage.googleapis.com/tayara-migration-yams-pro/be/be2d012d-0de1-4bbf-b885-4fc9d2fe414e"
          ],
          "location": {
            "delegation": "Djerba Houmt Souk",
            "governorate": "Médenine"
          },
          "metadata": {
            "state": 2,
            "publisher": {
              "id": "",
              "name": "bachir hanini",
              "avatar": "",
              "isShop": false,
              "isApproved": false
            },
            "meiliSynced": true,
            "producttype": 0,
            "publishedOn": "2026-06-10T10:10:08.000Z",
            "subCategory": "60be84be50ab95b45b08a0a4"
          },
          "description": "Voiture ISUZI 10 chevaux direction assistée"
        }
      ]
    },
    "status": "success"
  }
}

About the Tayara API

Search and Browse Listings

The search_ads endpoint accepts a query string (e.g. 'voiture') plus limit and offset for pagination. It returns a listings array where each object carries an id, title, description, images, price, and a location object. Omitting the query parameter returns the most recent ads across all categories. The list_ads endpoint adds more targeted filtering: pass category_id (obtained from get_categories), sub_category_id, governorate (e.g. 'Sfax'), delegation (e.g. 'Hammam Chott'), min_price, and max_price to narrow results. Both endpoints return a top-level count so you can implement pagination without a separate call.

Ad Details and Seller Contact

Once you have an ad_id from either listing endpoint, pass it to get_ad_detail to get the full record. This response includes the seller's phone number, a publisher object with fullname, phonenumber, and email, a location object with governorate, delegation, and coordinates, and a parameters array of label/value pairs covering category-specific attributes (mileage for vehicles, surface area for real estate, etc.). The currency field is always DT (Tunisian Dinar), and metadata contains publish date and category info.

Shops and Categories

list_shops returns all active boutiques on the platform with no input required. Each shop object includes id, name, address, email, phone, category, description, and URLs for avatar and background images. get_categories returns both the main_categories array (each with a name and id) and a homepage_ads array of current featured listings. Use the category id values directly as the category_id parameter in list_ads to scope your queries.

Reliability & maintenanceVerified

The Tayara API is a managed, monitored endpoint for tayara.tn — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when tayara.tn changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official tayara.tn API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5d ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Aggregate vehicle listings from Tayara.tn using the Véhicules category ID and filter by governorate for a regional car-search tool
  • Build a price-tracking dashboard by polling list_ads with min_price/max_price filters and storing price changes over time
  • Extract seller phone numbers and emails from get_ad_detail to build a Tunisia-specific B2B leads dataset for a specific product category
  • Enumerate all active shops via list_shops to compile a directory of Tunisian e-commerce boutiques with contact details
  • Sync real estate listings filtered by delegation and category ID into a property portal that focuses on Tunisian governorates
  • Monitor keyword-based ad volume using search_ads counts over time to analyze supply/demand trends in a given market segment
  • Populate a category navigation from get_categories main_categories to let users drill into Tayara.tn data without hardcoding IDs
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Tayara.tn have an official developer API?+
Tayara.tn does not publish a documented public developer API. This Parse API provides structured access to the platform's listing data, seller contacts, shops, and categories.
How do I get a seller's phone number for a specific ad?+
Call get_ad_detail with the ad_id from a search_ads or list_ads result. The response includes a top-level phone field and a publisher object with phonenumber and email. The ad_id is a required parameter; there is no bulk-contact endpoint.
Does `list_ads` support filtering by both governorate and price range at the same time?+
Yes. list_ads accepts governorate, delegation, min_price, max_price, category_id, and sub_category_id as independent optional filters. You can combine any subset of them in a single request. Pagination is handled via limit and offset.
Does the API expose seller ratings or review history for shops and ad publishers?+
Not currently. The API covers shop contact details (name, address, phone, email, category) and publisher identity fields (fullname, phonenumber, email) but does not return rating scores or review text. You can fork this API on Parse and revise it to add an endpoint that retrieves review data if it becomes accessible.
Are ads outside Tunisia covered, or is coverage limited to the Tunisian market?+
Coverage is limited to Tayara.tn, which is a Tunisia-focused classifieds platform. Location fields like governorate and delegation reference Tunisian administrative divisions. The currency field is always DT (Tunisian Dinar). Listings from other countries are not part of this API.
Page content last updated . Spec covers 5 endpoints from tayara.tn.
Related APIs in MarketplaceSee all →
daraz.com.bd API
Search and browse products on Daraz Bangladesh to find items across any category. Retrieve detailed product information, explore category listings, and surface top-selling items — all from a single API.
tiendamia.com API
Search for products across multiple countries and vendors on Tiendamia, then access detailed product information, best sellers, outlet deals, and weekly promotions. Get real-time pricing and availability data to find the best deals across different markets.
daraz.pk API
Browse and extract product data from Daraz Pakistan (daraz.pk). Search products by keyword or category, retrieve full product details, explore the category tree, and list all products for a given seller.
tori.fi API
Search Finland's largest second-hand marketplace for listings across multiple categories, filter by specific items like refurbished phones, and retrieve detailed product information along with seller details. Access real-time data from Tori.fi to find used goods, compare prices, and contact sellers directly.
shpock.com API
Search and browse products listed on Shpock.com, view detailed listing information and seller profiles, and explore all available marketplace categories. Find what you're looking for by searching inventory, checking seller histories, and discovering related items from individual merchants.
torob.com API
Search for products and compare prices across thousands of sellers on Torob.com, with access to detailed product specs, seller information, and price history. Browse categories, discover similar items, and explore store inventories to find the best deals.
2ememain.be API
Search and browse listings on 2ememain.be, view detailed product information and seller profiles, and explore what items specific sellers have available. Filter by category, price, condition, and location to find listings across the marketplace — all with full seller details in one place.
avto.net API
Search and browse car listings from Slovenia's top automotive marketplace, then access detailed vehicle information including pricing, specifications, and seller details. Get comprehensive data on available cars to compare options and make informed purchasing decisions.