---
title: "Get stem counts by ob"
method: GET
path: "/plot-observations/{ob_code}/stem-counts"
tags: ["Stem counts"]
---

# Get stem counts by ob

`GET /plot-observations/{ob_code}/stem-counts`

Retrieve a paginated collection of stem counts associated with the specified plot observation (using its `ob_code`).

## Path parameters

- `ob_code` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `create_parquet` boolean

## Response `200`

Matching stem count(s)

- StemCount
  - `ob_code` string — VegBank plot observation identifier
  - `to_code` string — VegBank taxon observation identifier
  - `tm_code` string — VegBank taxon importance identifier
  - `sr_code` string — VegBank stratum identifier
  - `stratum_name` string — Stratum name, or '<All>' if sr_code is null
  - `sc_code` string — VegBank stem count record identifier
  - `diameter` number, float — Diameter of the stem in centimeters. When diameter classes are used, the diameter is the midpoint between the low end and high end for the diameter class; the offset between this and the endpoints is stored in stem_diameter_accuracy.
  - `diameter_accuracy` number, float — Accuracy of the stem diameter measurements in centimeters, representing the distance between the diameter class midpoint and endpoint
  - `height` number, float — Measured height of the stem in meters. When height classes are used, the height is the midpoint between the low end and high end for the height class; the offset between this and the endpoint is stored in stem_height_accuracy.
  - `height_accuracy` number, float — Accuracy of the measured height of a stem, representing the offset between the midpoint of the class and the endpoint, in meters.
  - `count` integer — Number of stems of a single species that have these specific stem diameter and height data in common
  - `taxon_area` number, float — Area in m2 used to infer the presence of the stem(s) referenced in this record. Overrides similar area field in taxon observation, taxon importance, and/or plot observation. RESERVED VALUE: -1 is used to indicate no known boundaries were used while collecting this stem size.

## Other responses

- `400` — Invalid Parameters

## Changes

> 32 revisions in range; 1 not diffed.

- **2026-02-08** `3ba300c42857` — 2 info
  - api tag `Stem counts` added
  - api tag `Taxon importances` removed
- **2026-02-07** `dafd6d522f81` — 1 info
  - endpoint added
- **2025-04-29** `c9e23cb778c9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nceas/apis/vegbankapi/changes/plot-observations/:ob_code/stem-counts/get.md)

---

[API](https://skmtc.dev/nceas/apis/vegbankapi.md) · [All operations](https://skmtc.dev/nceas/apis/vegbankapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nceas/vegbankapi/revisions/8abfd084d7aa/schema)
