# OpenAIRE API

> Returns research publications, datasets and projects from OpenAIRE matching keywords, with DOIs, authors, funders and dates.

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

Publications in OpenAIRE that match keywords, with DOI, authors and access right.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as climate or genome. (e.g. climate) |
| `limit` | integer | no | Items per page, 1 to 100. (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: `accessRight` (string), `creators` (string[]), `doi` (string), `id` (string), `publishedDate` (string), `publisher` (string), `title` (string), `type` (string)

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

## GET /v1/openaire/datasets

Research datasets in OpenAIRE that match keywords, with DOI and creators.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as climate or genome. (e.g. genome) |
| `limit` | integer | no | Items per page, 1 to 100. (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: `accessRight` (string), `creators` (string[]), `doi` (string), `id` (string), `publishedDate` (string), `publisher` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/openaire/datasets?query=genome" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openaire/projects

Research projects in OpenAIRE that match keywords, with code, funder and dates.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as climate or genome. (e.g. climate) |
| `limit` | integer | no | Items per page, 1 to 100. (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: `acronym` (string), `code` (string), `endDate` (string), `funder` (string), `id` (string), `startDate` (string), `title` (string)

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

## GET /v1/openaire/organizations

Research organisations in OpenAIRE, such as universities, institutes and companies, with country and website. Filter by part of the name with query.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the organisation's legal name, such as university. Omit for all organisations. (e.g. CERN) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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), `countryCode` (string), `id` (string), `name` (string), `shortName` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/openaire/organizations?query=CERN" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openaire/dataSources

Data sources in OpenAIRE, such as repositories, journals and aggregators, with their type and website. Filter by name with query.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the official name, such as zenodo. Omit for all data sources. (e.g. zenodo) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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), `name` (string), `type` (string), `url` (string)

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

## GET /v1/openaire/software

Software records in OpenAIRE whose title matches the words, with authors, publisher, date, DOI and code repository.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words the software title contains, such as genome. (e.g. genome) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `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: `authors` (string[]), `codeRepositoryUrl` (string), `doi` (string), `id` (string), `publicationDate` (string), `publisher` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/openaire/software?query=genome" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
