# CoinAfrique Cars Scraper (`dadhalfdev/coinafrique-cars-scraper`) Actor

Scrape car, moto, truck, and boat ads from CoinAfrique across Côte d'Ivoire, Senegal, Cameroon, and 9 other African countries.

- **URL**: https://apify.com/dadhalfdev/coinafrique-cars-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Stats:** 6 total users, 5 monthly users, 93.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 Cars Scraper

Want vehicle ads from [CoinAfrique](https://ci.coinafrique.com/categorie/voitures) 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 vehicle shelves that share the same fields (make, model, year, mileage, fuel, transmission): cars, motos, trucks, vehicle rentals, and boats. It covers 12 country portals and returns up to 2000 rows per run.

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

### 💡 Perfect for...

- **Dealers:** Export CoinAfrique car and moto ads with make, year, and mileage.
- **Dashboards:** Track prices in Abidjan, Dakar, Douala, Cotonou, and Lomé.
- **Market research:** Slice vehicles by make, fuel, mileage, 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 vehicle ads.
- **📚 RAG Systems:** Feed titles, makes, and specs 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 vehicle URL (`ci.coinafrique.com`, `sn.coinafrique.com`, and the other country portals), or pick a country, shelf, and make. `input_url` always wins when set. Names like Côte d'Ivoire, Voitures, Toyota, Essence, and Plus récent work. A search with no matching ads finishes successfully and returns nothing.
- 🎯 **Website-Matched Filters:** Country, vehicle shelf, make, model, city, keyword, mileage, fuel, transmission, price, sort, posting window, professional sellers, featured ads, and auto financing.
- 🌐 **Full vehicle ads:** Make, model, year, mileage, fuel, gearbox, 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`, `financing`, `image`, `images`, `description`, `seller`, `seller_url`, `seller_since`, `seller_listings`, `phone`, `email`, `brand`, `model`, `year`, `mileage_km`, `fuel`, `transmission`

### 🚀 Quick start

**Option A:** paste `https://ci.coinafrique.com/categorie/voitures`.
**Option B:** pick a country, shelf, and make, then set `max_results`.

**Input Example (filters):**

```json
{
  "country": "Côte d'Ivoire",
  "category": "Voitures",
  "brand": "Toyota",
  "city": "Abidjan",
  "fuel": "Essence",
  "sort": "Plus récent",
  "max_results": 100
}
```

**Input Example (URL):**

```json
{
  "input_url": "https://ci.coinafrique.com/categorie/voitures/toyota",
  "max_results": 100
}
```

**Output Example:**

```json
{
  "id": "6070040",
  "url": "https://ci.coinafrique.com/annonce/voitures/bmw-x3-2015-6070040",
  "title": "BMW X3 2015",
  "category": "Voitures",
  "price": 5500000,
  "price_text": "5 500 000 CFA",
  "currency": "XOF",
  "location": "Port-Bouet, Abidjan, Côte d'Ivoire",
  "city": "Port-Bouet, Abidjan",
  "country": "Côte d'Ivoire",
  "posted": "2026-10-02T09:30:21Z",
  "is_top_ad": false,
  "is_pro": false,
  "brand": "Bmw",
  "model": "x3",
  "year": 2015,
  "mileage_km": 150000,
  "fuel": "Essence",
  "transmission": "Automatique",
  "seller": "Amangoua Kacou Ange",
  "seller_since": "2022-07-20T12:50:29Z",
  "description": "Je brade ma bmw x3 2015 full options en hors taxe.",
  "image": "https://images.coinafrique.com/6070040_uploaded_image1_1790933423.jpg"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | CoinAfrique ad id. |
| `url` | Public ad page. |
| `title` | Ad title. |
| `category` | Vehicle shelf, such as Voitures or Motos & Scooters. |
| `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. |
| `financing` | Whether the ad offers auto financing. |
| `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. |
| `brand` / `model` | Make and model from the vehicle details. |
| `year` | Model year when the title states one. |
| `mileage_km` | Mileage in kilometres. |
| `fuel` / `transmission` | Fuel and gearbox from the vehicle details. |

### 📋 Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | CoinAfrique vehicle category, search, or ad URL. Overrides every filter. |
| `country` | string | No | Côte d'Ivoire | Côte d'Ivoire, Sénégal, Cameroun, Bénin, Togo, Burkina Faso, Mali, Guinée, Niger, RD Congo, Congo, Gabon. |
| `category` | string | No | Voitures | Voitures, Motos & Scooters, Camions & Bus, Location de véhicules, Bateaux. |
| `brand` | string | No | — | Make, such as Toyota. Leave empty for any. Used for cars, motos, and trucks. |
| `model` | string | No | — | Model name. |
| `city` | string | No | — | City, such as Abidjan. |
| `query` | string | No | — | Search keyword. |
| `mileage_max` | integer | No | — | Highest mileage in kilometres. |
| `fuel` | string | No | — | Essence, Gazoil, Petrol, or Diesel. Leave empty for any. Used for cars. |
| `transmission` | string | No | — | Manuelle, Automatique, Manual, or Automatic. Leave empty for any. Used for cars. |
| `price_min` / `price_max` | integer | No | — | Price range in local currency. |
| `sort` | string | No | Plus récent | Newest, highest price, or lowest price. |
| `posted_within` | string | No | — | 24 heures, 7 jours, or 30 jours. Leave empty for any time. |
| `is_pro` | boolean | No | false | Professional sellers only. |
| `is_top` | boolean | No | false | Featured ads only. |
| `financing` | boolean | No | false | Cars that offer financing. |
| `max_results` | integer | No | `50` | Maximum rows (`1`–`2000`). |

# Actor input Schema

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

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

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

Country portal. Names like Côte d'Ivoire, Senegal, and Cameroon work.

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

Cars, motos, trucks, vehicle rentals, or boats. Names like Voitures and Motos & Scooters work.

## `brand` (type: `string`):

Vehicle make, such as Toyota or Mercedes-Benz. Leave empty for any make. Used for cars, motos, and trucks.

## `model` (type: `string`):

Model name, such as Corolla or Hilux.

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

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

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

Search keyword.

## `mileage_max` (type: `integer`):

Highest mileage in kilometres. Used for cars, motos, and trucks.

## `fuel` (type: `string`):

Fuel type for cars. Essence, Gazoil, Petrol, and Diesel work. Leave empty for any.

## `transmission` (type: `string`):

Gearbox for cars. Manuelle, Automatique, Manual, and Automatic work. Leave empty for any.

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

Lowest price in local currency.

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

Highest price in local currency.

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

Plus récent, highest price, or lowest price.

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

Only ads from this window. 24 heures, 7 jours, and 30 jours work. Leave empty for any time.

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

Only ads from professional sellers.

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

Only featured ads.

## `financing` (type: `boolean`):

Only car ads that offer financing.

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

How many ads to return (1-2000).

## Actor input object example

```json
{
  "country": "Côte d'Ivoire",
  "category": "Voitures",
  "brand": "Toyota",
  "fuel": "Essence",
  "transmission": "Manuelle",
  "sort": "Plus récent",
  "posted_within": "7 jours",
  "is_pro": false,
  "is_top": false,
  "financing": false,
  "max_results": 50
}
```

# Actor output Schema

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

Table view of scraped car ads using the dataset overview.

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

All scraped car 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-cars-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-cars-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-cars-scraper --silent --output-dataset

```

## MCP server setup

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