{"uid":"cap_13I50h66OMm5UydgDzyLI","slug":"course-catalog-prerequisite-graph-api-56c51b55","name":"Course Catalog Prerequisite Graph API","description":"University course catalog + prerequisite graph data for agents.","url":"https://course-catalog-api.lewis-6d8.workers.dev/prereq-graph","method":"POST","headers":{},"bodySchema":{"type":"object","required":["institution","target_course_code"],"properties":{"fresh":{"type":"boolean","description":"Bypass cache if true"},"institution":{"type":"string","description":"Institution slug; currently 'mit' is the live institution"},"target_course_code":{"type":"string","description":"Course code to build the prerequisite graph for"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1SMHwWsQ-m3cx4r1_KZ-U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a prerequisite dependency graph for a specified university course, showing all courses required before enrollment.","exampleAgentPrompt":"Can you pull up the full prerequisite graph for MIT course 6.046J — I want to see every course I'd need to complete before I can enroll in it?","exampleUseCases":null,"resultDescription":"A prerequisite dependency graph for the requested course, containing course nodes and their dependency relationships, showing every course required (directly or transitively) before the target course can be taken at the specified institution.","failureModes":["Institution slug not supported (only 'mit' is currently live) — may return an error or empty graph","Invalid or unrecognized course code — returns empty or error response","Network timeout on the Cloudflare Worker — transient 5xx error","Cache staleness — use fresh:true to bypass cached data if results seem outdated","Missing required fields (institution or target_course_code) — validation error"],"whenToPreferThis":"Use this endpoint when you need structured prerequisite dependency data for a specific university course, particularly MIT, and want a graph representation suitable for academic planning, curriculum analysis, or automated advising workflows. Prefer this over general web search when you need machine-readable prerequisite chains rather than human-readable catalog pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:38:50.822Z","isFirstParty":false}