{"uid":"cap_WuWOeNTCTcBEpIqr8AkkE","slug":"forwardlane-embedding-similarity-search-7baf0679","name":"ForwardLane Embedding Similarity Search","description":"Cosine-similarity search over function embeddings.","url":"https://forwardlane.pay.zeroclick.io/api/embeddings/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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string"},"model":{"type":"string","default":"text-embedding-3-small"},"top_k":{"type":"integer","default":20,"maximum":200,"minimum":1},"domain":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DOAnC2qhL_uUmpxMsDnx5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs cosine-similarity search over function embeddings using a text query, returning the most semantically similar functions ranked by vector distance.","exampleAgentPrompt":"Search the ForwardLane function index for the top 10 functions most semantically similar to 'authenticate a user with OAuth2 token' — use the text-embedding-3-small model.","exampleUseCases":[{"title":"Discover related API functions by concept","prompt":"Find me the top 20 functions in the ForwardLane index that are semantically closest to 'send an email notification to a user' — I want to see what functions handle notification or messaging."},{"title":"Narrow function search to a specific domain","prompt":"Search ForwardLane for the 5 functions most similar to 'process a payment transaction', but only within the payments domain."},{"title":"Find functions matching a natural language description","prompt":"I need to find functions that handle geolocation lookups — can you search ForwardLane for the top 15 functions semantically similar to 'get coordinates from an address'?"}],"resultDescription":"Returns a ranked list of function matches ordered by cosine similarity to the query embedding. Each result includes function identifiers, similarity scores, and associated metadata. The number of results is controlled by top_k (default 20, max 200), and results can be filtered by domain.","failureModes":["Missing required 'q' query parameter returns a validation error","Invalid top_k value outside 1-200 range returns a parameter error","Unrecognized domain filter may return empty results","Unknown embedding model name may cause a model resolution error","Payment not included or insufficient USDC balance returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need semantic (meaning-based) function discovery rather than keyword or name-based search. It is ideal when you have a natural language description of what a function should do and want to find the closest matches by conceptual similarity. Prefer this over text search when synonym matching and intent-based retrieval are more important than exact token matching. The domain filter makes it especially useful when scoping searches to a known functional category.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-09-24T14:05:47.249Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T21:39:18.830Z","isFirstParty":false,"canonicalSlug":"forwardlane-embedding-similarity-search-7baf0679"}