# Nöbetçi Eczane Scraper (Turkey Duty Pharmacies) (`dodoflix/eczane-scraper`) Actor

Scrape today's duty pharmacies (nobetci eczane) for all 81 Turkish provinces with district, address, phone and coordinates. Fast HTTP scraper, no browser.

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

## Pricing

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

## Nöbetçi Eczane Scraper (Turkey Duty Pharmacies)

Get today's duty pharmacies (nöbetçi eczane) for any Turkish province as clean JSON, CSV or Excel: pharmacy name, district, address, phone in international format, GPS coordinates and the exact duty hours. One request returns a whole province, 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

- **Power an app, bot or website.** Show people the open pharmacy near them at night or on holidays, with coordinates ready for a map.
- **Send daily alerts.** Schedule the Actor every morning and push the list to Slack, Telegram, email or a Google Sheet through the Integrations tab.
- **Map duty coverage.** Compare how many pharmacies are on duty per district and province, for health research, logistics or local news.
- **Keep an archive.** Store each day's list and build a history of which pharmacies took duty when.

### Quick start

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

**All duty pharmacies in Istanbul, Ankara and Izmir**

```json
{
    "cities": ["Istanbul", "Ankara", "Izmir"]
}
```

**Only some districts of Istanbul**

```json
{
    "cities": ["Istanbul"],
    "districts": ["Kadikoy", "Uskudar", "Besiktas"]
}
```

**All 81 provinces**

```json
{
    "allCities": true
}
```

### Input

| Field | What it does |
|---|---|
| `cities` | Province names such as `Istanbul`, `Ankara`, `Sanliurfa`. Turkish letters and case do not matter, so `İstanbul` and `istanbul` both work |
| `allCities` | Scrape all 81 provinces and ignore `cities` |
| `districts` | Keep only these districts. Leave empty for the whole province. A district without a duty pharmacy is named in the log, together with the districts the source lists for that province |
| `maxItems` | Stop the whole run after this many pharmacies |
| `maxConcurrency` | Pages fetched at once, 3 by default |
| `maxRequestsPerMinute` | Request speed, 60 by default. Each request fetches one province |
| `proxyConfiguration` | Off by default. Only needed if every page fails with HTTP 403 |

### Output

One item per pharmacy on duty. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the API.

```json
{
    "date": "2026-11-15",
    "city": "Ankara",
    "district": "Beypazarı",
    "neighborhood": null,
    "name": "Dilek Su Eczanesi",
    "address": "Hacikara Mah. Mevlevi Sok. No:7/B",
    "phone": "+903127631212",
    "latitude": 40.151972,
    "longitude": 31.907783,
    "dutyStart": "2026-11-15T05:30:00.000Z",
    "dutyEnd": "2026-11-16T05:30:00.000Z",
    "dutyHours": "08:30-08:30",
    "onCallOnly": false,
    "directions": "2Nolu Sağlık Ocağı civarı",
    "note": null,
    "sourceUrl": "https://nobetcieczane.org/ankara"
}
```

| Field | Meaning |
|---|---|
| `date` | The duty day (Istanbul time). A duty runs from this day until the next morning |
| `dutyStart`, `dutyEnd` | Duty window as UTC timestamps. `dutyHours` shows the same window in local clock times, for example `09:00-22:00`. When the end is earlier than the start, it is the next morning |
| `phone` | International format (`+90...`), or `null` when the source has no valid number |
| `latitude`, `longitude` | Coordinates, or `null` when the source has none or they fall outside Turkey |
| `onCallOnly` | `true` for pharmacies that serve by call (icap nöbeti) instead of staying open |
| `directions`, `note` | Free text from the source, such as "112 Acil karşısı" or "22:00'den sonra: ALİAĞA" (after 22:00 another pharmacy takes over). Some provinces put a mobile number in `directions` |
| `neighborhood` | The sub-area of the district when the source gives one |

Numbers are real numbers, missing values are `null`, never guesses.

### Pricing

You pay per result: **$0.80 per 1,000 pharmacies**. Platform usage is included, so there are no extra charges. All 81 provinces return about 1,300 pharmacies, so a full national snapshot costs about $1. A single city such as Ankara (around 50 pharmacies) costs about $0.04. You only pay for results you get, and you can cap spending on every run in the run options: the Actor stops cleanly when the cap is reached.

### Why this Actor

- **Coordinates and exact hours.** Not just name and phone: every pharmacy comes with latitude, longitude and its duty window, so you can map it or filter by time.
- **All provinces in one run.** A page holds a whole province, so the national list takes about a minute and a half.
- **Data you can use directly.** Phone numbers in `+90` format, ISO UTC timestamps, numeric coordinates.
- **Predictable cost.** One price per result with usage included.

### FAQ

**Is the list for today?** It is the current duty day of the source, which switches around 08:30 to 09:00 local time. Between midnight and that hour you still get the duty that started yesterday, and `date` and `dutyEnd` show it. Tomorrow's list is not offered: the only site that publishes it blocks automated requests.

**Why are some provinces empty?** The source publishes no list for a province on some days. When the test runs for this Actor were made, Adıyaman, Osmaniye and Zonguldak had none (78 of 81 provinces returned data). The log names every province without a list.

**Do I need a proxy?** No. It worked from a regular connection in tests. If every page returns HTTP 403 from your region, turn on a Turkish proxy in `proxyConfiguration`.

**Can I call the pharmacy or verify it is open?** Phone numbers are included. Always confirm by phone before travelling, since pharmacies can be closed for reasons the lists do not show.

**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/eczane-scraper').call({
    cities: ['Istanbul'],
    districts: ['Kadikoy'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also connects to Make, Zapier, Google Sheets, Slack and webhooks from the Integrations tab. Use the Schedules feature to run it every morning.

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

### Legal

This Actor collects public pharmacy listings (business names, addresses and business phone numbers). You are responsible for how you use the data, including KVKK/GDPR and the source site's terms and robots.txt.

### Türkçe özet

Türkiye'nin 81 ilindeki nöbetçi eczaneleri (eczane adı, ilçe, adres, telefon, koordinat ve nöbet saatleri) JSON, CSV veya Excel olarak indirin. Proxy ayarı gerekmez, fiyata platform kullanımı dahildir.

# Actor input Schema

## `cities` (type: `array`):

Province names such as Istanbul, Ankara, Izmir, Sanliurfa. Turkish letters and case do not matter.

## `allCities` (type: `boolean`):

Scrape every province and ignore the Cities list.

## `districts` (type: `array`):

Only keep these districts (for example Kadikoy, Cankaya). Leave empty for the whole province. A district that has no duty pharmacy is reported in the log with the districts the site lists.

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

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

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

Pages fetched at the same time. One page holds a whole province.

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

Request speed. One request is made per province, so 60 covers all 81 provinces in about 80 seconds.

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

Not needed in normal use. If the log shows HTTP 403 for every page, switch on Apify residential proxy with country Turkey.

## Actor input object example

```json
{
  "cities": [
    "Ankara"
  ],
  "allCities": false,
  "maxConcurrency": 3,
  "maxRequestsPerMinute": 60,
  "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 = {
    "cities": [
        "Ankara"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dodoflix/eczane-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 = {
    "cities": ["Ankara"],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

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