# WebLens Search Trends

> WebLens Search Trends is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-02).

Retrieves Google Trends-style search interest timeline data for a given query term, showing relative popularity over time

## Facts

- Endpoint: POST https://api.weblens.dev/search/trends?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-search-trends-89b92333
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A8EaEJThgygUT-Fo3rdPx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability weblens-search-trends-89b92333 -d '<json body>'
```

Example prompt: Can you pull the search trend timeline for 'cloudflare workers' and show me how interest has changed week by week recently?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Topic to get trend data for"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-search-trends-89b92333/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
