---
title: "Get a post"
description: "Its numbers, caption, transcript, views over time and collections. Needs the `videos:read` permission."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mosio.me/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Mosio REST API › Discover

`GET /v1/discover/posts/{id}`

Its numbers, caption, transcript, views over time and collections. Needs the `videos:read` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`getDiscoverPost.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://app.mosio.me/v1/discover/posts/<id>' \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/posts/<id>';
const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/discover/posts/<id>"

headers = {"x-api-key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The post.

#### Example

```json
{
  "post": {
    "id": "string",
    "platform": "tiktok",
    "url": "string",
    "kind": "video",
    "caption": "string",
    "thumbnail_url": "string",
    "duration_seconds": 0,
    "posted_at": "string",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shares": 0,
    "saves": 0,
    "engagement_rate": 0,
    "outlier_score": 0,
    "has_transcript": true,
    "reference_media_id": "string",
    "liked": true,
    "account": {
      "id": "string",
      "platform": "tiktok",
      "handle": "string",
      "name": "string",
      "avatar_url": "string",
      "median_views": 0
    },
    "last_seen_at": "string"
  },
  "transcript": "string",
  "history": [
    {
      "at": "string",
      "views": 0,
      "likes": 0,
      "comments": 0
    }
  ],
  "collections": [
    {
      "id": "string",
      "name": "string"
    }
  ]
}
```

- `post` (`getDiscoverPost.response.200.post`; object, required)
  - `id` (`getDiscoverPost.response.200.post.id`; string, required)
  - `platform` (`getDiscoverPost.response.200.post.platform`; string, required)
    - one of `"tiktok"`, `"instagram"`, `"youtube"`, `"facebook"`
  - `url` (`getDiscoverPost.response.200.post.url`; string, required)
  - `kind` (`getDiscoverPost.response.200.post.kind`; string, required)
    - one of `"video"`, `"image"`, `"carousel"`
  - `caption` (`getDiscoverPost.response.200.post.caption`; string, required)
  - `thumbnail_url` (`getDiscoverPost.response.200.post.thumbnail_url`; string | null, required)
  - `duration_seconds` (`getDiscoverPost.response.200.post.duration_seconds`; number | null, required)
  - `posted_at` (`getDiscoverPost.response.200.post.posted_at`; string | null, required)
  - `views` (`getDiscoverPost.response.200.post.views`; number | null, required)
  - `likes` (`getDiscoverPost.response.200.post.likes`; number | null, required)
  - `comments` (`getDiscoverPost.response.200.post.comments`; number | null, required)
  - `shares` (`getDiscoverPost.response.200.post.shares`; number | null, required)
  - `saves` (`getDiscoverPost.response.200.post.saves`; number | null, required)
  - `engagement_rate` (`getDiscoverPost.response.200.post.engagement_rate`; number | null, required)
  - `outlier_score` (`getDiscoverPost.response.200.post.outlier_score`; number | null, required)
  - `has_transcript` (`getDiscoverPost.response.200.post.has_transcript`; boolean, required)
  - `reference_media_id` (`getDiscoverPost.response.200.post.reference_media_id`; string | null, required)
  - `liked` (`getDiscoverPost.response.200.post.liked`; boolean, required)
  - `account` (`getDiscoverPost.response.200.post.account`; object, required)
    - `id` (`getDiscoverPost.response.200.post.account.id`; string, required)
    - `platform` (`getDiscoverPost.response.200.post.account.platform`; string, required)
      - one of `"tiktok"`, `"instagram"`, `"youtube"`, `"facebook"`
    - `handle` (`getDiscoverPost.response.200.post.account.handle`; string, required)
    - `name` (`getDiscoverPost.response.200.post.account.name`; string | null, required)
    - `avatar_url` (`getDiscoverPost.response.200.post.account.avatar_url`; string | null, required)
    - `median_views` (`getDiscoverPost.response.200.post.account.median_views`; number | null, required)
  - `last_seen_at` (`getDiscoverPost.response.200.post.last_seen_at`; string, required)
- `transcript` (`getDiscoverPost.response.200.transcript`; string | null, required)
- `history` (`getDiscoverPost.response.200.history`; array<object>, required)
  - `at` (`getDiscoverPost.response.200.history.at`; string, required)
  - `views` (`getDiscoverPost.response.200.history.views`; number | null, required)
  - `likes` (`getDiscoverPost.response.200.history.likes`; number | null, required)
  - `comments` (`getDiscoverPost.response.200.history.comments`; number | null, required)
- `collections` (`getDiscoverPost.response.200.collections`; array<object>, required)
  - `id` (`getDiscoverPost.response.200.collections.id`; string, required)
  - `name` (`getDiscoverPost.response.200.collections.name`; string, required)

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`getDiscoverPost.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getDiscoverPost.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`getDiscoverPost.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`getDiscoverPost.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getDiscoverPost.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`getDiscoverPost.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/get-discover-post/index.md
