Skip to content
Skip to Content
DalalOSdocs

GET /screen/field-stats

Per-field range statistics

Min, max, median, quartiles, 5th/95th percentile, equal-width histogram counts and uneven round-number bands (open at both ends, in the display unit) of each requested field across the current universe, for slider hints and size bands, with how many companies have no figure (split into field-does-not-apply-to-the-company-type and not-on-file).

In plain words: The spread of one screener figure across all companies (minimum, maximum, median, quartiles), for sliders and histograms.

Try it

To test this route you need an API key on a plan that includes the REST API. Create one on the keys page of your dashboard, paste it into the Authorization field of the reference on this page and press Send. Your key stays in this browser tab.

Per-field range statistics
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/screen/field-stats?metric_ids=pe%2Croce%2Cmarket_cap&bins=10"
{
  "status": "success",
  "data": {
    "generation": 100,
    "universe": 6063,
    "fields": [
      {
        "metric_id": "pe",
        "label": "Price to earnings",
        "short_label": "P/E",
        "unit": "multiple",
        "unit_kind": "multiple",
        "surface_scale": 1,
        "count": 3277,
        "missing": {
          "missing": 2763,
          "not_applicable": 23
        },
        "min": 0.0344,
        "max": 100,
        "median": 19.4861,
        "p25": 10.6448,
        "p75": 34.6847,
        "p5": 4.47374,
        "p95": 74.52664,
        "display": {
          "min": 0.0344,
          "max": 100,
          "median": 19.4861,
          "p25": 10.6448,
          "p75": 34.6847,
          "p5": 4.47374,
          "p95": 74.52664
        },
        "bins": {
          "edges": [
            0.0344,
            10.03096
          ],
          "counts": [
            750,
            920
          ]
        },
        "bands": {
          "edges": [
            0,
            20
          ],
          "display_edges": [
            0,
            20
          ],
          "counts": [
            0,
            1669
          ]
        }
      },
      {
        "metric_id": "roce",
        "label": "Return on capital employed",
        "short_label": "ROCE",
        "unit": "percentage",
        "unit_kind": "percent",
        "surface_scale": 100,
        "count": 3598,
        "missing": {
          "missing": 1921,
          "not_applicable": 544
        },
        "min": -2.7739,
        "max": 2.9195,
        "median": 0.09955,
        "p25": 0.020025,
        "p75": 0.189575,
        "p5": -0.15336,
        "p95": 0.41772,
        "display": {
          "min": -277.39,
          "max": 291.95,
          "median": 9.955,
          "p25": 2.0025,
          "p75": 18.9575,
          "p5": -15.336,
          "p95": 41.772
        },
        "bins": {
          "edges": [
            -2.7739,
            -2.20456
          ],
          "counts": [
            3,
            5
          ]
        },
        "bands": {
          "edges": [
            -0.2,
            -0.1
          ],
          "display_edges": [
            -20,
            -10
          ],
          "counts": [
            149,
            93
          ]
        }
      }
    ],
    "unavailable": []
  },
  "cached_at": "2026-11-27T14:48:27+00:00",
  "source": "indian-stock-mcp",
  "stale": false,
  "error": null,
  "reason_code": null,
  "data_age_seconds": 624.932
}

Saved answer. Run on 2026-11-27, answered 200. Lists show their first item in full; the other items and long text are shortened. A call you make now gets the current answer.

A call can also answer 402, 403, 409 or 429 when a plan's limit is reached; those are described on Plans, credits and errors.

Parameters and response

GET
/screen/field-stats

Authorization

bearerAuth
headerAuthorizationBearer <token>

DalalOS API key (isk_live_...) as a Bearer token. Create one in the DalalOS dashboard.

Query Parameters

metric_ids?string

Comma-separated canonical metric ids from /ratios (1..40).

bins?integer

Histogram bins per field (5..50).

Default20

Response Body

Success (or success-with-empty when nothing is cached).

application/json
  1. response

Standard DalalOS response envelope. source is a per-tool provenance tag; stale/data_age_seconds describe cache freshness.

as_of?string

ISO date (YYYY-MM-DD) the data refers to: the trade date of the newest row, or the end date of the newest period. Present only on tools that state one; cached_at is the fetch time.

Formatdate
cached_at?string

ISO timestamp the served data was refreshed.

data?unknown

Tool payload (object or array); null on error.

data_age_seconds?number

Present only when cached_at is set.

error?string
reason_code?string

Stable machine-readable category (no_data, not_found, bad_request,...).

resolved_via?string

Present only when a query resolved via a rename/merger alias (rename, merger, demerger_successor; single-company result) or, on /v1/search, an everyday name (common_name: the company it means is the first row and carries the same resolved_via on the row; ordinary matches follow).

source?string
stale*boolean
status*string
Value in"success""error"

What comes back

The top-level fields of data in the saved answer, run on 2026-11-27. The fields can differ for another company or window.

Fields of data
FieldType
generationnumber
universenumber
fieldslist
unavailablelist

Errors

Errors specific to this route
StatusMeaning on this route
503No metrics generation is published yet (reason_code=snapshot_unavailable).

The errors every route can return (401, 402, 403, 429 and the rest) are on Plans, credits and errors.

In MCP

No MCP tool reads this data. Use the REST route.

Notes

  • Read from the published metrics generation and the quotes, the same stored values a condition is evaluated against, and cached until either changes.
  • Nothing is filled or estimated.
  • Stored units plus a display copy in the field's display unit.
  • Fields that cannot be summarised are listed under unavailable.

Research data only. Answers are disclosed facts and mechanically computed figures. They are not investment advice.

KEEP EXPLORING