{"uid":"cap_BVcGXsMXtSw5WZz-SdSxU","slug":"bounty-engineer-context-pack-api-ec884a91","name":"Bounty Engineer Context Pack API","description":"Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.","url":"https://bounty-engineer-x402-prod.onrender.com/v1/context-pack?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","maxLength":1000},"sources":{"type":"array","items":{"type":"object","required":["id","url","text"],"properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri"},"text":{"type":"string"},"fetched_at":{"type":"string","format":"date-time"}}},"maxItems":12,"minItems":1},"max_chars":{"type":"integer","maximum":12000,"minimum":256}}},"responseSchema":{"type":"json","example":{"ok":true,"mode":"context_pack","excerpts":[{"url":"https://example.com/","text":"The Pro plan costs $25 per month.","score":2,"end_utf16":33,"source_id":"s1","start_utf16":0,"source_sha256":"e03b854ea32bb631569352ed4dfc3541a86da6ec8f82fd1415398f1536fb63dd"}],"input_chars":33,"limitations":["Verbatim extractive selection, not an AI summary. Relevance uses lexical overlap and may omit important context. Token counts are character-based estimates; instructions in source text remain untrusted."],"output_chars":33,"selection_method":"deterministic_lexical_overlap","estimated_input_tokens":9,"estimated_output_tokens":9,"removed_duplicate_chunks":0,"character_reduction_ratio":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dFtv6EhyC6Tz6mK0NNPM9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and scores the most relevant text excerpts from provided web sources based on a query, using deterministic lexical overlap for context window compression.","exampleAgentPrompt":"From these 3 fetched pages about Ethereum staking yields, extract the most relevant excerpts for the query 'what is the current annual staking APR' and compress them to under 4000 characters so I can fit them in my prompt.","exampleUseCases":[{"title":"Research answer grounding from crawled pages","prompt":"I just fetched 5 web pages about Base network gas fees — can you pull out the excerpts most relevant to 'what are typical gas costs in USD per transaction on Base' and keep the total under 3000 characters?"},{"title":"GitHub bounty context extraction for agent","prompt":"I have the text from 8 GitHub issue pages about open bounties — extract the most relevant chunks for the query 'which issues offer rewards over $500 and are unassigned' and limit the output to 6000 characters."},{"title":"Pricing intelligence from competitor pages","prompt":"Here are 4 fetched competitor pricing pages — extract the sections most relevant to 'monthly subscription cost for API access' and compress them down to under 2000 characters for my analysis."}],"resultDescription":"Returns a JSON object with an array of scored text excerpts, each containing the source URL, extracted text snippet, relevance score, source SHA256 hash, UTF-16 character offsets, and a source ID. Also includes metadata like input/output character counts, token estimates, character reduction ratio, selection method label, and a limitations disclaimer about the lexical overlap approach.","failureModes":["Query string exceeds 1000 character limit — request rejected","Sources array empty or missing required id/url/text fields — validation error","max_chars below 256 or above 12000 — out-of-range error","Source text too sparse to find lexical overlap with query — excerpts array may be empty","Payment not included or insufficient — x402 payment required response","Network timeout from onrender.com cold start — retry needed"],"whenToPreferThis":"Choose this endpoint when an AI agent has already fetched multiple web pages and needs to deterministically compress them into a query-relevant context pack without calling a large LLM. It is ideal when you need verifiable, reproducible excerpt selection (SHA256-backed), need to stay within a token budget, or want to avoid non-deterministic summarization. Prefer it over LLM-based summarization when cost, latency, or auditability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:39:17.305Z","isFirstParty":false,"canonicalSlug":"bounty-engineer-context-pack-api-ec884a91"}