takeuforward APItakeuforward.org ↗
Access Striver's A2Z and SDE DSA sheets, detailed problem content, and TUF+ pricing via the takeuforward.org API. 4 endpoints, structured JSON.
What is the takeuforward API?
This API exposes 4 endpoints covering Striver's curated DSA problem sheets from takeuforward.org. You can fetch the full A2Z or SDE sheet structures via get_a2z_sheet and get_sde_sheet — each returning problem IDs, titles, difficulty levels, slugs, category names, and a total problem count — then drill into any article's HTML content, video reference, topics, reactions, and community discussions using get_problem_detail.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/5f09a894-3062-4b72-819f-1b9671f8cbf2/get_a2z_sheet' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace takeuforward-org-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""
TakeUForward API – browse DSA sheets and drill into problem articles.
"""
from parse_apis.TakeUForward_API import TakeUForward, Difficulty, ArticleNotFound
tuf = TakeUForward()
# Fetch the A2Z DSA sheet and browse problems with difficulty and links
a2z = tuf.sheets.get_a2z()
print(a2z.sheet, a2z.total_problems)
for problem in a2z.problems[:5]:
print(problem.title, problem.difficulty, problem.article_url, problem.leetcode_url)
# Fetch the SDE sheet
sde = tuf.sheets.get_sde()
print(sde.sheet, sde.total_problems)
for problem in sde.problems[:3]:
print(problem.title, problem.difficulty, problem.youtube_url)
# Drill into a specific article by slug from the sheet
article_slug = a2z.problems[0].slug
try:
article = tuf.articles.get(slug=article_slug)
print(article.title, article.id)
print(article.preview)
if article.video:
print(article.video)
for topic in article.topics:
print(topic.id, topic.title)
print(article.reactions.count, article.reactions.liked)
except ArticleNotFound as exc:
print(f"article not found: {exc}")
# List TUF+ pricing plans
for plan in tuf.plans.list(limit=5):
print(plan.name, plan.price_inr)
print("exercised: sheets.get_a2z / sheets.get_sde / articles.get / plans.list")
Retrieve the full Striver's A2Z DSA Sheet structure. Returns all 450+ problems organized by category with IDs, titles, difficulty levels, slugs, and links (article URL, YouTube video, LeetCode problem). Single-page response containing the complete sheet.
No input parameters required.
{
"type": "object",
"fields": {
"sheet": "string identifying the sheet type ('a2z')",
"problems": "array of Problem objects with id, title, difficulty, slug, article_url, youtube_url, leetcode_url",
"categories": "array of Category objects with name field",
"total_problems": "integer count of problems in the sheet"
},
"sample": {
"data": {
"sheet": "a2z",
"problems": [
{
"id": "425",
"slug": "c-basic-input-output",
"title": "Input Output",
"difficulty": "Easy",
"article_url": "https://takeuforward.org/c/c-basic-input-output/",
"youtube_url": "https://youtu.be/EAR7De6Goz4?t=250",
"leetcode_url": null
},
{
"id": "1211",
"slug": "what-are-arrays-strings",
"title": "Cpp Basics",
"difficulty": "Easy",
"article_url": "https://takeuforward.org/data-structure/what-are-arrays-strings",
"youtube_url": "https://youtu.be/EAR7De6Goz4?t=2415",
"leetcode_url": null
}
],
"categories": [
{
"name": "Learn the basics"
},
{
"name": "Learn Important Sorting Techniques"
}
],
"total_problems": 472
},
"status": "success"
}
}About the takeuforward API
DSA Sheet Endpoints
get_a2z_sheet and get_sde_sheet both return the complete structure of their respective sheets. Each response includes a sheet identifier string, a problems array (each object carrying id, title, difficulty, and slug), a categories array with name fields, and a total_problems integer. The A2Z sheet covers the full breadth of DSA topics in a learning order; the SDE sheet focuses on top coding interview problems. Neither endpoint takes any input parameters.
Problem Detail Endpoint
get_problem_detail accepts a single required slug parameter — the full article slug as it appears in the takeuforward.org article URL path. Note that article slugs can differ from the problem slugs returned by get_a2z_sheet or get_sde_sheet, so you may need to derive or look up the correct article slug separately. The response includes the article id, title, preview text, full content_html, a video field containing a YouTube video ID (or null), a topics array of objects with id and title, a reactions object with count, liked, and disliked fields, and a discussions array of community discussion objects.
Pricing and Coverage
get_pricing_plans returns TUF+ subscription plan details as an array of plan objects, each with a name string and price_inr integer (denominated in Indian Rupees). This endpoint takes no inputs and is useful for applications that surface course or membership pricing alongside problem content.
The takeuforward API is a managed, monitored endpoint for takeuforward.org — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when takeuforward.org changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official takeuforward.org API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a DSA study tracker by ingesting all problems from get_a2z_sheet and tagging them by difficulty
- Generate a categorized problem list for a coding prep app using the categories array from get_sde_sheet
- Render full problem descriptions and editorial HTML by calling get_problem_detail with an article slug
- Surface related YouTube video content by reading the video field from get_problem_detail responses
- Analyze community engagement on problems using the reactions count and discussions array from get_problem_detail
- Display TUF+ subscription pricing alongside problem content by querying get_pricing_plans
- Map topic coverage across the SDE sheet by aggregating the topics arrays from multiple get_problem_detail calls
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.