# Source Diversity — Numeric Row Ordering + Date by Category Pivot

> Source Diversity — Numeric Row Ordering + Date by Category Pivot is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Runs two local analytical reports on supplied source diversity data: numeric row ordering and a date-by-category pivot, for up to 200 rows of source_count/outlet_count records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-news-17-122?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/source-diversity-numeric-row-ordering-date-by-category-pivot-3f660abd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b2rG0QC6-lTZWImpbYgRo

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 source-diversity-numeric-row-ordering-date-by-category-pivot-3f660abd -d '<json body>'
```

Example prompt: I have a dataset of news source diversity records with source_count and outlet_count across different channel groups and dates — can you run a numeric row ordering and a date-by-category pivot on the source_count field for up to 200 rows?

## When to prefer this

Choose this endpoint when you have tabular source diversity data (source_count, outlet_count) segmented by channel group and date, and need both a numeric row ranking and a categorical date pivot in a single low-cost call. Ideal for media analysts, journalism researchers, or automated reporting pipelines that track news source diversity over time. Not suitable for live data lookup, prediction, or datasets exceeding 200 rows.

## Known failure modes

- More than 200 rows supplied — request will be rejected or truncated
- Missing required fields (row_id, channel_group, date, source_count, outlet_count) cause validation errors
- Invalid date format (not YYYY-MM-DD) triggers schema validation failure
- Null values in source_count or outlet_count may affect ordering and pivot aggregation
- Invalid field enum value (not 'source_count' or 'outlet_count') causes rejection

## How this service works

Source diversity — Numeric row ordering + Date by category pivot: Numeric row ordering + Date by category pivot for supplied source diversity records (source_count, outlet_count). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two reports derived from the supplied rows: (1) a numerically ordered ranking of the rows by the selected field (source_count or outlet_count), and (2) a pivot table of the selected field values broken down by date and channel_group category. No external data is fetched; all computation is local to the supplied dataset of up to 200 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "channel_group",
     "date",
     "source_count",
     "outlet_count"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "outlet_count": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "source_count": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "channel_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "outlet_count": 1,
     "source_count": 10,
     "channel_group": "group-a"
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "outlet_count": 2,
     "source_count": 20,
     "channel_group": "group-b"
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "outlet_count": 3,
     "source_count": 15,
     "channel_group": "group-a"
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "outlet_count": 4,
     "source_count": 30,
     "channel_group": "group-b"
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "source_count",
    "outlet_count"
   ],
   "type": "string",
   "default": "source_count"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/source-diversity-numeric-row-ordering-date-by-category-pivot-3f660abd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
