# DopamineDesk News Sentiment API

> DopamineDesk News Sentiment API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns a sentiment score, label, and top articles for a named company, brand, or person based on recent news coverage.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/news_sentiment
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-news-sentiment-api-c2bf2b9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q4S1yPOPbI5X-YZo1-TYH

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 dopaminedesk-news-sentiment-api-c2bf2b9f
```

Example prompt: What's the current news sentiment for Microsoft over the last 7 days — is it bullish or bearish, and which articles are driving it?

## When to prefer this

Choose this endpoint when you need a quick, quantified news sentiment signal for a specific company, brand, or public figure — especially for pre-investment research, brand health checks, or competitive intelligence. It is best when you want both a numeric score and labeled sentiment backed by real article references, rather than raw social media sentiment or stock price data.

## Known failure modes

- Missing or unrecognized entity name returns an error or empty results
- Lookback period too long may return limited data if news coverage is sparse
- Rate limits or payment failures return 402 or 429 errors
- Ambiguous entity names (e.g. common words) may return mixed or inaccurate results
- No recent news coverage for the entity may yield low article count and unreliable sentiment

## How this service works

Fetch recent Hacker News stories for a topic and apply a transparent keyword-lexicon sentiment score.

## Output

A JSON object containing the entity name, an overall sentiment score (0–1 float), a human-readable sentiment label (e.g. 'Bullish/Positive'), a count of articles analyzed, and an array of top articles each with title, source, and individual sentiment score.

## Request schema (JSON Schema)

```json
{
 "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": [
      "entity"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "description": "Lookback period in days."
      },
      "entity": {
       "type": "string",
       "description": "Company, brand, or person name."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "analysis_method",
      "fetched_at",
      "topic",
      "articles_analyzed",
      "sentiment_score",
      "sentiment_label",
      "articles",
      "marketplace_metadata"
     ],
     "properties": {
      "topic": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "articles": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "fetched_at": {
       "type": "string"
      },
      "analysis_method": {
       "type": "string"
      },
      "sentiment_label": {
       "type": "string"
      },
      "sentiment_score": {
       "type": "integer"
      },
      "articles_analyzed": {
       "type": "integer"
      },
      "marketplace_metadata": {
       "type": "object",
       "required": [
        "data_mode",
        "billable",
        "availability",
        "source"
       ],
       "properties": {
        "source": {
         "type": "string"
        },
        "billable": {
         "type": "boolean"
        },
        "data_mode": {
         "type": "string"
        },
        "availability": {
         "type": "string"
        }
       },
       "additionalProperties": true
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "topic": "Microsoft",
  "source": "Hacker News Algolia API",
  "success": true,
  "articles": [
   "[nested detail omitted from the challenge header; see the full example in /openapi.json]"
  ],
  "fetched_at": "2026-08-07T07:32:38.571Z",
  "analysis_method": "transparent keyword-lexicon sentiment v1",
  "sentiment_label": "NEUTRAL",
  "sentiment_score": 0,
  "articles_analyzed": 10,
  "marketplace_metadata": {
   "source": "Hacker News Algolia API plus deterministic lexicon",
   "billable": true,
   "data_mode": "live_source",
   "availability": "operational"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-news-sentiment-api-c2bf2b9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
