{"uid":"cap_GCs__hkhdhXluzRS91yDS","slug":"x402-code-search-poc-85c3d8ba","name":"x402 Code Search POC","description":"Semantic code search over an indexed repo (top-5 matches)","url":"https://x402-codesearch-poc.theliminalguy.workers.dev/search?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","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_9cGZ8rbU1q8RPnNADnCPh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs semantic code search over an indexed repository and returns the top 5 matching code snippets","exampleAgentPrompt":"Search the indexed repo for code that handles JWT token validation and return the top 5 most semantically relevant snippets.","exampleUseCases":[{"title":"Locate authentication logic in codebase","prompt":"Search the codebase for code related to user authentication and session management — I want to see the top matches so I can understand how login is implemented."},{"title":"Find database query patterns","prompt":"Can you search the indexed repo for any code that performs database queries or ORM operations and show me the top 5 results?"},{"title":"Discover error handling conventions","prompt":"Search the repo for how errors and exceptions are handled — find the most relevant code snippets so I can follow the same patterns in my new feature."}],"resultDescription":"Returns the top 5 semantically matched code snippets from the indexed repository, likely including file paths, relevant code excerpts, and similarity or relevance scores for each match.","failureModes":["Query string missing or empty — returns error","Repository index not available or not populated — returns no results","Query too vague to produce meaningful matches — returns low-relevance results","Payment not processed (x402 protocol failure) — request blocked","Service downtime on Cloudflare Workers — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need semantic (meaning-based) search over a pre-indexed code repository, especially when exact keyword matching would miss conceptually related code. Ideal for developer agents exploring an unfamiliar codebase, generating documentation, or finding implementation patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:39:14.227Z","isFirstParty":false,"canonicalSlug":"x402-code-search-poc-85c3d8ba"}