{"uid":"cap_A8EaEJThgygUT-Fo3rdPx","slug":"weblens-search-trends-89b92333","name":"WebLens Search Trends","description":"Google Trends interest over time for a topic, worldwide: a timeline of relative search interest per period (0-100, where 100 is the topic's peak). Use it to see whether interest in a product, technology, brand or keyword is rising, falling or seasonal.","url":"https://api.weblens.dev/search/trends?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","example":"cloudflare workers","maxLength":500,"minLength":1,"description":"Topic to get trend data for"}}},"responseSchema":{"type":"json","example":{"query":"cloudflare workers","timeline":[{"date":"Jul 20 - 26, 2026","values":[{"query":"cloudflare workers","value":87}],"timestamp":"1784908800"}],"requestId":"req_trends123","searchedAt":"2026-07-25T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FgTw5DN-GWUJz0kaDXxzJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves Google Trends-style search interest timeline data for a given query term, showing relative popularity over time","exampleAgentPrompt":"Can you pull the search trend timeline for 'cloudflare workers' and show me how interest has changed week by week recently?","exampleUseCases":[{"title":"Market research for product launch","prompt":"I'm about to launch a new developer tool — can you check the search trend data for 'serverless functions' over the past few weeks so I know if interest is rising or falling?"},{"title":"Tracking competitor brand interest","prompt":"Can you fetch the search trends for 'Vercel' and tell me whether people's interest in them has been going up or down lately?"},{"title":"Content strategy timing","prompt":"I want to write a blog post about WebAssembly — can you check the trend data for 'WebAssembly' to see if it's currently spiking so I can time my publish date right?"}],"resultDescription":"Returns a JSON object containing the queried term, a timeline array of weekly date ranges each with a relative interest value (0-100 scale), a request ID for tracing, and a searchedAt timestamp indicating when the data was fetched.","failureModes":["Empty or ambiguous query string returns no timeline data","Rate limiting or payment failure via x402 protocol returns 402 Payment Required","Query for a very niche term with no search volume may return zero values across all dates","Network timeout or upstream data source unavailability returns 5xx error","Invalid request body format returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need time-series search interest data for a specific keyword or topic — useful for market research, content timing, SEO strategy, or tracking brand awareness trends. Prefer this over general web scraping endpoints when you specifically need structured trend/popularity-over-time data rather than raw page content. The caching discount (70% cheaper for cached responses) makes it cost-effective for frequently queried popular terms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T00:34:39.901Z","isFirstParty":false,"canonicalSlug":"weblens-search-trends-89b92333"}