{"uid":"cap_EOyT0TNkizZcUdNUEoj7_","slug":"code-block-extract-bulk-36c606c4","name":"code-block-extract-bulk","description":"Bulk code block extract: up to 20 urls in one call, processed concurrently, results returned in input order with a per-item error field and a count of failures. Same answer per item as the single /page/codeblocks endpoint (Code block extraction from a page). Batch enrichment for agents that hold a list. $0.01 per batch.","url":"https://intel.rallylive.ca/bulk/page/codeblocks","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_GVQP2d6b9H2rJnS7P_I3B","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":"Extracts code blocks from up to 20 URLs concurrently in a single call, returning results in input order with per-item error reporting.","exampleAgentPrompt":"Can you extract all the code blocks from these 15 documentation pages for me at once? Here are the URLs: [list of URLs]. I need the code snippets from each page returned in the same order.","exampleUseCases":[{"title":"Bulk documentation code harvesting","prompt":"I have a list of 18 API documentation pages and I need all the code examples pulled from each one — can you extract the code blocks from all of them at once and tell me if any pages failed?"},{"title":"Competitive code pattern analysis","prompt":"Here are 12 competitor product pages — extract all the code blocks from each URL so I can compare how they present their integration examples."},{"title":"Tutorial snippet aggregation","prompt":"I want to collect every code snippet from these 20 tutorial URLs in one shot and get them back in the same order I gave them, with a note if any page had an error."}],"resultDescription":"An ordered array of per-URL results matching the input order, where each item contains the extracted code blocks found on that page (same structure as the single /page/codeblocks endpoint), a per-item error field indicating any fetch or parse failure, and an overall count of failures across the batch.","failureModes":["URL unreachable or returns non-200 status — per-item error field populated, result skipped","Page contains no code blocks — empty result returned for that item","Invalid or malformed URL in input list — per-item error reported","Batch exceeds 20 URL limit — request rejected or truncated","Rate limiting or network timeout on concurrent fetches — partial failures with error fields","Non-HTML content at URL — parsing failure reported per item"],"whenToPreferThis":"Choose this endpoint when you have a list of 2–20 URLs from which you need code blocks extracted and want to avoid making multiple sequential single-URL calls. It processes all URLs concurrently and returns results in input order, making it ideal for batch enrichment pipelines, documentation scrapers, and agent workflows that accumulate a list of pages before processing. For a single URL, prefer the /page/codeblocks endpoint directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:22:01.783Z","isFirstParty":false}