---
title: Get a dataset
description: Returns one published dataset by its id or its slug: its description, size, source, license, examples, and access.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Get a dataset

`GET /v1/workspaces/{workspaceId}/datasets/{datasetId}`

Returns one published dataset by its id or its slug: its description, size, source, license, examples, and access. A draft, retired, or unknown dataset is 404 not_found. Requires the viewer role.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.
- `datasetId` (string) — The dataset id (dst…) or its slug.

## Example request

```bash
curl \
  --url "https://api.beta.graphon.ai/v1/workspaces/wspq7ws2np5l8z4/datasets/dstC4s3L4w0x1" \
  --header "Authorization: Bearer $GRAPHON_API_KEY"
```

## CLI

```bash
graphon datasets get us-case-law
```

## Example response

```json
{
  "id": "dstC4s3L4w0x1",
  "slug": "us-case-law",
  "title": "US case law",
  "summary": "Opinions of the US Supreme Court and the federal courts of appeals.",
  "description": "Every published opinion of the US Supreme Court since 1950, and of the federal courts of appeals since 2000, as plain text.",
  "category": "legal",
  "source": {
    "name": "CourtListener",
    "url": "https://www.courtlistener.com",
    "license": "Public domain"
  },
  "documentCount": 412904,
  "indexedBytes": "8392045113",
  "indexedAt": "2026-10-26T04:12:00.000Z",
  "examples": [
    {
      "query": "Which cases overruled Chevron?",
      "mode": "answer"
    }
  ],
  "access": {
    "price": {
      "kind": "free"
    },
    "state": "open"
  }
}
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
