# Unirank Scraper (`captivating_clarinet/unirank`) Actor

Scrape global university rankings, tuition fees, acceptance rates, and institutional profiles from unirank.org. Extract structured higher education datasets by country with high performance.

- **URL**: https://apify.com/captivating_clarinet/unirank.md
- **Developed by:** [Aly Khalid](https://apify.com/captivating_clarinet) (community)
- **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 results

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

## Unirank — Global University Directory & Rankings Scraper

Search and extract comprehensive global university profiles, rankings, tuition matrices, admissions metrics, and institutional details from the [Unirank](https://www.unirank.org) database across multiple regions and countries.

### What it does

1. Parses regional ranking listing pages on Unirank to discover university profiles.
2. Automatically navigates to individual university detail pages to capture deep institutional attributes.
3. Formats and saves structured university data to the dataset.

This is a high-performance HTTP crawler powered by `Crawlee` and `CurlImpersonateHttpClient`, making it extremely fast, lightweight, and resilient against bot-blocking.

### Input

| Field | Description |
|---|---|
| **Country** | Select one or more target countries or global regions to scrape university rankings from. |
| **Max results** | Caps how many university records are fetched per run. |

> 💡 **Tip:** Selecting multiple countries and setting an appropriate **Max results** cap lets you build customized international university datasets efficiently!

## Here is an example of what the actor input could be:

<img src="https://preview.redd.it/h2coqmv1lm0i1.png?width=1048&format=png&auto=webp&s=c46e663e8daeaec137e6296e62d02a1362e8f6f8" alt="Actor Input Example">

### Output

One dataset row per university, capturing detailed institutional attributes:

`University Name`, `English Name`, `Non-Latin Name`, `Acronym`, `Country Rank`, `World Rank`, `Country`, `City`, `Street Address`, `Locality`, `State/Region`, `Postal Code`, `Phone`, `Website`, `Logo URL`, `Profile Link`, `Year Founded`, `Motto`, `School Colors`, `Mascot`, `Overview`, `Control`, `Control Type`, `Entity`, `Entity Type`, `Size Category`, `Student Enrollment`, `Academic Staff`, `Campus Setting`, `Academic Calendar`, `Land Grant Status`, `Selectivity`, `Admission Selection`, `Admission Rate`, `Admission Requirements`, `International Students Count`, `Tuition - Local Undergraduate`, `Tuition - Local Postgraduate`, `Tuition - International Undergraduate`, `Tuition - International Postgraduate`, `Source URL`

## Here is an example of the structured data overview captured by the actor:

<img src="https://preview.redd.it/yarrqtsjlm0i1.png?width=1080&crop=smart&auto=webp&s=93a2c3ae9000f4f8df148d654ddd414670a1591b" alt="Actor Output Example">

### Example use cases

- **Higher Education Research:** Aggregating global university rankings, tuition structures, and admissions criteria for comparative analysis.
- **Directory Building:** Creating specialized regional or global databases of accredited higher-education institutions.
- **Market Intelligence:** Monitoring international institutional demographics, student counts, and control/entity types.

### Known limitations

- This Actor relies on the HTML structure and markup of Unirank's public pages. If the website layout or table structures change significantly, scraper XPaths may require updates.

### Cost

This is a lightweight HTTP-only scraper (no resource-heavy headless browser required), so compute cost per run is minimal. Cost scales primarily with **Max results** and the number of target countries selected.

# Actor input Schema

## `country` (type: `array`):

The country where the universities are based in.

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

Maximum number of member records to fetch.

## Actor input object example

```json
{
  "max_results": 5
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("captivating_clarinet/unirank").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("captivating_clarinet/unirank").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 captivating_clarinet/unirank --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,captivating_clarinet/unirank"
        }
    }
}
```

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/oorUD9ZjaQ0J2DPMY/builds/D9EqdcoEbr2qDw46t/openapi.json
