# DataCite API

> Returns DataCite DOI metadata by query or DOI, plus repositories (clients) and member organizations (providers).

Category: Search & Knowledge. Region: global. 5 endpoints at `https://api.hoshime.com/v1/datacite/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/datacite
## GET /v1/datacite/dois

Registered DOIs whose metadata matches a query.

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 25. (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: `doi` (string), `publisher` (string), `title` (string), `type` (string), `url` (string), `year` (integer (int64))

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

## GET /v1/datacite/doi

The metadata of one DOI: title, creators, publisher, year and description.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `doi` | string | yes | The DOI, such as 10.5281/zenodo.3233118. (e.g. 10.5281/zenodo.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), `publisher` (string), `title` (string), `type` (string), `url` (string), `year` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/datacite/doi?doi=10.5281%2Fzenodo.3233118" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/datacite/clients

DataCite repositories (clients) whose name matches a query, such as Zenodo or a university.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as zenodo or cern. (e.g. zenodo) |
| `limit` | integer | no | Items per page, 1 to 25. (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: `clientType` (string), `createdAt` (string), `domains` (string), `id` (string), `isActive` (boolean), `languages` (Language[]), `languages[].code` (string), `name` (string), `symbol` (string)

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

## GET /v1/datacite/clientDois

DOIs registered by one DataCite repository (client), such as cern.zenodo for Zenodo, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `client` | string | yes | Repository id, such as cern.zenodo. The clients endpoint lists them. (e.g. cern.zenodo) |
| `limit` | integer | no | Items per page, 1 to 25. (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: `doi` (string), `publisher` (string), `title` (string), `type` (string), `url` (string), `year` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/datacite/clientDois?client=cern.zenodo" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/datacite/providers

DataCite member organisations (providers) whose name matches a query, with their country.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as cern or british library. (e.g. cern) |
| `limit` | integer | no | Items per page, 1 to 25. (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: `country` (string), `createdAt` (string), `id` (string), `name` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/datacite/providers?query=cern" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
