# How to download images and files of an entity

**URL:** https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817
**Category:** API & Programming
**Created:** [November 18, 2024, 8:20am UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817 "2024-11-18T08:20:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)
#### Post date: [November 18, 2024, 8:20am UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/1 "2024-11-18T08:20:01Z")

</div>

If my articles containing images, then this query:

```graphql
{
  findArticles(published: {is: true}) {
    name
    creationDate
    content {
      secret
      md 
    }
  }
}

```

will provide the images as links, i.e.

```auto
![LinhRab.jpg](/api/files/6ceda0ff-a002-487f-be53-9f971e1c0230#width=1638&height=1638)

```

Beside searching for the string or parsing it into the AST, is there a way to get it right from the API?

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [November 18, 2024, 10:14am UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/2 "2024-11-18T10:14:02Z")

</div>

If you’re talking about images that are embedded in the content of a rich text field, there is no API call that will get you the image directly

---

<div class="post-metadata">

### Author: ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)
#### Post date: [November 18, 2024, 11:20am UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/3 "2024-11-18T11:20:30Z")

</div>

Not sure what you mean. I suppose what I need is just to get the image url (`api/files/6ceda0ff-a002-487f-be53-9f971e1c0230`) without having to fetch the content

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [November 18, 2024, 11:32am UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/4 "2024-11-18T11:32:11Z")

</div>

But you’re talking about images that are in a rich text field, right? You’re not talking about files which have been attached to the entity via the Files field…?

---

<div class="post-metadata">

### Author: ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)
#### Post date: [November 18, 2024, 12:58pm UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/5 "2024-11-18T12:58:12Z")

</div>

yes you are right. I forget that the field is called “rich text”. Why doesn’t it have an API for that? Apparently it has the URL

---

<div class="post-metadata">

### Author: ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)
#### Post date: [November 18, 2024, 2:57pm UTC](https://community.fibery.io/t/how-to-download-images-and-files-of-an-entity/7817/6 "2024-11-18T14:57:31Z")

</div>

> [@Ooker](#):
>
> I forget that the field is called “rich text”. Why doesn’t it have an API for that?

Not sure what you mean. The contents of any rich text field is available [via the API](https://the.fibery.io/@public/User_Guide/Guide/Entity-API-264/anchor=Select-rich-text-Field--f9838a54-3d74-4f49-9f5d-9195731c7e89)

My point is that there is no single dedicated API to find/retrieve files which are embedded in the rich text. You need to retrieve the rich text field contents and then use the [file API](https://the.fibery.io/@public/User_Guide/Guide/File-API-265) to get the file itself.
