# Turkey Public Tenders Scraper (İhale) (`dodoflix/ihale-scraper`) Actor

Search Turkish public tender notices (ihale ilanları) by keyword, province, tender type, authority and date. Returns the IKN number, buyer, dates and notice text. Fast HTTP scraper, no browser.

- **URL**: https://apify.com/dodoflix/ihale-scraper.md
- **Developed by:** [Doğukan Metan](https://apify.com/dodoflix) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.08 / 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

## Turkey Public Tenders Scraper (İhale)

Get Turkish public tender notices (ihale ilanları) from the official notice portal [ilan.gov.tr](https://www.ilan.gov.tr) as clean JSON, CSV or Excel: the IKN registry number, the buying authority, province, tender kind and procedure, the publication date, the exact bid opening time in UTC and the full notice text. Runs on plain HTTP, so it is fast and cheap. No proxy setup and no code needed, and the price already includes platform usage.

### What you can do with it

- **Find tenders for your business.** Search keywords such as akaryakıt, yazılım, ambulans or temizlik, and narrow them by province, kind and publication date.
- **Get a daily tender alert.** Schedule the Actor with "Only new notices" and receive only tenders you have not seen yet, ready for Slack, email or a spreadsheet.
- **Track a buyer.** List every open tender of a municipality, hospital or ministry unit by its name or authority code.
- **Watch deadlines.** Filter by tender date to see only tenders that are still open, with the bid opening time in UTC.
- **Follow one tender.** Look up an IKN number to get the original notice, its corrections (zeyilname) and a cancellation.

### Quick start

Open the Input tab, type a keyword and press Start. Or pick one of these:

**Fuel tenders in Ankara**

```json
{
    "keywords": ["akaryakıt"],
    "provinces": ["Ankara"],
    "maxItems": 50
}
```

**Construction tenders in İstanbul and İzmir that are still open**

```json
{
    "tenderKinds": ["works"],
    "provinces": ["İstanbul", "İzmir"],
    "tenderFrom": "2026-11-16",
    "maxItems": 100
}
```

**Everything one authority is buying**

```json
{
    "authorities": ["Talas Belediye"]
}
```

**New tenders since the last run, for a daily schedule**

```json
{
    "keywords": ["yazılım", "bilgisayar"],
    "onlyNew": true,
    "stateKey": "it-tenders"
}
```

### Input

| Field | What it does |
|---|---|
| `keywords`, `keywordScope` | Words to search, in the title only or in the whole notice. Each keyword is searched on its own and the results are merged without duplicates |
| `ikn` | Registry numbers (İhale Kayıt Numarası) such as `2026/2243759` |
| `provinces` | Turkish names or plate numbers of the authority's province |
| `tenderKinds` | `goods`, `services`, `works`, `lease`, `sale`, `funded`, `correction`, `cancellation`. Empty means all |
| `authorities` | Authority names (or part of a name) or codes such as `M006096` |
| `publishedFrom`, `publishedTo` | Publication date range (YYYY-MM-DD) |
| `tenderFrom`, `tenderTo` | Bid opening date range (YYYY-MM-DD) |
| `includeDetails` | On by default: opens each notice for the exact time, authority code and address, links and text. Off gives a faster list-only run |
| `onlyNew`, `stateKey` | Skip notices returned by earlier runs with the same key |
| `maxItems`, `maxItemsPerSearch` | Stop the run, or each keyword search, after this many tenders |
| `maxConcurrency`, `maxRequestsPerMinute` | Request speed. The defaults are kept low on purpose (see Limits) |
| `proxyConfiguration` | Optional. No proxy is needed by default |

### Output

Each result is one notice. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the API.

```json
{
    "noticeId": "2277995",
    "noticeNo": "ILN02586643",
    "ikn": "2026/2176088",
    "title": "Akaryakıt satın alınacaktır",
    "authority": "AKYURT BELEDİYE BAŞKANLIĞI",
    "province": "Ankara",
    "district": "Akyurt",
    "kind": "goods",
    "tenderType": "Mal Alımı",
    "procedure": "4734 Sayılı KİK, Açık İhale Usulü",
    "category": "Petrol Ürünleri, Akaryakıt ve Madeni Yağ Alımları",
    "publishedAt": "2026-11-05T21:00:00.000Z",
    "tenderDate": "2026-12-01",
    "tenderAt": "2026-12-01T07:00:00.000Z",
    "url": "https://www.ilan.gov.tr/ilan/2277995/ihale-duyurulari-mal-alim-ihaleleri-akaryakit-satin-alinacaktir",
    "authorityCode": "M004017",
    "authorityAddress": "BEYAZIT MAHALLESI 9 MAYIS 90 CD. NO:34 AKYURT/ANKARA",
    "documentUrls": ["https://ekap.kik.gov.tr/EKAP/"],
    "text": "AKARYAKIT SATIN ALINACAKTIR\nAKARYAKIT ALIMI mal alımı 4734 sayılı Kamu İhale Kanununun 19 uncu maddesine göre açık ihale usulü ile ihale edilecektir.\n..."
}
```

- `ikn` is the tender registry number. It is `null` for notices that are not under Law 4734 (for example 2886 property tenders and some exempt tenders), which have no IKN.
- Dates are ISO timestamps in UTC. The site publishes Istanbul time (UTC+3), which is converted for you. `tenderDate` is the local calendar date, and `tenderAt` is the exact opening time when the notice states one, otherwise `null`.
- With `includeDetails` off, `tenderAt`, `authorityCode`, `authorityAddress`, `documentUrls` and `text` are `null`, because only the notice page has them.
- `documentUrls` lists the links found in the notice. For most tenders that is the EKAP page where bidders download the tender documents after signing in; the portal does not publish the documents themselves.
- A tender can have several notices (the original, corrections and a cancellation). Each notice is one result with its own `noticeId`, and they share the `ikn`.

### Pricing

You pay per result: **$1.20 per 1,000 results**. Platform usage is included, so there are no extra charges. For example, 5,000 tenders cost about $6. You only pay for results you get, and a run that finds nothing costs almost nothing.

You can cap spending on every run in the run options. The Actor stops cleanly when the cap is reached.

### Why this Actor

- **Filters that match how buyers search.** Province, kind, authority, publication date and bid date, not only keywords.
- **Alerts built in.** "Only new notices" turns any search into a daily feed.
- **Exact deadlines.** The bid opening time in UTC, plus the authority's code and address and the full notice text.
- **Predictable cost.** One price per result with usage included.

### Limits

- The data comes from ilan.gov.tr, the official portal where Law 4734 tenders are announced. It lists notices that are still published, roughly the last month (about 3,500 tenders at a time). It is not an archive of past years.
- The documents of a tender are on EKAP behind a sign-in with an e-signature. EKAP's own tender search asks for human verification, so this Actor does not read it.
- The site is rate limited and sometimes stops answering for a few minutes. The Actor goes slowly by default (2 requests at a time, 120 per minute), waits and retries when the site pushes back, and honors a Retry-After. A run with details on takes about one request per tender, so around 10 minutes per 1,000 tenders. A proxy does not raise the limit, so leave the speed settings alone.

### FAQ

**Do I need a proxy?** No. Leave the proxy setting as is.

**Why is `ikn` empty on some tenders?** Only tenders under Law 4734 have a registry number. Other notices, such as property sales under Law 2886, do not.

**Why did I get fewer results than I set?** Fewer tenders matched, the site lists only the current notices, or `maxItems` ended the run first.

**Can it read private or logged-in content?** No. Only notices anyone can open on the portal.

**Can I use it from code?**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('dodoflix/ihale-scraper').call({
    keywords: ['akaryakıt'],
    provinces: ['Ankara'],
    maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also connects to Make, Zapier, Google Sheets, Slack and webhooks from the Integrations tab.

**Something broke or a field is missing.** Open an issue on the Issues tab with the input you used.

### Legal

This Actor collects public notices published by public authorities. You are responsible for how you use the data, including KVKK/GDPR and the site's terms and robots.txt.

### Türkçe özet

Kamu ihale ilanlarını (ilan.gov.tr) anahtar kelime, il, ihale türü, idare ve tarihe göre arayın; İKN numarası, idare, ihale tarihi ve ilan metnini JSON, CSV veya Excel olarak indirin. Proxy ayarı gerekmez.

# Actor input Schema

## `keywords` (type: `array`):

Words to look for, in Turkish or English letters (for example akaryakıt, yazılım, ambulans). Each keyword is searched on its own and the results are merged without duplicates.

## `keywordScope` (type: `string`):

Where the keywords are looked up: the title only gives fewer, more precise results than the whole notice text.

## `ikn` (type: `array`):

Look up tenders by their registry number (İhale Kayıt Numarası), written like 2026/2243759. A tender can have several notices: the original, corrections and a cancellation.

## `provinces` (type: `array`):

Province of the buying authority: the Turkish name (İstanbul, Ankara, Şanlıurfa) or the plate number (34, 06). Leave empty for all of Turkey.

## `tenderKinds` (type: `array`):

Only these kinds of notice. Leave empty for all of them.

## `authorities` (type: `array`):

Name of the buying authority or part of it (for example Talas Belediye, Milli Savunma, Devlet Hastanesi), or its code (M006096). Every authority whose name contains the text is included, up to 25 per entry. Each authority is searched separately.

## `publishedFrom` (type: `string`):

Only notices published on or after this date (YYYY-MM-DD). The site lists notices from roughly the last month.

## `publishedTo` (type: `string`):

Only notices published on or before this date (YYYY-MM-DD).

## `tenderFrom` (type: `string`):

Only tenders whose bid opening is on or after this date (YYYY-MM-DD). Use today's date to skip tenders that are already closed.

## `tenderTo` (type: `string`):

Only tenders whose bid opening is on or before this date (YYYY-MM-DD).

## `includeDetails` (type: `boolean`):

Open every notice to add the exact tender time, the authority code and address, document links and the full notice text. Turn it off for a faster, list-only run.

## `onlyNew` (type: `boolean`):

Skip notices returned by earlier runs with the same state key. Use it for a daily alert on a schedule.

## `stateKey` (type: `string`):

Name of the list of notices already seen, used by 'Only new notices'. Give each saved search its own key.

## `maxItems` (type: `integer`):

Stop the whole run after this many tenders. Leave empty for no limit.

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

Stop each keyword (or IKN) search after this many tenders.

## `maxConcurrency` (type: `integer`):

Requests in flight at the same time. The site answers a few at a time without errors, so keep this low.

## `maxRequestsPerMinute` (type: `integer`):

Request speed. One request lists 20 notices and one more is needed per notice when details are on.

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

The site answers plain requests from datacenter IPs, so no proxy is needed by default. Choose Apify Proxy with country TR only if you see 403 errors.

## Actor input object example

```json
{
  "keywords": [
    "akaryakıt"
  ],
  "keywordScope": "all",
  "includeDetails": true,
  "onlyNew": false,
  "stateKey": "default",
  "maxItems": 20,
  "maxItemsPerSearch": 500,
  "maxConcurrency": 3,
  "maxRequestsPerMinute": 300,
  "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 = {
    "keywords": [
        "akaryakıt"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dodoflix/ihale-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 = {
    "keywords": ["akaryakıt"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dodoflix/ihale-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 '{
  "keywords": [
    "akaryakıt"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dodoflix/ihale-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dodoflix/ihale-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/fZZYkQTx5HnfkJSNB/builds/3Pn0BecABHjT1sJFp/openapi.json
