For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList records
      • POSTCreate record
      • POSTBulk delete records
      • POSTBulk edit records
      • GETExport records as CSV
      • GETGet field values
      • POSTPreview record filter
      • GETDiscover record schema
      • POSTUpload CSV records
      • GETGet record details
      • PUTUpdate record
      • DELDelete record
      • GETGet record costs
      • GETGet record results
      • DELDelete record result
      • GETGet record step results
Dashboard
LogoLogo
Runtype APIRecords

Get field values

GET
/v1/records/field-values
GET
/v1/records/field-values
$curl -G https://api.runtype.com/v1/records/field-values \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d type=document \
> -d field=category \
> -d limit=5
1{
2 "field": "category",
3 "truncated": false,
4 "type": "document",
5 "values": [
6 {
7 "count": 120,
8 "value": "technology"
9 },
10 {
11 "count": 85,
12 "value": "health"
13 },
14 {
15 "count": 60,
16 "value": "finance"
17 },
18 {
19 "count": 45,
20 "value": "education"
21 },
22 {
23 "count": 30,
24 "value": "entertainment"
25 }
26 ]
27}

Get top distinct values for a metadata field, with per-value counts.

Was this page helpful?
Previous

Preview record filter

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Query parameters

typestringRequired
fieldstringRequired
limitstringOptional

Response

Field values with counts
fieldstring
truncatedboolean
typestring
valueslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error