# CoinAfrique Real Estate Scraper (`dadhalfdev/coinafrique-real-estate-scraper`) Actor

Scrape apartment, villa, land, and commercial property ads from CoinAfrique across Côte d'Ivoire, Senegal, Cameroon, and 9 other African countries.

- **URL**: https://apify.com/dadhalfdev/coinafrique-real-estate-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/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

## 🏠 CoinAfrique Real Estate Scraper

Want property ads from [CoinAfrique](https://ci.coinafrique.com/categorie/immobilier) in a spreadsheet? This scraper makes it easy.

Use **structured filters** — better for AI agents — **or** paste an **`input_url`**. When `input_url` is set it overrides the filters.

This actor stays on property shelves that share the same fields (offer, rooms, bathrooms, area): apartments, villas, land, buildings, offices, vacation homes, rooms, and farms. It covers 12 country portals and returns up to 2000 rows per run.

Vehicle and product ads live in separate actors, because those shelves use different filters and different columns.

### 💡 Perfect for...

- **Agencies:** Export CoinAfrique apartments and villas with rooms, bathrooms, and area.
- **Dashboards:** Track sale and rent prices in Abidjan, Dakar, Douala, Cotonou, and Lomé.
- **Market research:** Slice listings by city, offer type, rooms, or price across 12 countries.
- **Data analysts:** Export structured rows with seller, photos, and the public ad text.
- **🤖 AI Agents:** Power Claude, Cursor, Codex, the Hermes Agent, and OpenClaw workflows with live CoinAfrique property ads.
- **📚 RAG Systems:** Feed titles, locations, and property details into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste any CoinAfrique property URL (`ci.coinafrique.com`, `sn.coinafrique.com`, and the other country portals), or pick a country, property type, and offer. `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Country, property type, sale or rent, rooms, bathrooms, city, keyword, price, sort, posting window, professional sellers, and featured ads.
- 🌐 **Full property ads:** Offer, rooms, bathrooms, area, photos, seller, and description.

### 📦 What's inside the data?

`id`, `url`, `title`, `category`, `price`, `price_text`, `currency`, `location`, `city`, `country`, `posted`, `is_top_ad`, `is_pro`, `image`, `images`, `description`, `seller`, `seller_url`, `seller_since`, `seller_listings`, `phone`, `email`, `offer_type`, `rooms`, `bathrooms`, `area_m2`

### 🚀 Quick start

**Option A:** paste `https://ci.coinafrique.com/categorie/appartements`.
**Option B:** pick a country, property type, and offer, then set `max_results`.

**Input Example (filters):**

```json
{
  "country": "ci",
  "category": "appartements",
  "offer_type": "sell",
  "rooms": "3",
  "city": "Abidjan",
  "max_results": 100
}
```

**Input Example (URL):**

```json
{
  "input_url": "https://sn.coinafrique.com/categorie/immobilier",
  "max_results": 100
}
```

**Output Example:**

```json
{
  "id": "6076402",
  "url": "https://ci.coinafrique.com/annonce/appartements/vente-appartements-3-pieces-cocody-faya-6076402",
  "title": "Vente appartements 3 pièces - Cocody faya",
  "category": "Appartements",
  "price": 42000000,
  "price_text": "42 000 000 CFA",
  "currency": "XOF",
  "location": "Cocody, Abidjan, Côte d'Ivoire",
  "city": "Cocody, Abidjan",
  "country": "Côte d'Ivoire",
  "posted": "2026-10-08T19:20:09Z",
  "offer_type": "Vente",
  "rooms": 3,
  "bathrooms": 2,
  "area_m2": 140,
  "seller": "Cissé cheick",
  "seller_since": "2023-12-20T10:44:38Z",
  "description": "en vente cocody riviera faya 1tres bel appartement de 3pces dont toutes les chambres sont autonomes avec wc visiteur",
  "image": "https://images.coinafrique.com/6056678_uploaded_image1_1789721751.jpg"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | CoinAfrique ad id. |
| `url` | Public ad page. |
| `title` | Ad title. |
| `category` | Property type, such as Appartements, Villas, or Terrains. |
| `price` | Numeric price when stated. |
| `price_text` | Formatted price string from the card. |
| `currency` | Local currency code (`XOF`, `XAF`, `GNF`, `USD`). |
| `location` / `city` / `country` | Full location, city or district, and country name. |
| `posted` | Date and time the ad was posted, in UTC. |
| `is_top_ad` | Whether the ad has a featured badge. |
| `is_pro` | Whether the seller has a professional shop badge. |
| `image` / `images` | Cover photo, and the full photo gallery. |
| `description` | Ad text. |
| `seller` / `seller_url` / `seller_since` / `seller_listings` | Seller name, profile, date the seller joined (UTC), and number of ads. |
| `phone` / `email` | Contact details shown on the ad. |
| `offer_type` | Vente, Location, or Colocation when the title says so. |
| `rooms` | Number of rooms. |
| `bathrooms` | Number of bathrooms. |
| `area_m2` | Floor or land area in square metres. |

### 📋 Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | CoinAfrique property category, search, or ad URL. Overrides every filter. |
| `country` | dropdown | No | ci | Côte d'Ivoire, Sénégal, Cameroun, Bénin, Togo, Burkina Faso, Mali, Guinée, Niger, RD Congo, Congo, Gabon. |
| `category` | dropdown | No | immobilier | Immobilier, Appartements, Villas, Terrains, Immeubles, Bureaux & Commerces, Maisons de vacances, Chambres, Terrains agricoles, Appartements meublés, Fermes & Vergers. |
| `offer_type` | dropdown | No | any | Vente, Location, or Colocation. |
| `rooms` | dropdown | No | any | Minimum rooms. `4` means 4 or more. |
| `bathrooms` | dropdown | No | any | Minimum bathrooms. `4` means 4 or more. |
| `city` | string | No | — | City, such as Abidjan. |
| `query` | string | No | — | Search keyword. |
| `price_min` / `price_max` | integer | No | — | Price range in local currency. |
| `sort` | dropdown | No | Plus récent | Newest, highest price, or lowest price. |
| `posted_within` | dropdown | No | any | 24 hours, 7 days, or 30 days. |
| `is_pro` | boolean | No | false | Professional sellers only. |
| `is_top` | boolean | No | false | Featured ads only. |
| `max_results` | integer | No | `50` | Maximum rows (`1`–`2000`). |

# Actor input Schema

## `input_url` (type: `string`):

Paste a CoinAfrique property category, search, or ad URL (e.g. https://ci.coinafrique.com/categorie/appartements). Overrides every filter when set.

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

CoinAfrique country portal.

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

All property, or a property type such as apartments, villas, or land.

## `offer_type` (type: `string`):

Sale, rent, or shared housing.

## `rooms` (type: `string`):

Minimum number of rooms. 4 means 4 or more.

## `bathrooms` (type: `string`):

Minimum number of bathrooms. 4 means 4 or more.

## `city` (type: `string`):

City name as shown on the site, such as Abidjan or Dakar.

## `query` (type: `string`):

Search keyword.

## `price_min` (type: `integer`):

Lowest price in local currency.

## `price_max` (type: `integer`):

Highest price in local currency.

## `sort` (type: `string`):

Same sort options as the property results.

## `posted_within` (type: `string`):

Only ads posted within this window.

## `is_pro` (type: `boolean`):

Only ads from professional sellers.

## `is_top` (type: `boolean`):

Only featured ads.

## `max_results` (type: `integer`):

How many ads to return (1-2000).

## Actor input object example

```json
{
  "country": "ci",
  "category": "immobilier",
  "offer_type": "",
  "rooms": "",
  "bathrooms": "",
  "sort": "last",
  "posted_within": "",
  "is_pro": false,
  "is_top": false,
  "max_results": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped property ads using the dataset overview.

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

All scraped property ads from the default dataset.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/coinafrique-real-estate-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/coinafrique-real-estate-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 '{}' |
apify call dadhalfdev/coinafrique-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/coinafrique-real-estate-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/IdrktTuTTUVFwatup/builds/jVC8Wtg3OGl9FzTRr/openapi.json
