# How to include images when importing blog posts?

**URL:** <https://forum.ghost.org/t/how-to-include-images-when-importing-blog-posts/42162>\
**Category:** Developer help\
**Created:** [October 24, 2023, 5:32pm UTC](https://forum.ghost.org/t/how-to-include-images-when-importing-blog-posts/42162 "2023-10-24T17:32:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [October 24, 2023, 6:55pm UTC](https://forum.ghost.org/t/how-to-include-images-when-importing-blog-posts/42162/4 "2023-10-24T18:55:52Z")

</div>

Are you using the SDK? Highly recommended.

Here’s an example in Mark’s post:

> [@Uploading images to ghost Admin-API](https://forum.ghost.org/t/uploading-images-to-ghost-admin-api/41348/9):
>
> Have you considered using the official Ghost JavaScript SDK? With it, you don’t have to worry about content types, formData or blobs. It would be like this: import GhostAdminAPI from '@tryghost/admin-api' const token = 'SECRET'; const api = new GhostAdminAPI({ url: 'http://localhost:2368', key: token, version: "v5.0", }); const apiRes = await api.images.upload({file: imagePath}); console.log(apiRes); It’s documented here:

---

_[View the full topic](https://forum.ghost.org/t/how-to-include-images-when-importing-blog-posts/42162)._
