{"uid":"cap_peLFcgS7n3xZS-Of2lwpB","slug":"book402-hybrid-book-search-79ae16f3","name":"Book402 Hybrid Book Search","description":"Hybrid BM25+vector search across 3,807 books. Returns ranked results with titles, authors, genres, and relevance scores. Query param: q (string, required) - search query, limit (number, optional, default 20). Example: GET /search/hybrid?q=stoicism. Returns JSON array of matching books.","url":"https://book402.com/search/hybrid","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":["q"],"properties":{"q":{"type":"string","description":"Search query"},"limit":{"type":"string","description":"Max results"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"total":1,"results":[{"id":42,"genre":"Philosophy","score":0.95,"title":"Meditations","author":"Marcus Aurelius"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_YJwhcDXnVAXV1gSqabh6f","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 hybrid BM25+vector search across 3,807 books, returning ranked results with titles, authors, genres, and relevance scores","exampleAgentPrompt":"Search Book402's library of 3,807 books for titles about stoicism and return the top 5 results with authors, genres, and relevance scores.","exampleUseCases":null,"resultDescription":"A JSON array of matching books, each with an id, title, author, genre, and a relevance score (float). Results are ranked by combined BM25 and vector similarity. The total count of matches is also returned.","failureModes":["Missing required 'q' parameter returns a 400 or validation error","Empty or overly generic query may return low-relevance results with low scores","Limit parameter exceeding allowed max may be clamped or rejected","Payment not sent or insufficient USDC triggers a 402 Payment Required response","Network timeout if the backend search index is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need to discover books by topic, concept, theme, or author using natural language queries. The hybrid BM25+vector approach makes it better than pure keyword search for semantic queries like 'books about inner peace' or 'Stoic philosophy'. Prefer this over full-text passage search when you want book-level discovery rather than specific excerpts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:40:42.223Z","isFirstParty":false}