# Add PDFs to an entry

JabRef offers finding full text documents online. Mostly, these are PDFs file. To use this feature, go to "Lookup" and then select "Find full text documents online".

<figure><img src="https://2944476579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-2910905616%2Fuploads%2Fgit-blob-e5f4a039fb0b46d4ab373081bb49f324793ee6bc%2Flook-up-search-for-unlinked-files.png?alt=media" alt=""><figcaption><p>Lookup > Search for unlinked local files</p></figcaption></figure>

Then, JabRef uses online services to find a PDF. (Implementation details are provided at the [developer's documentation](https://devdocs.jabref.org/code-howtos/fetchers.html).)

<figure><img src="https://2944476579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-2910905616%2Fuploads%2Fgit-blob-a338edd5891f393dec4700cbec41614ad7248338%2Flooking-up-search-for-unlinked-files.png?alt=media" alt=""><figcaption><p>JabRef looking up full text documents</p></figcaption></figure>

Result of the look up:

<figure><img src="https://2944476579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-2910905616%2Fuploads%2Fgit-blob-30bd71949ac248376d326d808c7af0d650f2f4f5%2Flook-up-result.png?alt=media" alt=""><figcaption><p>Look up result</p></figcaption></figure>

## Supported sources

JabRef uses different publishers and services to find full text documents. When multiple sources find a PDF for the same entry, JabRef prefers results from higher-trust sources (e.g., a publisher's own site is preferred over a meta-search aggregator).

## Configuring API keys

Some publishers/services require an API key to work. You can configure API keys in **File > Preferences > Web search**.

<figure><img src="https://2944476579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-2910905616%2Fuploads%2Fgit-blob-e65a7bf587682faef96eb3d01a67d8bd4fab0b1e%2Fpreferences-web-search-api-keys.png?alt=media" alt=""><figcaption><p>Configuring API keys in Preferences > Web search</p></figcaption></figure>

For each publisher that supports an API key, click the **"Configure API key"** button next to it to enter your key.

The following publishers require API keys:

| Publisher | API key                                                                                                                                  |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Wiley TDM | **Required.** Without a token, Wiley PDF downloads will fail (Wiley blocks direct downloads). See [Wiley setup](#wiley-tdm-setup) below. |

### Wiley TDM setup

Wiley journals cannot be downloaded directly because Wiley blocks automated access with Cloudflare protection. Instead, JabRef uses Wiley's official [Text and Data Mining (TDM) API](https://onlinelibrary.wiley.com/library-info/resources/text-and-datamining) to retrieve PDFs.

To set it up:

1. Go to the [Wiley TDM page](https://onlinelibrary.wiley.com/library-info/resources/text-and-datamining) and sign in with your Wiley account.
2. Accept the click-through license agreement to receive your personal TDM API token.
3. In JabRef, go to **File > Preferences > Web search**.
4. Find **"Wiley TDM"** in the list, click **"Configure API key"**, paste your token, and check **"Save API key to use in future?"**.

<figure><img src="https://2944476579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lr3JU9j9iSUW8RYz1hD-2910905616%2Fuploads%2Fgit-blob-5466f26b47571417fd522c9bcd91f4f948afd83b%2Fpreferences-wiley-tdm-token.png?alt=media" alt=""><figcaption><p>Configuring the Wiley TDM token</p></figcaption></figure>

After configuring the token, **Lookup > Find full text documents online** will be able to download PDFs for Wiley DOIs.

{% hint style="info" %}
The Wiley TDM token is personal and non-transferable. Each user needs to obtain their own token. You can only access articles that your institution subscribes to.
{% endhint %}
