# Zenodo API

> Returns Zenodo research records and communities matching a query, single records with descriptions, and records in a community.

Category: Government & Open Data. Region: global. 6 endpoints at `https://api.hoshime.com/v1/zenodo/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/zenodo
## GET /v1/zenodo/records

Zenodo records whose metadata matches a query, newest match first.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as covid. (e.g. covid) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `creators` (Creator[]), `creators[].name` (string), `doi` (string), `id` (string), `publicationDate` (string), `resourceType` (string), `title` (string), `url` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/records?query=covid" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/zenodo/record

One Zenodo record by its id, with its description.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Record id, such as 3233118. (e.g. 3233118) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `creators` (Creator[]), `creators[].name` (string), `description` (string), `doi` (string), `id` (string), `publicationDate` (string), `resourceType` (string), `title` (string), `url` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/record?id=3233118" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/zenodo/recordFiles

The files of one Zenodo record, with name, size, checksum and download link.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Record id, such as 3233118. (e.g. 3233118) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `checksum` (string), `key` (string), `size` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/recordFiles?id=3233118" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/zenodo/recordVersions

The versions of one Zenodo record's concept, newest first, with each version's number and date.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Record id of any version, such as 3233118. (e.g. 3233118) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `creators` (Creator[]), `creators[].name` (string), `doi` (string), `id` (string), `publicationDate` (string), `resourceType` (string), `title` (string), `url` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/recordVersions?id=3233118" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/zenodo/communities

Zenodo communities whose title or description matches a query.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as climate or covid. (e.g. climate) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `description` (string), `id` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/communities?query=climate" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/zenodo/communityRecords

Zenodo records published in one community, by its slug, 10 per page.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | Community identifier, such as ecfunded. (e.g. ecfunded) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `creators` (Creator[]), `creators[].name` (string), `doi` (string), `id` (string), `publicationDate` (string), `resourceType` (string), `title` (string), `url` (string), `version` (string)

```bash
curl "https://api.hoshime.com/v1/zenodo/communityRecords?slug=ecfunded" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
