# ikman.lk Scraper (Sri Lanka Classifieds) (`flourishing_catfish/ikman-lk-scraper`) Actor

Scrape ikman.lk, the largest classifieds site in Sri Lanka: cars, property, phones, electronics. Price, location, category, details, dealer, photos, post time.

- **URL**: https://apify.com/flourishing_catfish/ikman-lk-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 ads

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

## ikman.lk Scraper — Sri Lanka Classifieds Data

Extract classified ads from **ikman.lk**, Sri Lanka's largest marketplace: vehicles, property, mobile phones, electronics, home & garden, jobs and more.

Search by keyword or paste any results URL with your own filters (category, city, price, brand). No login, no browser.

### What you get

| Field | Example |
|---|---|
| `title`, `url`, `id` | Toyota Premio G superior 2010 |
| `price`, `priceText`, `currency` | 9850000, "Rs 9,850,000", LKR |
| `details` | 135,009 km | Saloon | Used |
| `category`, `location` | Cars, Colombo |
| `shopName`, `isMember`, `membershipLevel`, `isVerified`, `isAuthorizedDealer` | dealer info |
| `postedAgo`, `bumpedAgo` | 17 days, just now |
| `image`, `images`, `imageCount` | full-size photo URLs |
| `isTopAd`, `isUrgent`, `freeDelivery`, `adType` | |

Export to JSON, CSV, Excel, Google Sheets, or use the API, Make, Zapier, n8n or MCP.

### Use cases

- **Used car prices** in Sri Lanka by model, year and mileage.
- **Property rent and sale prices** by city.
- **Phone and electronics resale prices.**
- **Dealer research** — which shops list the most, and where.
- **Daily monitoring** — schedule runs to catch new ads.

### Input

```json
{
  "searchQueries": ["toyota aqua", "iphone 15"],
  "startUrls": [{"url": "https://ikman.lk/en/ads/kandy/mobile-phones"}],
  "maxItemsPerSearch": 200
}
```

### Pricing

Pay per ad returned. Platform usage is included.

### Notes

Collects publicly visible listing data only; no phone numbers or personal contact details. Use the data in line with applicable laws and ikman.lk's terms.

### Sample output

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

```json
{
  "id": "6adf01ce3847bfc17110d91e",
  "title": "Toyota Aqua 2016 For Rent",
  "url": "https://ikman.lk/en/ad/toyota-aqua-2016-for-rent-for-sale-colombo-13",
  "price": 6000,
  "priceText": "Rs 6,000",
  "currency": "LKR",
  "category": "Rentals",
  "categoryId": 406,
  "location": "Colombo",
  "details": "",
  "adType": "for_sale",
  "shopName": "Telemarketing",
  "isMember": null,
  "membershipLevel": "free",
  "isVerified": false,
  "isAuthorizedDealer": null,
  "isTopAd": false,
  "isUrgent": true,
  "freeDelivery": false,
  "postedAgo": "bump_up",
  "bumpedAgo": "3 hours",
  "image": "https://i.ikman-st.com/toyota-aqua-2016-for-rent-for-sale-colombo-13/4816ef83-5a8c-4e96-8879-a18c4e2445b1/142/107/cropped.jpg",
  "imageCount": 5,
  "images": [
    "https://i.ikman-st.com/toyota-aqua-2016-for-rent-for-sale-colombo-13/4816ef83-5a8c-4e96-8879-a18c4e2445b1/620/466/fitted.jpg",
    "https://i.ikman-st.com/toyota-aqua-2016-for-rent-for-sale-colombo-13/45e10b05-fa59-4c28-b4a5-cce5a83e68d8/620/466/fitted.jpg",
    "https://i.ikman-st.com/toyota-aqua-2016-for-rent-for-sale-colombo-13/71e4938e-74ce-45e2-ac15-5a3e4967cc38/620/466/fitted.jpg"
  ],
  "country": "lk",
  "source": "https://ikman.lk/en/ads/sri-lanka?query=toyota+aqua",
  "page": 1,
  "position": 1,
  "scrapedAt": "2026-11-07T12:44:20.245873+00:00"
}
```

### How to use

1. Click **Try for free** (or Start).
2. Type keywords (e.g. `toyota aqua`, `iphone 13`, `land colombo`).
3. Set the maximum number of ads, 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 ads and price changes over time.

### How much does it cost?

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

| Ads | 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/ikman-lk-scraper").call(run_input={"searchQueries": ["toyota aqua"]})
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~ikman-lk-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"searchQueries": ["toyota aqua"]}'
```

### FAQ

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

**Is scraping ikman.lk 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

ikman.lk scraper, Sri Lanka classifieds data, vehicle prices Sri Lanka, Colombo property ads, used car prices

# Actor input Schema

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

Keywords, one per line.

## `startUrls` (type: `array`):

Any ikman.lk results page, e.g. https://ikman.lk/en/ads/colombo/cars (filters in the URL are kept).

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

Stop after this many ads for each search.

## `includeTopAds` (type: `boolean`):

Also return the paid 'top ads' shown above the results.

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

Usually not needed.

## Actor input object example

```json
{
  "searchQueries": [
    "toyota aqua"
  ],
  "maxItemsPerSearch": 20,
  "includeTopAds": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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": [
        "toyota aqua"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("flourishing_catfish/ikman-lk-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": [
    "toyota aqua"
  ]
}' |
apify call flourishing_catfish/ikman-lk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,flourishing_catfish/ikman-lk-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/d9d7LhDOcVpmHN7Ru/builds/Mx6lxZOiXwiHTLJQ6/openapi.json
