> For the complete documentation index, see [llms.txt](https://diffio.ai/llms.txt). This page is also available as HTML at https://diffio.ai/docs/api-reference/get-share/.

# Get a share

Public endpoint (no API key required) that returns a published share's metadata and signed playback URLs (`files` and `base_url`) for anyone holding `share_id`.

GET `https://api.diffio.ai/v2/shares/{share_id}`

- Key scope: None (public)
- Auth header: No API key needed
- Body: None

## Request

Pass `share_id` in the path; send no `Authorization` header or body.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `share_id` | string | Yes | Public 17-character share identifier (`id` of a published share). |

## Example request

**Python**

```python
from diffio import DiffioClient

# A public call: no API key needed.
client = DiffioClient()

share = client.shares.get_public(
    "Hq7cTnWm3RkZpY2vB",
)
```

**Node.js**

```javascript
import { DiffioClient } from "diffio"

// A public call: no API key needed.
const client = new DiffioClient()

const share =
  await client.shares.getPublic(
    "Hq7cTnWm3RkZpY2vB",
  )
```

**cURL**

```bash
curl "https://api.diffio.ai/v2/shares/Hq7cTnWm3RkZpY2vB"
```

## Response

Returns the `project_share` with signed playback URLs.

Success: `200`

### Response fields

| Field | Type | Present | Description |
| --- | --- | --- | --- |
| `object` | string | Always | Resource type, always `"project_share"`. |
| `id` | string | Always | Public 17-character share identifier passed to `GET /shares/{share_id}`. |
| `generation_id` | string \| null | Always | Identifier of the shared generation, or `null` until the project has a finished generation. |
| `files` | object | Always | Map of shared playback artifact names to signed media URLs (never includes `original`); `{}` until a generation finishes. |
| `base_url` | string \| null | Always | URL prefix shared by every entry in `files` (plays `hls_master` in standard HLS players), or `null` until a generation finishes. |

**Other response fields**

| Field | Type | Present | Description |
| --- | --- | --- | --- |
| `project_id` | string | Always | Identifier of the shared project. |
| `file_name` | string \| null | Always | Recording filename on the project, or `null`. |
| `content_type` | string \| null | Always | Recording MIME type, or `null`. |
| `created_at` | string \| null | Always | ISO 8601 UTC timestamp when the share was first published, or `null`. |
| `has_video` | boolean | Always | True when the project contains video. |
| `duration_seconds` | number \| null | Always | Duration of the shared recording in seconds, or `null`. |
| `preview_seconds` | integer \| null | Always | Playback cap in seconds (rounded up to whole 4-second segments), or `null` when the full recording is shared. |

## Example response (200)

**Response, key fields: Response: key fields**

```json
{
  "object": "project_share",
  "id": "Hq7cTnWm3RkZpY2vB",
  "generation_id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
  "base_url": "https://media.diffio.io/s/v1.REDACTED/",
  "files": {
    "audio": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/restored.mp3",
    "audio_mixed": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/mixed.mp3",
    "hls_master": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/master.m3u8",
    "hls_original": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/noisy/index.m3u8",
    "hls_restored": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/clean/index.m3u8",
    "metadata": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/metadata.json",
    "stems_manifest": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/stems/4014a8c299444bbb866971bbb7b657ca/manifest.v2.json",
    "transcript": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/word_timestamps.json",
    "waveform_original": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/visualizations/hls_waveform_noisy.json",
    "waveform_restored": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/visualizations/hls_waveform_clean.json"
  }
}
```

**Full response: Successful response**

```json
{
  "object": "project_share",
  "id": "Hq7cTnWm3RkZpY2vB",
  "project_id": "62f62565-049f-5e7e-bbd2-9de0cf7ddbfe",
  "generation_id": "ce832a32-a1ce-516a-b8bd-75457bd8517f",
  "file_name": "interview.mp3",
  "content_type": "audio/mpeg",
  "created_at": "2026-11-13T00:34:06.463210Z",
  "has_video": false,
  "duration_seconds": 31.9,
  "preview_seconds": null,
  "base_url": "https://media.diffio.io/s/v1.REDACTED/",
  "files": {
    "audio": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/restored.mp3",
    "audio_mixed": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/mixed.mp3",
    "hls_master": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/master.m3u8",
    "hls_original": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/noisy/index.m3u8",
    "hls_restored": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/hls/clean/index.m3u8",
    "metadata": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/metadata.json",
    "stems_manifest": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/stems/4014a8c299444bbb866971bbb7b657ca/manifest.v2.json",
    "transcript": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/word_timestamps.json",
    "waveform_original": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/visualizations/hls_waveform_noisy.json",
    "waveform_restored": "https://media.diffio.io/s/v1.REDACTED/generations/ce832a32-a1ce-516a-b8bd-75457bd8517f/visualizations/hls_waveform_clean.json"
  }
}
```

## Return codes

- `200` Returns the public share and its playback URLs.
- `404` No active share matches `share_id`, or the share was revoked. [`share_not_found`](https://diffio.ai/docs/api-reference/errors/#share_not_found)
- **`405` Same on every endpoint**

  - `405` HTTP method not supported on this path; check the Allow header (code method_not_allowed).

### Example error response

**Error response**

```json
{
  "error": {
    "code": "share_not_found",
    "message": "No share has that id, or it is no longer shared.",
    "request_id": "6e0f0641ec4f4c4eb6b1a5ce51ec6ac0"
  }
}
```

## Notes

- Allows cross-origin browser requests (`Access-Control-Allow-Origin: *`), and `files.hls_master` plays audio and video directly in standard HLS players.
- Never exposes the uploaded `original` file or the project's other generations.
- Re-fetch `GET /shares/{share_id}` whenever a listener opens the share so the player always receives current URLs.

## Related pages

- Previous: [Revoke a project's share](https://diffio.ai/docs/api-reference/revoke-project-share/): Revoke a project's published share so its public share ID and media URLs stop working.
- Next: [Get usage](https://diffio.ai/docs/api-reference/usage-summary/): Report generation counts, billable seconds, and USD list-price usage in total and by model.

- [Full API guide](https://diffio.ai/docs/developers/full-api-guide/): Every topic, limit and concept in one index.
- [API reference](https://diffio.ai/docs/api-reference/introduction/): Base URL, authentication, errors and every endpoint.
