API · /codeforces-api

Codeforces API

healthy 4,064 Subscribers

Codeforces as an API — the largest competitive-programming platform, running regular rated rounds for hundreds of thousands of programmers worldwide. This API wraps the official Codeforces API into a clean, predictable JSON service. /v1/user looks up one or many competitors' profiles — current and maximum rating with the corresponding rank/title (from newbie through grandmaster to legendary grandmaster), contribution score, country, city, organization, registration date and avatar. /v1/rating returns a competitor's full rating history, contest by contest, with the old and new rating, the rating change and the rank achieved in each round — ideal for plotting a rating curve. /v1/contests lists upcoming and past contests, filterable by phase (BEFORE for the schedule of upcoming rounds, FINISHED for the archive), each with start time, duration and type. /v1/problems searches the entire Codeforces problemset by tag (dp, graphs, greedy, math, implementation, data structures and dozens more) and by difficulty-rating range, returning each problem's contest id, index, name, difficulty rating and tags with a direct link. Ratings range from ~800 to 3500+. Ideal for competitive-programming dashboards, rating trackers, training and problem-recommendation tools, and Discord/Telegram bots for CP communities. Data from the official Codeforces API, free to use. The service is resilient to Codeforces' concurrency rate-limit (automatic retry with backoff).

api.oanor.com/codeforces-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/codeforces-api/openapi.json
/api/codeforces-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
293 ms
Server probes · 24h
Subscribers
4,064
active
Total calls
10
last 7 days
status Full status page → · 15 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 1,000 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 1000 calls/month
  • 2 req/sec
  • Profiles, ratings, contests & problems
  • No credit card
Sign in to subscribe

Starter

€8.00 /month

  • 30,000 calls / month
  • 5 requests / second
  • Hard cap (429 above quota, no overage)
  • 30k calls/month
  • 5 req/sec
  • Full rating history
  • Email support
Sign in to subscribe

Pro

€24.00 /month

  • 130,000 calls / month
  • 12 requests / second
  • Hard cap (429 above quota, no overage)
  • 130k calls/month
  • 12 req/sec
  • Problemset search & dashboards
  • Priority support
Sign in to subscribe

Mega

€64.00 /month

  • 520,000 calls / month
  • 35 requests / second
  • Hard cap (429 above quota, no overage)
  • 520k calls/month
  • 35 req/sec
  • High-volume bots & trackers
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Sitemap API

Fetch and parse an XML sitemap (the sitemaps.org protocol). Pass a sitemap URL and the parse endpoint fetches it — following redirects and transparently gunzipping .gz sitemaps — and returns its type: a urlset with every URL and its lastmod, changefreq and priority, or a sitemapindex listing the child sitemaps, with offset/limit paging for large files. The urls endpoint goes further: when the sitemap is an index it fetches the child sitemaps too and flattens every page URL into a single list, with a configurable cap on URLs and child sitemaps and a truncated flag so you stay in control. The request is made server-side and private or internal targets are refused (SSRF-guarded). Built for SEO audits, building crawl queues and content inventories, change monitoring and migration checks. A sitemap fetcher and parser — distinct from generic XML-to-JSON conversion (xml), the robots.txt evaluator (robots) and the on-page SEO audit (seo). No upstream key, no cache.

api.oanor.com/sitemap-api

Text Segmentation API

Count and split text the way people actually read it, using Unicode-correct segmentation. The count endpoint returns the number of grapheme clusters — the real, user-perceived characters, so a family emoji counts as 1 (not 7) and an accented letter as 1 — alongside words, sentences, code points, UTF-16 code units (the naive string length that over-counts) and UTF-8 byte length. This is exactly what character-limit fields, tweet/SMS counters and validation need so the count agrees with what the user sees. The segment endpoint splits text into grapheme, word or sentence segments (word segments are flagged word-like versus punctuation and spaces) and is locale-aware, so Japanese, Chinese and Thai word boundaries come out right. Everything is computed locally with no network calls. A Unicode text segmenter — distinct from the Unicode codepoint database (unicode), the case/text-utilities toolkit (text) and string similarity (similarity). No upstream key, no cache.

api.oanor.com/segmenter-api

Localized Names API

Get the localized display name of a code in any language — countries and regions, languages, currencies, scripts and calendars. Pass a code, a type and a locale and the name endpoint returns the right name: US as region in fr gives "États-Unis", de as language in fr gives "allemand", EUR as currency gives "Euro", and the same code reads correctly in German, Japanese, Arabic or any other locale. The list endpoint returns every code of a type localized and sorted in that locale's collation — ideal for building a country, language or currency dropdown in any language. Powered by the platform's full ICU data (Intl.DisplayNames) and computed locally with no network calls. Built for internationalised forms and pickers, multilingual UIs, localized reports and onboarding. A localized-names resolver — distinct from country reference data in English (countries), number and currency formatting (numberformat) and locale date formatting (datelocale). No upstream key, no cache.

api.oanor.com/displaynames-api

Relative Time & Locale Date API

Humanise timestamps and format dates for any locale and timezone using full ICU. The relative endpoint turns an instant into a localised relative phrase against now (or a given reference time) — "3 hours ago", "vor 3 Stunden", "in 2 days", "il y a 5 minutes" — automatically choosing the best unit from seconds to years. The format endpoint renders a localised date/time string (e.g. "mardi 2 juin 2026 à 15:30" or "2026年6月2日 22:30:00"), honouring the locale (BCP 47), a named IANA timezone, the chosen date and time styles (full/long/medium/short) and 12/24-hour preference, and returns a parts breakdown for custom displays. Pass dates as ISO 8601 or unix timestamps. Everything is computed locally with no network calls. Ideal for internationalised UIs, activity feeds, notifications, comments and dashboards. A relative-time and locale date formatter — distinct from current-time-in-a-timezone (time), the UTC parse/token toolkit (datetime) and number/currency formatting (numberformat). No upstream key, no cache.

api.oanor.com/datelocale-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Codeforces API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Codeforces API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Codeforces API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Codeforces API cost?
Codeforces API has a free tier with 100 calls / month. Paid plans start at €8.00 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Codeforces API GDPR-compliant?
All requests to Codeforces API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/codeforces-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/codeforces-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/codeforces-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/codeforces-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.