# How often every embed link of the organisation was shown, by website

> Page: https://docs.plotwork.dev/api/get-orgs-org-embed-links-views. Index of every page: https://docs.plotwork.dev/llms.txt

The last 30 days, by link and website, with the diagram each shows.

`GET /orgs/{org}/embed-links/views`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | How often every embed link of the organisation was shown, by website. |
| What does it take? | `org` in the path. |
| What does it return? | Status 200 with a body of type [`EmbedLinkViews`](https://docs.plotwork.dev/api/schemas.md#embedlinkviews). |
| What can go wrong? | `401` not signed in; `403` only the owner and admins may (orgs.forbidden); `404` no such organisation, or the caller is not a member of it; `429` too many requests; `503` organisations are not set up on this server. Every failure uses the one error envelope. |

## What it does

The last 30 days, by link and website, with the diagram each shows. For the owner and admins.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The views. | [`EmbedLinkViews`](https://docs.plotwork.dev/api/schemas.md#embedlinkviews) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | Only the owner and admins may (orgs.forbidden). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation, or the caller is not a member of it. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Organisations are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`EmbedLinkViews`](https://docs.plotwork.dev/api/schemas.md#embedlinkviews).

| Field | Type | Required | Description |
|---|---|---|---|
| `available` | `boolean` | yes | False when views are not set up on this server or could not be read now. |
| `days` | `integer` | yes |  |
| `links` | `object[]` | yes |  |
| `links[].linkId` | `string` | yes |  |
| `links[].diagramId` | `string` | yes |  |
| `links[].label` | `string \| null` | yes |  |
| `links[].shown` | `integer` | yes |  |
| `links[].refused` | `integer` | yes |  |
| `links[].sites` | `object[]` | yes |  |
| `links[].sites[].site` | `string` | yes | The host of the page that asked, or empty for requests that named no page. |
| `links[].sites[].shown` | `integer` | yes |  |
| `links[].sites[].refused` | `integer` | yes | Placeholders: a site not on the list, no site named, or an ended link. |
| `links[].sites[].lastDay` | `string` | yes | The last UTC day it asked, `YYYY-MM-DD`. |
| `links[].days` | `object[]` | yes |  |
| `links[].days[].day` | `string` | yes |  |
| `links[].days[].shown` | `integer` | yes |  |
| `links[].days[].refused` | `integer` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
