# AlphaLens Stock Search API

> AlphaLens Stock Search API is a paid API for AI agents from alphcok.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-17).

Search and retrieve AI-powered stock intelligence including analysis, technical indicators, sentiment scores, and portfolio risk data for a given query

## Facts

- Endpoint: POST https://alphcok.vercel.app/api/search?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-stock-search-api-ec46e7fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iBHQHk0s7xKCrWP3ms-Ju

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 alphalens-stock-search-api-ec46e7fa -d '<json body>'
```

Example prompt: Search AlphaLens for stock intelligence on NVDA — I want to see the AI-powered sentiment score, technical indicators, and any risk signals for Nvidia right now.

## When to prefer this

Use this endpoint when you need a quick, AI-synthesized overview of a stock including sentiment, technicals, and risk in a single search call, especially when paying per-request via x402 on Base chain is acceptable and you want structured financial intelligence rather than raw market data feeds.

## Known failure modes

- Missing required 'query' field returns validation error
- Empty or ambiguous query may return low-confidence or empty data
- Payment failure via x402 on Base chain results in 402 Payment Required
- Unrecognized ticker or company name may return no results
- Network timeout on Vercel serverless cold start

## How this service works

AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.

## Output

A JSON object with a success boolean and a data object containing AI-generated stock analysis, technical indicator values, sentiment scores, and portfolio risk metrics relevant to the search query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alphalens-stock-search-api-ec46e7fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphcok.vercel.app](https://www.zero.xyz/host/alphcok.vercel.app/llms.txt)
