Codeforces Scraper avatar

Codeforces Scraper

Pricing

from $31.05 / 1,000 results

Go to Apify Store
Codeforces Scraper

Codeforces Scraper

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

Pricing

from $31.05 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

9 days ago

Last modified

Share

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 itWhat they scrape Codeforces for
Competitive programmersTrack their own rating history and compare with peers
Coaches and trainersMonitor student progress and identify weak topics
RecruitersFind top-rated competitive programmers for hiring
ResearchersAnalyze 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 keyUses public pages, no registration or OAuth
Four modesUsers, problems, contests, and rated list in one actor
Flat outputEvery record is a row ready for CSV or database
Flexible filtersTags, 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.

FeatureParseForgeCodeforces Scraper - Users, Submissions, Contests
User profilesYesYes
Problem set with tag filteringYesYes
Contest list with gym optionYesYes
Rated users listYesNot listed
SubmissionsNot listedYes
Active-only filter for rated usersYesNot 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 collectedApproximate 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

QuestionAnswer
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.

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.