How to fetch articles by blog _id from reactjs app using @shopify/shopify-api or other frameworks?

I have a blogs on my store that i need to also render on a seperate react.js website. Calling the articles api from docs works fine from postman but gives cors error on the react.js website, so i setup a expressjs backend and installed the @Shopify_77 /admin-api-client npm library through which i am able to fetch blogs .

So please let me know what is the right way to fetch the articles by blog_id in a react.js either using @Shopify_77 /admin-api-client or any other better approach, without using a seperate server. Thankyou. :slightly_smiling_face:

Create a private app for your store, with the private app API credentials you can easily call rest API easily from your express backend.

Create a URL like this for fetching data with private app credentials:

“https://{API key}:{Admin API access token}@{Shopify URL}/admin/api/2024-01/blogs/{Blog ID}/articles.json”