ParseForge Scrapers

Codeforces Scraper

parseforge/codeforces-scraper

Developer toolsAutomationOther

Scrapes Codeforces user profiles, problem sets, contest lists, and rated users. Returns each record as a flat row for easy export.

Run this scraper See the API call
Total users
6
Monthly active
2
Total runs
128
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

Codeforces Scraper

Scrape Codeforces user profiles, problem sets, contests, and rated lists with one actor. Get handles, ratings, tags, and contest metadata in a flat row. No API key or login. Export to CSV, JSON, Excel, or XML.

Codeforces' official API is rate-limited and requires manual pagination. This actor reads the public pages directly, filtered by handle, problem tag, or contest type, and returns each match in one fixed schema. It covers user profiles, problem sets, contest lists, and the rated users leaderboard.

Who uses it What they scrape Codeforces for
Competitive programmers Track their own rating history and compare with peers
Coaches and trainers Monitor student progress and identify weak topics
Recruiters Find top-rated competitive programmers for hiring
Researchers Analyze problem difficulty and contest trends

What it does

This actor collects Codeforces user profiles, problem sets, contest lists, and rated users, and returns each record as a flat row.

  • ๐Ÿ‘ค User profiles: scrape any Codeforces handle for rating, rank, and contribution
  • ๐Ÿ“š Problem set: filter problems by tags like dp, graphs, or math
  • ๐Ÿ† Contest list: get all contests, optionally including gym contests
  • ๐Ÿ“ˆ Rated users: fetch the top players, optionally only active ones

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Codeforces data

๐Ÿ“Š Track your rating progress.

A competitive programmer runs the actor on their handle weekly and plots rating changes over time.

๐ŸŽฏ Build a problem practice list.

A coach scrapes problems tagged 'dp' and 'graphs' to assign targeted homework.

๐Ÿ… Scout top talent.

A recruiter pulls the rated users list to find candidates with high Codeforces ratings.

๐Ÿ” Analyze contest trends.

A researcher collects contest metadata to study problem difficulty and participation patterns.

Why choose this scraper

What you get
No API key Uses public pages, no registration or OAuth
Four modes Users, problems, contests, and rated list in one actor
Flat output Every record is a row ready for CSV or database
Flexible filters Tags, gym inclusion, and active-only options

How it compares

This actor focuses on the four core data types with flexible filters, while the competitor also includes submissions.

Feature ParseForge Codeforces Scraper - Users, Submissions, Contests
User profiles Yes Yes
Problem set with tag filtering Yes Yes
Contest list with gym option Yes Yes
Rated users list Yes Not listed
Submissions Not listed Yes
Active-only filter for rated users Yes Not listed

Configure the run

Drive the actor from handles, problem tags, contest type, and active-only flags, alone or together, and filters run as each record is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
  "mode": "users",
  "handles": [
    "tourist"
  ],
  "maxItems": 10
}

A larger pull:

{
  "mode": "users",
  "handles": [
    "tourist"
  ],
  "maxItems": 200
}

Pricing

Pay-per-result: $0.0414 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $4.14
1,000 results $41.40
10,000 results $414.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Codeforces Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Codeforces through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/codeforces-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your input. For users mode, ensure the handle is spelled correctly. For problemset mode, verify the tags exist. Also check maxItems is not set too low.

Why is my run limited to 10 items?

Free users are limited to 10 items as a preview. Upgrade to a paid plan to increase maxItems up to 1,000,000.

Why are some user profiles missing fields?

Some fields may be empty if the user has not set them, such as organization or country. The actor returns what is available on the public profile.

Why does the rated list not include all users?

The rated list only includes users who have participated in rated contests. If activeOnly is true, it further filters to recently active users.

Why do I get an error when scraping many handles?

Codeforces may rate-limit requests. Try reducing the number of handles per run or increasing the delay between requests if available.

FAQ

Question Answer
Do I need a Codeforces API key? No. The actor reads public pages directly, so no registration or key is required.
Can I scrape multiple user handles at once? Yes. In users mode, provide a list of handles and the actor fetches each one.
How do I filter problems by topic? Use the tags input in problemset mode. For example, enter 'dp' or 'graphs' to get only those problems.
What is the difference between contests and gym contests? Regular contests are rated and open to all. Gym contests are training contests, often from other sources. You can include or exclude gym contests with the gym checkbox.
How do I get only active rated users? In ratedList mode, set activeOnly to true. This filters to users who participated recently.
Is there a limit on how many records I can scrape? Free users are limited to 10 items as a preview. Paid users can set maxItems up to 1,000,000.
What output formats are supported? You can export the dataset as CSV, JSON, Excel, or XML from the Apify platform.
Can I schedule this actor to run automatically? Yes. Use Apify's scheduler to run it daily, weekly, or at any interval you choose.
Does this actor handle pagination automatically? Yes. It fetches all pages up to your maxItems limit without manual intervention.
Can I scrape submissions as well? This actor focuses on profiles, problems, contests, and rated users. For submissions, consider a dedicated submissions scraper.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Codeforces, LLC. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
mode string (4 options) What to scrape users
handles array List of Codeforces handles to scrape ["tourist"]
tags array Filter problems by tags (e.g. dp, graphs, math) []
gym boolean Whether to include gym (training) contests false
activeOnly boolean Only include users who participated recently false
maxItems integer Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000 10

Pricing

from $31.05 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.03105 to $0.0414

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~codeforces-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Codeforces Scraper on Apify All scrapers