{"uid":"cap_ZHMMrrCao4lXdNhEzVdRZ","slug":"judge0-via-locus-x402-list-languages-eb288171","name":"Judge0 via Locus x402 — List Languages","description":"Locus public pay-per-use API","url":"https://judge0.x402.paywithlocus.com/judge0/list-languages","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ma_wKLueXLV0LhPrR-Kur","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the list of all programming languages supported by the Judge0 code execution sandbox.","exampleAgentPrompt":"Can you fetch the full list of programming languages supported by the Judge0 sandbox so I can find the right language ID to use when submitting code?","exampleUseCases":[{"title":"Find language ID before code submission","prompt":"Before I run my Python 3 code, can you pull the list of supported languages from the Judge0 sandbox and tell me which language ID corresponds to Python 3?"},{"title":"Explore available compiler options","prompt":"I want to know every programming language and compiler available in the Judge0 code execution environment — can you list them all for me?"},{"title":"Build a language picker dropdown","prompt":"I'm building a coding playground and need the complete list of language names and their Judge0 IDs so I can populate a language selector — can you fetch that list?"}],"resultDescription":"Returns a structured payload containing the list of all programming languages supported by the Judge0 sandbox, each entry including a numeric language ID and a display name (with version), enabling the caller to look up the correct ID before submitting code for execution. The response wraps the data under a 'data' key with payment and request metadata.","failureModes":["Payment failure — insufficient USDC balance or x402 payment not accepted, resulting in a 402 response","Malformed request body — missing required 'input' fields causes a 4xx validation error","Service unavailability — Judge0 backend is down, resulting in a 5xx error","Timeout — sandbox infrastructure slow to respond, causing a timeout error"],"whenToPreferThis":"Use this endpoint when you need to discover available language IDs before submitting code to the Judge0 execution sandbox, or when building a UI that enumerates supported languages. Prefer this over hardcoding language IDs, since the supported set can evolve. This is a read-only, low-cost lookup call ideal as a prerequisite step in automated coding workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:40.562Z","isFirstParty":false}