# getArticle

**Identifier:** `europepmc_getArticle`

**Provider:** [Europe PMC](https://kirha.com/providers/europepmc.md)

One Europe PMC article with its abstract, by an id from searchArticles, a PMID or a PMCID.

## Run it with the CLI

```bash
kirha tools run europepmc_getArticle \
  --input '{
    "id": "<id>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "europepmc_getArticle",
  "input": {
    "id": "<id>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "id": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "article": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "abstract": {
              "type": "string"
            },
            "affiliation": {
              "type": "string"
            },
            "doi": {
              "type": "string"
            },
            "firstAuthor": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "indexDate": {
              "type": "string"
            },
            "isOpenAccess": {
              "type": "boolean"
            },
            "journal": {
              "type": "string"
            },
            "license": {
              "type": "string"
            },
            "pmcid": {
              "type": "string"
            },
            "pmid": {
              "type": "string"
            },
            "publicationDate": {
              "type": "string"
            },
            "publicationTypes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "source": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "source",
            "title",
            "publicationTypes",
            "isOpenAccess"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "article"
  ],
  "type": "object"
}
```

## Related tools

Other Europe PMC tools that this tool refers to, or that refer to it.

- [`searchArticles`](https://kirha.com/providers/europepmc/searchArticles.md)

-----

[All Europe PMC tools](https://kirha.com/providers/europepmc.md) · [< Back to tools list](https://kirha.com/tools.md)