{"uid":"cap_lVFsg36VhrHONPsochfy9","slug":"openapi-contract-lens-e2510f28","name":"OpenAPI Contract Lens","description":"Machine-readable pay-per-request intelligence for autonomous agents on Base mainnet. x402 v2 resources expose deterministic decisions, market demand signals, payment preflight checks, repository intelligence, crypto catalysts, OpenAPI integration analysis and token liquidity signals.","url":"https://agent-economy-signal-x402-mainnet.bronzetti-andrea.workers.dev/premium/openapi-contract-lens","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","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public HTTPS URL of an OpenAPI JSON document."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"product":"OpenAPI Contract Lens","version":"1.0.0","document":{"title":"Example API","api_version":"1.0.0","specification_version":"3.1.0"},"price_usd":0.005,"integration":{"readiness":"READY","operation_count":24,"authentication_schemes":["bearerAuth"],"auth_required_operations":18},"next_action":"INTEGRATE_THE_RELEVANT_OPERATION","valid_for_seconds":600}},"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_QP0ub7zdjNF8rVjvJpP4I","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":"Analyzes a public OpenAPI document URL and returns machine-readable integration readiness signals including operation count, authentication schemes, and recommended next action for autonomous agents.","exampleAgentPrompt":"Can you analyze this OpenAPI spec and tell me if it's ready to integrate — how many operations it has, what authentication it uses, and what I should do next? The spec is at https://petstore3.swagger.io/api/v3/openapi.json","exampleUseCases":[{"title":"Pre-integration API contract audit","prompt":"Before I start building against this third-party API, can you analyze its OpenAPI spec at https://api.example.com/openapi.json and tell me how many operations it has, what auth schemes it uses, and whether it's ready to integrate?"},{"title":"Authentication scheme discovery","prompt":"I need to know what authentication methods this API requires before I configure my agent — can you pull the OpenAPI spec from https://payments.acme.com/v2/openapi.json and extract the auth schemes and how many operations require auth?"},{"title":"Multi-API readiness comparison","prompt":"I'm evaluating two APIs and want to know which is further along — can you run the OpenAPI Contract Lens on https://api.serviceA.com/openapi.json and give me the integration readiness rating, operation count, and recommended next action?"}],"resultDescription":"Returns a JSON object with: product name and version, parsed document metadata (API title, version, OpenAPI spec version), integration readiness label (e.g. READY), total operation count, list of authentication schemes, count of auth-required operations, a recommended next action string, and a validity window in seconds. Costs $0.005 USDC per call via x402 on Base mainnet.","failureModes":["Invalid or inaccessible URL: returns error if the provided URL is not reachable or not a valid OpenAPI JSON document","Non-public URL: private or localhost URLs will fail to fetch","Malformed OpenAPI document: if the spec does not conform to OpenAPI standards, analysis may be incomplete or return an error","Payment failure: if x402 payment on Base mainnet is not completed, the request is rejected with a 402 response","URL missing: query param 'url' is required; omitting it causes a validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a fast, structured, machine-readable readiness assessment of a public OpenAPI contract before deciding to integrate with it. Ideal when the agent must autonomously determine authentication complexity, operation scope, and integration feasibility without human intervention. Prefer over manual spec parsing when a pay-per-call model is acceptable and the output needs to be deterministic and actionable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:37.128Z","isFirstParty":false}