> For the complete documentation index, see [llms.txt](https://chembl.gitbook.io/unichem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chembl.gitbook.io/unichem/api/sources.md).

# Sources

Detail information from the sources, where our compound references are pointing to, can be access programatically through our web services:

* Single source: `https://www.ebi.ac.uk/unichem/api/v1/sources/{source_id}`
* All sources: `https://www.ebi.ac.uk/unichem/api/v1/sources/`

### Single Source

Every source is assigned a unique numeric identifier in our database, with this ID a single source details can be fetch.

A <mark style="color:blue;">**GET**</mark> call to /sources/{source\_id} where {source\_id} is the unique identifier for that source.

![Example of get source](/files/iGLeP8fcjkS2AWeVueNp)

#### Simple usage example

{% tabs %}
{% tab title="Curl" %}

```shell
curl --request GET \
  --url https://www.ebi.ac.uk/unichem/api/v1/sources/1
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

url = "https://www.ebi.ac.uk/unichem/api/v1/sources/1"

payload = ""
response = requests.request("GET", url, data=payload)

print(response.text)
```

{% endtab %}
{% endtabs %}

Detail information on the response payload and usage [here](https://www.ebi.ac.uk/unichem/beta/api/docs#/Sources/get_unichem_beta_api_v1_sources_).&#x20;

### All Sources

An array of all the sources in our database can be fetch using <mark style="color:blue;">**GET**</mark> to /sources.

![All sources example call](/files/5gWNIGBnDVSh8zqddt76)

#### Simple usage example

{% tabs %}
{% tab title="Curl" %}

```shell
curl --request GET \
  --url https://www.ebi.ac.uk/unichem/api/v1/sources
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

url = "https://www.ebi.ac.uk/unichem/api/v1/sources"

payload = ""
response = requests.request("GET", url, data=payload)

print(response.text)
```

{% endtab %}
{% endtabs %}

Detail information on the response payload and usage [here](https://www.ebi.ac.uk/unichem/api/docs#/Sources).&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://chembl.gitbook.io/unichem/api/sources.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
