# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
