{"uid":"cap_ah8z42vJNihTVPkYFYys_","slug":"extract-code-as-json-bulk-467e2b46","name":"extract-code-as-json-bulk","description":"Bulk extract code as json: up to 20 urls in one call, processed concurrently, results in input order with a per-item error field and a failure count. Same answer per item as the single endpoint. Batch enrichment for agents that hold a list. $0.10 per batch.","url":"https://page.intel.rallylive.ca/bulk/page/code/json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wyxbs8Q-oxyHq_5L_aSh_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Bulk-fetch up to 20 URLs concurrently and extract all code elements from each page, returning structured JSON results in input order with per-item errors and a failure count.","exampleAgentPrompt":"Can you extract all the code blocks from these 15 documentation URLs and give me the results as JSON — I need them processed together in one batch so I get them back in the same order I sent them?","exampleUseCases":[{"title":"Bulk documentation code harvesting","prompt":"I have a list of 18 documentation pages and I need all the code snippets from each one extracted and returned as JSON — can you process them all at once and tell me which ones failed?"},{"title":"Competitive code sample comparison","prompt":"Here are 12 competitor product pages — pull all the code examples from each of them in one shot and give me the results in order so I can compare what they're showing."},{"title":"Code audit across multiple repos or pages","prompt":"I need to scan these 20 URLs for any embedded code blocks and get back a structured JSON report for each page, including which ones had errors — can you batch that for me?"}],"resultDescription":"Returns a JSON array with one entry per input URL in the same order they were submitted. Each entry contains the extracted code elements from that page (matching what the single-URL endpoint returns), a per-item error field indicating any fetch or parse failures, and a top-level failure count summarizing how many items encountered errors.","failureModes":["URL is unreachable or returns non-200 status — per-item error field is populated","Page contains no code elements — empty result for that item","More than 20 URLs submitted — request may be rejected or truncated","Network timeout on one or more URLs — affected items flagged with errors","Malformed URL in the input list — per-item error reported for that entry"],"whenToPreferThis":"Choose this endpoint when you need to extract code elements from multiple pages (up to 20) and want concurrent processing in a single API call rather than making individual requests. It preserves input order and reports per-item errors, making it ideal for batch enrichment pipelines, bulk documentation scraping, or any workflow where you hold a list of URLs and need code extracted from all of them efficiently at $0.10 per batch.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:22.009Z","isFirstParty":false,"canonicalSlug":"extract-code-as-json-bulk-467e2b46"}