# Preply Scraper · Tutors, Prices, Ratings & Reviews (`memo23/preply-scraper`) Actor

Scrape Preply tutors by subject or search link with country, price, native-speaker and Super Tutor filters. Get lesson and trial prices, ratings, lessons taught, languages with levels, plus full profiles with education, certificates and student reviews. Reads past the 990-tutor limit.

- **URL**: https://apify.com/memo23/preply-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (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.00 / 1,000 tutors

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

## Preply Scraper · Tutors, Prices, Ratings & Reviews

Turn Preply subjects, tutor search links or tutor profiles into clean tutor rows: lesson and trial prices, rating and review count, lessons taught, active students, country, spoken languages with levels, badges and teaching styles. Turn on full profiles to add the complete bio, education, work history, certificates, specialties with the tutor's own notes, lesson ratings, the star distribution and student reviews with the tutor's replies.

| Input | Rows you get |
|---|---|
| Subject (`subjects`) | Tutors for that subject, with your filters applied |
| Tutor search link (`/en/online/english-tutors?…`) | The tutors behind that search, with the filters you set on Preply |
| Tutor profile link (`/en/tutor/1166868`) | One tutor with the full profile and reviews |

![How the Preply Scraper works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/preply-how-it-works.png)

***

### Why Use This Scraper?

- ✅ Searches by subject with Preply's own filters: country of birth, price range, native speakers, Super Tutors, professional tutors, other languages spoken, availability and keyword
- ✅ Goes past the 990 tutors Preply shows for one search, so a whole subject can be collected
- ✅ Prices as numbers in 13 currencies, with the US-dollar price on every row for comparison
- ✅ Every language a tutor speaks with its level (A1 to C2, native)
- ✅ Activity numbers for each tutor: lessons taught, active students, lessons booked in the last 48 hours, years of experience
- ✅ Full profiles with verified education and certificates, work history, specialties and Preply's summary of strengths and teaching style
- ✅ Student reviews with rating, date, the reviewer's lesson count and learning goal, and the tutor's reply
- ✅ One row per tutor, even when a tutor turns up in several of your searches

***

### Overview

The Preply Scraper is built for language schools and tutoring companies recruiting teachers, edtech teams pricing their own lessons, researchers studying the online tutoring market and marketplaces benchmarking against Preply.

The dataset is one row per tutor. Rows from a search already carry the tutor card: price, trial price, rating, reviews, lessons, students, country, languages, badges, a bio excerpt and a featured review. With **Full tutor profiles** on, the scraper also opens each tutor's profile and the same row gains the full bio, join date, response time, education, work experience, certificates, specialties, lesson ratings, star distribution, Preply's summary and up to **Reviews per tutor** reviews.

***

### Supported Inputs

#### Subjects

Write each subject as it appears in a Preply link: `english`, `spanish`, `french`, `german`, `italian`, `japanese`, `chinese`, `arabic`, `math`, `chemistry`, `physics`, `music`, `programming` and the other subjects Preply lists.

```json
{ "subjects": ["spanish", "french"], "countryOfBirth": ["AR", "MX"], "maxItems": 200 }
```

#### URL types

| Type | Example |
|---|---|
| Tutor search | `https://preply.com/en/online/spanish-tutors` |
| Tutor search with filters | `https://preply.com/en/online/english-tutors?CoB=GB&additional=native&sort=popularity` |
| Tutor profile | `https://preply.com/en/tutor/1166868` |
| Profile in another language | `https://preply.com/pt/professor/1166868` |

#### Copy-pasteable startUrls

```json
{
    "startUrls": [
        { "url": "https://preply.com/en/online/english-tutors?CoB=GB" },
        { "url": "https://preply.com/en/tutor/1166868" }
    ],
    "maxItems": 100
}
```

#### Unsupported inputs

Links outside preply.com are skipped with a warning, and so are Preply pages that are not tutor searches or profiles (blog, business, tutor sign-up). Group classes and the logged-in student area are not covered.

***

### Use Cases

| Who | What they do with it |
|---|---|
| Language schools and agencies | Build recruiting lists of experienced, well-rated tutors by language, country and price |
| Edtech and tutoring startups | Benchmark lesson and trial prices by subject, country and tutor level |
| Market researchers | Measure supply, prices and ratings across subjects and countries |
| Tutors | See how comparable tutors price, describe and position their lessons |
| Recruiters and HR teams | Find teachers with verified degrees and certificates for corporate language programs |
| Data and AI teams | Collect bios, specialties and reviews for matching models and sentiment analysis |

***

### How It Works

1. Give subjects, Preply links, or both. Filters apply to the subjects.
2. The scraper reads each tutor search page by page, ten tutors a page, until it reaches **Max tutors** or the end of the search.
3. When a search holds more than 990 tutors and you asked for more, it reads the search in price and country slices so the whole set is reachable.
4. With **Full tutor profiles** on, it opens each tutor's profile and adds that data to the same row. Profile links you paste always get the full profile.
5. Rows land in the dataset as they are scraped; download them as JSON, CSV, Excel or through the API.

***

### Input Configuration

#### Input fields

| Field | Type | Default | Description |
|---|---|---|---|
| `subjects` | array of strings | – | Subjects to search, as written in Preply links (`spanish`, `math`) |
| `startUrls` | array | – | Tutor search links or tutor profile links |
| `maxItems` | integer | 100 | Tutors to return across all inputs |
| `scrapeDetails` | boolean | false | Open each profile for bio, education, certificates, specialties, ratings and reviews |
| `maxReviewsPerTutor` | integer | 10 | Reviews kept per tutor when full profiles are on; 0 keeps none |
| `countryOfBirth` | array of strings | – | Two-letter codes of the tutor's country, e.g. `AR`, `ES` |
| `minPrice` | integer | – | Lowest lesson price, in US dollars |
| `maxPrice` | integer | – | Highest lesson price, in US dollars |
| `nativeSpeaker` | boolean | false | Native speakers only |
| `superTutorOnly` | boolean | false | Super Tutors only |
| `certifiedOnly` | boolean | false | Tutors with a verified teaching certificate only |
| `alsoSpeaks` | array of strings | – | Language codes the tutor must also speak, e.g. `en` |
| `availabilityDays` | array | – | Days with free lesson times: `mon` to `sun` |
| `availabilityTimes` | array | – | Time slots: `MORNING` (6-9), `MORNING_LATE` (9-12), `AFTERNOON` (12-15), `AFTERNOON_LATE` (15-18), `EVENING` (18-21), `EVENING_LATE` (21-24), `NIGHT` (0-3), `NIGHT_LATE` (3-6) |
| `searchText` | string | – | Words to look for in tutor profiles |
| `sortBy` | string | `popularity` | `popularity`, `relevance` (Preply's ranking), `price_lowest`, `price_highest`, `reviews`, `rating` |
| `currency` | string | `USD` | `USD`, `EUR`, `GBP`, `CAD`, `AUD`, `CHF`, `PLN`, `UAH`, `TRY`, `BRL`, `MXN`, `INR`, `JPY` |
| `splitLargeSearches` | boolean | true | Read searches above 990 tutors in slices |
| `maxConcurrency` | integer | 6 | Pages loaded at the same time |

#### Common scenarios

Native Spanish tutors from Argentina and Mexico under $25, cheapest first:

```json
{
    "subjects": ["spanish"],
    "countryOfBirth": ["AR", "MX"],
    "maxPrice": 25,
    "nativeSpeaker": true,
    "sortBy": "price_lowest",
    "maxItems": 300
}
```

Recruiting list with full profiles and the five newest reviews:

```json
{
    "subjects": ["english"],
    "superTutorOnly": true,
    "certifiedOnly": true,
    "scrapeDetails": true,
    "maxReviewsPerTutor": 5,
    "maxItems": 100
}
```

Every German tutor, prices in euros:

```json
{ "subjects": ["german"], "maxItems": 20000, "currency": "EUR" }
```

***

### Output Overview

One row per tutor. Card fields are always present; profile fields appear when **Full tutor profiles** is on or the input was a profile link.

| Group | Fields |
|---|---|
| Tutor | `tutorId`, `url`, `name`, `firstName`, `headline`, `subjects`, `countryOfBirth`, `countryCode`, `avatarUrl`, `videoIntroUrl`, `userId` |
| Price | `price`, `trialLessonPrice`, `currency`, `priceUsd` |
| Ratings and activity | `rating`, `reviewCount`, `totalLessons`, `activeStudents`, `lessonsBookedLast48h`, `recentLeads`, `yearsOfExperience` |
| Status | `isSuperTutor`, `isProfessionalTutor`, `isVerified`, `teachingType`, `badges`, `teachingStyles`, `focusAreas`, `timezone`, `isOnline`, `lastSeen` |
| Languages | `spokenLanguages` \[{`language`, `code`, `level`, `levelCode`}] |
| Card text | `bioSnippet`, `studentsSay`, `featuredReview` |
| Profile | `bio`, `joinedAt`, `lastSeenAt`, `yearsOnPreply`, `responseTimeHours`, `hasAvailability`, `education`, `workExperience`, `certificates`, `specialties` |
| Profile ratings | `lessonRatings`, `ratedLessons`, `ratingDistribution`, `aiSummary`, `topTutorBadge`, `retentionTier`, `typicalLessonsPerStudent`, `learnerHighlights` |
| Reviews | `reviews` \[{`reviewId`, `rating`, `text`, `date`, `language`, `edited`, `reviewerName`, `reviewerLessons`, `reviewerGoal`, `reviewerLastLessonAt`, `tutorReply`}], `reviewsAvailable`, `reviewsScraped` |
| Where it was found | `searchSubject`, `sourceUrl`, `searchPosition`, `detailsScraped`, `detailsError`, `scrapedAt` |

***

### Output Samples

Search row (subject `spanish`, prices in EUR, shortened):

```json
{
    "tutorId": "6457087",
    "url": "https://preply.com/en/tutor/6457087",
    "name": "Morel R.",
    "headline": "Native Spanish teacher, polyglot. Specialized in Latin American and Argentine culture.",
    "subjects": ["Spanish"],
    "countryOfBirth": "Argentina",
    "countryCode": "AR",
    "price": 21.84,
    "trialLessonPrice": 11,
    "currency": "EUR",
    "priceUsd": 24,
    "rating": 5,
    "reviewCount": 9,
    "totalLessons": 559,
    "activeStudents": 12,
    "lessonsBookedLast48h": 1,
    "yearsOfExperience": 5,
    "isSuperTutor": true,
    "isProfessionalTutor": false,
    "teachingType": "CONVERSATIONAL",
    "spokenLanguages": [
        { "language": "English", "code": "en", "level": "Native speaker", "levelCode": "Native" },
        { "language": "Italian", "code": "it", "level": "Advanced", "levelCode": "C1" },
        { "language": "Spanish", "code": "es", "level": "Native speaker", "levelCode": "Native" }
    ],
    "badges": ["Super Tutor", "Speaks English", "Active and engaged"],
    "teachingStyles": ["Adaptable", "Engaging"],
    "featuredReview": {
        "author": "Shan",
        "text": "Morel is an amazing tutor who can inspire you through your own interests in Spanish!…",
        "date": "2025-08-12T16:33:12.798422+00:00"
    },
    "timezone": "America/Argentina/Buenos_Aires",
    "lastSeen": "Last seen 1 day(s) ago",
    "detailsScraped": false,
    "searchSubject": "spanish",
    "searchPosition": 3
}
```

Profile row (profile link `https://preply.com/pt/professor/197633`, shortened):

```json
{
    "tutorId": "197633",
    "name": "Arman A.",
    "price": 50,
    "currency": "USD",
    "rating": 4.98,
    "reviewCount": 476,
    "joinedAt": "2019-11-15T19:51:32+00:00",
    "yearsOnPreply": 6,
    "responseTimeHours": 0.74,
    "education": [
        { "institution": "The Open University (UK)", "degree": "BA (Honours) English Language and Literature (2:1)", "years": "2017 — 2020", "verified": true }
    ],
    "certificates": [
        { "name": "Cambridge CELTA", "description": "Cambridge English Level 5 Certificate in Teaching English to Speakers of Other Languages (CELTA)", "years": "2020 — 2020", "verified": true },
        { "name": "DELTA", "description": "Diploma in English Language Teaching to Adults", "years": "2020 — 2020", "verified": true }
    ],
    "specialties": [
        { "name": "IELTS", "description": "A 25 minute trial lesson is usually enough to discuss what to expect during the 12 lesson writing and speaking course…" },
        { "name": "British English", "description": "I was born and raised in England." }
    ],
    "lessonRatings": { "reassurance": 4.8, "clarity": 4.8, "progress": 4.8, "preparation": 4.8 },
    "ratedLessons": 174,
    "ratingDistribution": { "1": 2, "2": 0, "3": 0, "4": 2, "5": 472 },
    "aiSummary": {
        "strengths": "Arman, a former IELTS examiner, has over 11 years of experience and multiple advanced teaching certifications…",
        "teachingStyle": "He employs structured lessons with interactive tasks…",
        "studentsFeedback": "Students say Arman is an effective tutor who transforms their understanding of IELTS requirements."
    },
    "topTutorBadge": "TOP_5",
    "reviews": [
        {
            "reviewId": "3117853",
            "rating": 5,
            "text": "I highly recommend Arman! He is an excellent teacher with very effective methods and a personalized approach…",
            "date": "2026-11-02T14:44:59.912064+00:00",
            "language": "en",
            "edited": false,
            "reviewerName": "Simon",
            "reviewerLessons": 15,
            "reviewerGoal": "education",
            "reviewerLastLessonAt": "2026-10-18T11:00:00+00:00",
            "tutorReply": { "text": "Fantastic! Incredible work!!!!", "date": "2026-11-03T22:26:04.672641+00:00" }
        }
    ],
    "reviewsAvailable": 476,
    "reviewsScraped": 2,
    "detailsScraped": true,
    "sourceUrl": "https://preply.com/en/tutor/197633"
}
```

***

### Key Output Fields

#### Price

`price` is the price of a standard lesson and `trialLessonPrice` the trial lesson, both in `currency`. `priceUsd` converts the lesson price at Preply's own rate, so rows in different currencies can be compared.

#### Ratings and activity

`rating` and `reviewCount` are the student reviews. `totalLessons`, `activeStudents` and `lessonsBookedLast48h` show how busy a tutor is. `lessonRatings` (profile) breaks lesson feedback down into reassurance, clarity, progress and preparation.

#### Languages

`spokenLanguages` lists every language with Preply's level label and code. `levelCode` is `A1` to `C2` or `Native`.

#### Profile

`education` and `certificates` carry `verified: true` when Preply checked the document. `specialties` are the tutor's own areas, each with the tutor's description. `responseTimeHours` is how long the tutor usually takes to answer a new student.

#### Reviews

`reviews` keeps up to **Reviews per tutor** reviews, newest first. `reviewsAvailable` is how many the tutor has, `reviewsScraped` how many are on the row.

#### Where it was found

`searchSubject` or `sourceUrl` tells you which input a tutor came from. `searchPosition` is the tutor's rank in that search when the search was read in one piece.

***

### FAQ

#### How do I write a subject?

As it appears in Preply's link for that subject: `https://preply.com/en/online/spanish-tutors` is `spanish`. For anything unusual, set the search up on Preply and paste the link instead.

#### Why do I get fewer tutors than Preply's total?

Preply shows at most 990 tutors for one search. With **Go past 990 tutors per search** on (the default), larger searches are read in price and country slices. Preply's order also shifts a little from one page load to the next, so the scraper reads a slice again while that still finds new tutors. In a test on the music subject, a run returned 1,540 of the 1,548 tutors Preply listed, in about 6 minutes. Preply's total also counts tutors who stop showing in search during the run.

#### Do the filters apply to my links?

No. Filters apply to the subjects. A pasted search link keeps the filters it was copied with.

#### What currency are prices in?

The one you pick under **Price currency** (US dollars by default). `priceUsd` is always in US dollars. Price filters are always in US dollars.

#### Why are `bio`, `education` and `reviews` empty?

They come from the tutor's profile. Turn on **Full tutor profiles**, or paste profile links, which always get the full profile.

#### Why does a row have `detailsError`?

The profile could not be loaded during the run. The row keeps the search data and is not billed as a full profile.

#### How many reviews can I get?

Up to 2,000 per tutor, which covers nearly every tutor's full review history. Reviews are included in the profile price.

#### Can it scrape tutor contact details or schedules?

No. Preply does not show tutor emails or phone numbers, and the booking calendar is not included. `hasAvailability` says whether the tutor has free times.

***

### Support

Found a bug or need a field that is not there? Open an issue on the actor's **Issues** tab.

Email: muhamed.didovic@gmail.com

***

### Additional Services

Need a custom scraper, a tailored export, or an integration into your own pipeline? Custom builds are available: muhamed.didovic@gmail.com.

***

### Explore More Scrapers

- **Superprof Scraper**: tutors, prices, ratings and reviews from Superprof
- **Quora Scraper**: questions and answers with authors and stats
- **Fnac Scraper**: products, prices, EAN and marketplace sellers from Fnac.com

***

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/preply-scraper`).

**Purpose:** Public Preply.com tutor rows from subjects (with filters), tutor search links or tutor profile links, with optional full profiles and student reviews. No login.

**Minimal input:**

```json
{ "subjects": ["spanish"], "maxItems": 20 }
```

**Output:** one dataset row per tutor: tutorId, url, name, headline, subjects, countryOfBirth, countryCode, price, trialLessonPrice, currency, priceUsd, rating, reviewCount, totalLessons, activeStudents, yearsOfExperience, isSuperTutor, isProfessionalTutor, spokenLanguages \[{language, level}], badges, bioSnippet, searchSubject, sourceUrl. With `scrapeDetails`: bio, joinedAt, responseTimeHours, education, workExperience, certificates, specialties, lessonRatings, ratingDistribution, aiSummary, reviews \[{rating, text, date, reviewerName, tutorReply}], reviewsAvailable.

**Behaviors an agent should know:**

- Always set `maxItems`; it counts tutors across all subjects and links.
- Subjects use Preply's link spelling (`spanish`, `math`, `music`). Filters apply to subjects only.
- `minPrice` and `maxPrice` are in US dollars whatever `currency` is.
- Profile links always return the full profile. For other inputs set `scrapeDetails: true` for bio, education and reviews.
- Billing: `tutor` per delivered row, plus `tutor-details` per row that has the full profile. Reviews are included.

***

### ⚠️ Disclaimer

This scraper is built and maintained independently. Preply, Inc. and its subsidiaries have not endorsed or sponsored it and have no part in it. Preply and the other names and marks mentioned here belong to their owners.

The scraper reads only publicly available Preply tutor search results and tutor profiles, with no authenticated pages, paid features, or content behind the Preply login. Tutor profiles contain personal data; users are responsible for making sure their use complies with Preply's Terms of Service, applicable data-protection law (GDPR, CCPA and others), and any contractual obligations of their own organization.

***

### SEO Keywords

Preply scraper, scrape Preply, Preply API, Preply tutor scraper, Preply tutors data, Preply tutor prices, Preply reviews scraper, Preply teacher list, online tutor scraper, language tutor data, tutor marketplace data, tutoring price benchmark, online lesson prices, English tutor list, Spanish tutor list, tutor recruiting leads, language teacher leads, edtech market research, tutoring market analysis, tutor reviews dataset, Apify Preply

# Actor input Schema

## `subjects` (type: `array`):

Subjects to search, one per line, written as they appear in a Preply link: english, spanish, french, german, math, chemistry, music, programming. The filters below apply to these searches. Leave empty if you only paste links.

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

preply.com tutor search links (for example https://preply.com/en/online/english-tutors with any filters set on Preply) or single tutor profiles (https://preply.com/en/tutor/1166868). Search links keep the filters they were copied with. Profile links always return the full profile.

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

Stop after this many tutors across all subjects and links. Each tutor is one row in the dataset.

## `scrapeDetails` (type: `boolean`):

Open every tutor's profile to add the full bio, join date, last seen, response time, education, work experience, certificates, specialties with the tutor's own notes, lesson ratings, star distribution, Preply's summary and student reviews. Billed as an extra event per tutor.

## `maxReviewsPerTutor` (type: `integer`):

With full profiles on, how many student reviews to keep on each tutor's row, newest first, with the reviewer's lesson count and learning goal and the tutor's reply. 0 keeps none. Reviews are included in the profile price.

## `countryOfBirth` (type: `array`):

Two-letter country codes of the tutor's country of birth, for example AR, MX, ES. Leave empty for every country.

## `minPrice` (type: `integer`):

Lowest price per lesson, in US dollars, whatever currency the prices are shown in.

## `maxPrice` (type: `integer`):

Highest price per lesson, in US dollars, whatever currency the prices are shown in.

## `nativeSpeaker` (type: `boolean`):

Only tutors who are native speakers of the language they teach.

## `superTutorOnly` (type: `boolean`):

Only tutors Preply marks as Super Tutors (highly rated and reliable).

## `certifiedOnly` (type: `boolean`):

Only tutors with a verified teaching certificate.

## `alsoSpeaks` (type: `array`):

Language codes the tutor must also speak, for example en, fr, de.

## `availabilityDays` (type: `array`):

Days the tutor has free lesson times.

## `availabilityTimes` (type: `array`):

Times of day the tutor has free lesson times, in the tutor search's own time slots.

## `searchText` (type: `string`):

Words to look for in tutor profiles, for example "DELE" or "business".

## `sortBy` (type: `string`):

Order of the results. Popularity keeps the same order from page to page, so a run reads every tutor once. Preply's own ranking changes on every visit, so long runs on it need extra reads to fill up. Runs that go past 990 tutors per search return them in price slices instead.

## `currency` (type: `string`):

Currency for prices. Every row also carries the price in US dollars.

## `splitLargeSearches` (type: `boolean`):

Preply shows at most 990 tutors for one search. With this on, bigger searches are read in price and country slices so you can collect every tutor. Rows then come in price order rather than Preply's ranking.

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

How many pages are loaded at the same time. The default suits most runs.

## Actor input object example

```json
{
  "subjects": [
    "spanish"
  ],
  "maxItems": 50,
  "scrapeDetails": false,
  "maxReviewsPerTutor": 10,
  "nativeSpeaker": false,
  "superTutorOnly": false,
  "certifiedOnly": false,
  "sortBy": "popularity",
  "currency": "USD",
  "splitLargeSearches": true,
  "maxConcurrency": 6
}
```

# Actor output Schema

## `tutors` (type: `string`):

Every tutor row: card fields, plus the full profile and reviews when enabled.

# 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 = {
    "subjects": [
        "spanish"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/preply-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 = {
    "subjects": ["spanish"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/preply-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 '{
  "subjects": [
    "spanish"
  ],
  "maxItems": 50
}' |
apify call memo23/preply-scraper --silent --output-dataset

```

## MCP server setup

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