# getEuropePmcSupplementary

**Identifier:** `europepmc_getEuropePmcSupplementary`

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

Read the supplementary material of an article: supplementary tables ("Table S7"), extended data figures, appendices, protocols and datasets published alongside the paper, which are NOT part of the full text returned by getEuropePmcFullText. Call without `fileName` to list the files with the caption saying what each one holds, then again with one file name to extract its text (PDF, Word, Excel, CSV and plain text are read; images are listed but hold no text). Only works for open-access articles deposited in PMC that have supplementary files.

## Run it with the CLI

```bash
kirha tools run europepmc_getEuropePmcSupplementary \
  --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_getEuropePmcSupplementary",
  "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": {
    "fileName": {
      "description": "Exact file name from a previous call's `files`; omit to list the archive",
      "type": "string"
    },
    "id": {
      "description": "Article id from searchArticles or getArticle, a PMID, PMCID, PPR preprint id or DOI",
      "minLength": 1,
      "type": "string"
    },
    "length": {
      "default": 20000,
      "maximum": 40000,
      "minimum": 1000,
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "description": "nextOffset from a previous call",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "fileName": {
      "type": "string"
    },
    "files": {
      "description": "Every file in the archive, readable ones first",
      "items": {
        "additionalProperties": false,
        "properties": {
          "caption": {
            "description": "What the file holds, as the article declares it, e.g. \"Table S7 QTL localization...\"",
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "document",
              "spreadsheet",
              "image",
              "data",
              "other"
            ],
            "type": "string"
          },
          "sizeBytes": {
            "type": "number"
          }
        },
        "required": [
          "fileName",
          "kind",
          "sizeBytes"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "nextOffset": {
      "type": "number"
    },
    "note": {
      "description": "Why the requested file holds no text",
      "type": "string"
    },
    "offset": {
      "type": "number"
    },
    "pmcid": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "totalLength": {
      "description": "Characters extracted from the file",
      "type": "number"
    }
  },
  "required": [
    "context",
    "pmcid",
    "files"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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