# INSPIRE HEP API

> Returns high-energy physics literature, author profiles, conferences, institutions and experiments from INSPIRE.

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

INSPIRE papers that match a query, with the page's nextCursor (a page number).

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | INSPIRE query, such as higgs or a:Witten. (e.g. higgs) |
| `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: `arxivId` (string), `authors` (Author[]), `authors[].avatarUrl` (string), `authors[].id` (string), `authors[].name` (string), `authors[].url` (string), `authors[].username` (string), `citationCount` (integer (int64)), `date` (string), `id` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/inspirehep/literature?query=higgs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/inspirehep/record

One INSPIRE literature record by its record id.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | INSPIRE record id, such as 1. (e.g. 1) |
| `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: `arxivId` (string), `authors` (Author[]), `authors[].avatarUrl` (string), `authors[].id` (string), `authors[].name` (string), `authors[].url` (string), `authors[].username` (string), `citationCount` (integer (int64)), `date` (string), `id` (string), `title` (string)

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

## GET /v1/inspirehep/authors

INSPIRE author profiles that match a name, with their ORCID and paper count.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Author name, such as Witten, Edward or a:Witten. (e.g. Witten, Edward) |
| `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: `arxivCategories` (string[]), `avatarUrl` (string), `bio` (string), `createdAt` (string), `currentInstitution` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `name` (string), `orcid` (string), `paperCount` (integer (int64)), `postCount` (integer (int64)), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/inspirehep/authors?query=Witten%2C+Edward" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/inspirehep/conferences

INSPIRE conferences and workshops that match a search, with dates and place.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Conference words, such as higgs or CERN school. (e.g. higgs) |
| `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: `city` (string), `cnum` (string), `country` (string), `endDate` (string), `id` (string), `startDate` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/inspirehep/conferences?query=higgs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/inspirehep/institutions

INSPIRE institutions that match a name, with their country.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Institution name, such as CERN or Max Planck. (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: `city` (string), `country` (string), `id` (string), `name` (string)

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

## GET /v1/inspirehep/experiments

High-energy physics experiments in INSPIRE that match a search, with their collaboration.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Experiment name, such as atlas or belle. (e.g. atlas) |
| `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: `collaboration` (string), `id` (string), `longName` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/inspirehep/experiments?query=atlas" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/inspirehep/citedBy

Papers in INSPIRE that cite one paper, by its INSPIRE record id, with the page's nextCursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | INSPIRE literature record id, such as 1. (e.g. 1) |
| `limit` | integer | no | Items per page, 1 to 25. (default 10; e.g. 5) |
| `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: `arxivId` (string), `authors` (Author[]), `authors[].avatarUrl` (string), `authors[].id` (string), `authors[].name` (string), `authors[].url` (string), `authors[].username` (string), `citationCount` (integer (int64)), `date` (string), `id` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/inspirehep/citedBy?id=1&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/inspirehep/references

Papers in INSPIRE that one paper cites, by its INSPIRE record id, with the page's nextCursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | INSPIRE literature record id, such as 2181837. (e.g. 2181837) |
| `limit` | integer | no | Items per page, 1 to 25. (default 10; e.g. 5) |
| `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: `arxivId` (string), `authors` (Author[]), `authors[].avatarUrl` (string), `authors[].id` (string), `authors[].name` (string), `authors[].url` (string), `authors[].username` (string), `citationCount` (integer (int64)), `date` (string), `id` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/inspirehep/references?id=2181837&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
