# HackerRank Skills Directory Scraper (`bovi/hackerrank-scraper`) Actor

Collect public skill cards from the HackerRank Skills Directory. Get skill ID, title, URL, and proficiency levels. Run with keywords and maxResults; no HackerRank login. Pricing: $0.0075 per skill record on the Free plan, plus Actor Start.

- **URL**: https://apify.com/bovi/hackerrank-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 1,000 hackerrank skills directory scrapers

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

## HackerRank Skills Directory Scraper

This Actor scrapes public skill cards from the HackerRank Skills Directory for people building hiring maps, training catalogs, or developer-tool inventories. It extracts each skill ID, visible title, directory URL, and listed proficiency levels. It needs no HackerRank login and no buyer API key.

- Build a recruiting or curriculum list from public skill titles and the proficiency-level URLs on each card.
- Narrow the list to one technology family by filtering titles, skill IDs, or level names with `keywords`.
- Cap the export with `maxResults` for an internal developer-tools catalog. Assessment and challenge content is not collected.
- Run it from your own Apify account with no HackerRank password, cookie, or API key.

### What you get

The Actor requests `https://www.hackerrank.com/skills-directory` once and parses skill cards from that HTML. It saves one dataset item per card that matches `keywords`, then keeps at most `maxResults` items in parse order. It does not open level pages.

| Field | Type | Meaning |
| --- | --- | --- |
| `skill_id` | string | Taken from the first skills-directory link (`data-cd-skill-name`, or the last URL path segment if that attribute is missing). A trailing `_basic`, `_intermediate`, or `_advanced` suffix is removed. |
| `title` | string | Skill name shown on the card. |
| `url` | string | Absolute URL of the first link on the card that points at `/skills-directory/`. |
| `levels` | array | Recognized proficiency levels on that card, in the order they appear. The array can be empty. |
| `levels[].name` | string | `Basic`, `Intermediate`, or `Advanced`. Any other link label is left out. |
| `levels[].url` | string | Absolute public URL for that level. |

Cards without a title or without a skills-directory link are skipped.

### Sample output

```json
{
  "skill_id": "net",
  "title": ".NET",
  "url": "https://www.hackerrank.com/skills-directory/net_basic",
  "levels": [
    {
      "name": "Basic",
      "url": "https://www.hackerrank.com/skills-directory/net_basic"
    },
    {
      "name": "Intermediate",
      "url": "https://www.hackerrank.com/skills-directory/net_intermediate"
    },
    {
      "name": "Advanced",
      "url": "https://www.hackerrank.com/skills-directory/net_advanced"
    }
  ]
}
```

### Pricing

This Actor uses pay-per-event billing. The prices below are for the Free plan. One dataset event is one saved skill card, not one proficiency level inside it.

| Event | When it is charged | Price on Free |
| --- | --- | --- |
| Actor Start (`apify-actor-start`) | When the Actor starts: one event per GB of memory, minimum one. | $0.00005 per event on the Free plan (1,000 events = $0.05; 10,000 events = $0.50) |
| HackerRank Skills Directory Scraper (`apify-default-dataset-item`) | One saved skill record with all fields. | $0.0075 per skill record on the Free plan ($7.50 per 1,000 records; $75 per 10,000 records) |

Default memory is 512 MB, so a default run is one Actor Start event.

666 skill records × $0.0075 = $4.995 on the Free plan, plus one Actor Start event at $0.00005, so 666 results = $4.99505.

The Free plan includes $5 of monthly platform usage credit. After the start event, that credit covers 666 skill records (`floor((5 - 0.00005) / 0.0075) = 666`).

> **Note:** Platform usage (compute, Apify Proxy traffic including residential, and storage) is included in the event prices and paid by the Actor developer. Pay per event plus usage is off, so those charges are not billed to you separately.

### How to use

1. Open HackerRank Skills Directory Scraper in the Apify Console and create a run.
2. Leave `keywords` empty to keep every parsed card, or enter a substring to match titles, skill IDs, or level names.
3. Set `maxResults` to the most skill records you want saved. The default is 50 and the minimum is 1.
4. Check `proxyConfiguration`. The default uses Apify proxy with the `RESIDENTIAL` group.
5. Start the run and open the default dataset when it finishes.
6. To repeat the run, use Apify Schedules. Monthly is only a starting point, not a statement of how often the source changes.

```json
{
  "keywords": "net",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
| --- | --- | --- |
| `keywords` | Case-insensitive substring tested against the skill title, `skill_id`, and each level name. Blank leaves the list unfiltered. | Empty string |
| `maxResults` | After filtering, only this many records are saved. `0` or a negative value ends the run before the directory is fetched and saves nothing. A non-numeric value is treated as 50. | `50` |
| `proxyConfiguration` | If `useApifyProxy` is true, the request uses that Apify proxy setup. If false or omitted, the request is direct. | Apify proxy, `RESIDENTIAL` |

### Limits and edge cases

There is no pagination input. The candidates are the skill cards parsed from one public directory response, so a narrow keyword often returns fewer items than `maxResults`.

| Condition | What you see | What to do |
| --- | --- | --- |
| `keywords` matches nothing | The run succeeds with zero items. | Clear the filter or use a shorter substring. |
| The keyword is a level name, such as `basic` | Every card with a level label containing it is kept, then cut by `maxResults`. | Match a skill title or skill ID instead. |
| `maxResults` is `0` or negative | The run ends with no items and does not request the directory. | Set it to `1` or higher. |
| `maxResults` is not a number | The run uses 50. | Send an integer of at least 1. |
| A link label is not Basic, Intermediate, or Advanced | That link is omitted from `levels`; the card is still saved. | Expect only those three level names. |
| The HTML has no parseable skill cards | The run fails with `HackerRank returned no parseable public skill cards`. Nothing is saved. | Run again. If proxy is off, try the default proxy. |
| The directory returns an error status, or the request exceeds 40 seconds | The run fails before any record is saved. | Run again. There is no retry loop. |

### FAQ

#### How much does it cost to scrape HackerRank skills?

On the Free plan, $0.0075 per saved skill record and $0.00005 per Actor start. See the Pricing section for the 666-record example.

#### Why is the dataset empty?

Most often `keywords` matches nothing, or `maxResults` is 0 or negative. Clear the keyword or shorten it, and use `maxResults` of 1 or higher. Failed runs are covered in Limits and edge cases.

#### Does this Actor need a HackerRank login?

No. It does not log in and asks for no password, cookie, or API key. Your Apify account is enough.

#### Is it legal to collect this public directory data?

The Actor collects skill cards from the public HackerRank Skills Directory at `https://www.hackerrank.com/skills-directory`. Whether that collection is allowed depends on HackerRank's terms and on the law that applies to your use case. This page does not offer a legal guarantee.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

## `keywords` (type: `string`):

Optional case-insensitive substring matched against skill titles, IDs, and levels.

## `maxResults` (type: `integer`):

Maximum number of skill records to return.

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

Optional Apify proxy settings. Requests are direct when useApifyProxy is false or omitted.

## Actor input object example

```json
{
  "keywords": "",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with the scraped skill records.

# 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": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/hackerrank-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": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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