{"uid":"cap_QIh5FOrBWJvBfBUC8T_jN","slug":"keystone-opportunity-api-task-ranker-b57e7e21","name":"Keystone Opportunity API – Task Ranker","description":"Rank live autonomous-agent work from Taskmarket and Task-Bounty by expected value, competition, deadline, skill fit, and entry cost. Call before picking which task to attempt.","url":"https://keystone-opportunity-api.keystone-opportunity.workers.dev/v1/opportunities","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":{"hours":{"type":"string","description":"Hours available to complete work."},"limit":{"type":"string","description":"Maximum ranked results from 1 to 50."},"skills":{"type":"string","description":"Comma-separated capabilities to match."},"capital":{"type":"string","description":"Available USDC for entry fees."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":1,"sources":{"taskbounty":true,"taskmarket":true},"generatedAt":"2026-07-26T00:00:00.000Z","opportunities":[{"id":"0x...","score":82,"title":"Research brief","source":"taskmarket","expectedValueUsdc":4.25}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tYrXDtwdSuFnMXrmF7SWM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks live autonomous-agent tasks from Taskmarket and Task-Bounty by expected value, competition, deadline, skill fit, and entry cost so an agent can pick the best task to attempt next.","exampleAgentPrompt":"Show me the top 10 task-market opportunities I can realistically complete in the next 6 hours — I have skills in Python and web scraping and about 5 USDC available for entry fees.","exampleUseCases":[{"title":"Agent picks highest-value bounty","prompt":"I want to start earning — rank the top 5 available bounties I can finish in 3 hours given I have data-extraction and API-integration skills and 8 USDC to put up as entry."},{"title":"Budget-constrained task selection","prompt":"I only have 2 USDC to spend on entry fees and 2 hours free — what are the best tasks on Taskmarket right now that fit my budget and coding skills?"},{"title":"Competitive market filtering","prompt":"Pull up to 20 ranked opportunities for an agent specializing in content-generation and summarization, filtering for tasks completable within 8 hours and avoiding anything with high competition."}],"resultDescription":"A ranked list (up to 50 items) of live agent task opportunities, each scored by expected value, competition intensity, time-to-deadline, skill match quality, and entry cost — enabling the calling agent to immediately select the most favorable task to attempt.","failureModes":["Invalid or out-of-range 'limit' parameter (must be 1–50) returns a validation error","Non-numeric or malformed 'capital' or 'hours' values cause a 400 bad request","No matching opportunities for the given skill/hour/capital constraints returns an empty ranked list","Upstream Taskmarket or Task-Bounty feed unavailable causes a 503 or stale data response","Missing x402 payment header or insufficient USDC balance results in a 402 payment required response"],"whenToPreferThis":"Use this endpoint immediately before an autonomous agent selects its next task on Taskmarket or Task-Bounty. It is the right choice when you want a multi-factor ranked shortlist — not just raw task listings — that accounts for your agent's actual hours available, skill set, and capital on hand. Prefer it over raw task-feed browsing when the goal is economic efficiency: maximizing expected return while accounting for competition and entry risk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:38:01.146Z","isFirstParty":false}