How to download blog posts and pages

Solved

How to download blog posts and pages

nashguide
Visitor
1 0 0

How do you download blog posts and pages?

Accepted Solution (1)

Blair
Shopify Staff
2067 273 254

This is an accepted solution.

Hi @nashguide,

 

Thank you for reaching out to the Community! I'm happy to provide some assistance with downloading the shops blog posts and pages, to ensure this gets resolved. To confirm I'm fully understanding, you're looking to export these files correct? 

 

If so, I would recommend checking out the Shopify App Store as we have various apps available that will allow you to achieve this. For ease, I've gone ahead and made a few suggestions listed below you can look into: 

 

 

Please let me know if you have any other questions or concerns. 

Blair | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 8 (8)

Blair
Shopify Staff
2067 273 254

This is an accepted solution.

Hi @nashguide,

 

Thank you for reaching out to the Community! I'm happy to provide some assistance with downloading the shops blog posts and pages, to ensure this gets resolved. To confirm I'm fully understanding, you're looking to export these files correct? 

 

If so, I would recommend checking out the Shopify App Store as we have various apps available that will allow you to achieve this. For ease, I've gone ahead and made a few suggestions listed below you can look into: 

 

 

Please let me know if you have any other questions or concerns. 

Blair | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Renars
Shopify Partner
313 32 374

Hello @Blair and @nashguide 

 

Renars here from Matrixify.

Thank you for mentioning our app here!

 

You sure can export your store's Blog Posts and Pages using our app!

The process in the app would be quite simple, create new export, select to export Blog Posts and Pages with details as you need, and start the export. Once it finishes you will be able to download file with this data.

 

Here we have a great "How it works" page that you can go through to learn more about how the app works.

 

If you decide to use our app for this and have any questions or concerns, please let us know directly!

Matrixify | Bulk Import Export Update | https://apps.shopify.com/excel-export-import | https://matrixify.app
GuillaumeA
Excursionist
18 1 11

Seriously? This should not be a default and free functionality of Shopify?

Martin6
Visitor
1 0 0

Yes, it is actually quite complicates to move a simple wordpress site to Shopify. It so easy to import products so it really should be simpler to import post and pages.

GuillaumeA
Excursionist
18 1 11

This should be a Shopify build-in functionality!

R-Daneel
Shopify Partner
17 0 19

I agree with others that this should be built-in functionality on Shopify. You can download a theme, why can't you download a blog?

In the meantime, if a third-party can do it, you can do it if you have access to an in-house developer. Just use the Shopify Admin Rest API. At a glance, it looks like you'd have to retrieve the list of articles in a blog and then loop through that list and retrieve each blog article. For API details look at:
https://shopify.dev/docs/api/admin-rest/2024-04/resources/article#get-blogs-blog-id-articles-article...

Shopify GraphQL doesn't seem to have this functionality yet. See the top of this page:

https://shopify.dev/docs/api/admin-graphql/2024-04/objects/OnlineStoreArticle

R-Daneel
Shopify Partner
17 0 19

Correction. It looks like the ability to use GraphQL for downloading blog articles has been added.

https://shopify.dev/docs/api/liquid/objects/articles

 

I tried this out using Shopify's GraphiQL app and it seemed to work. I haven't built a bulk query yet, but I don't see why this wouldn't work.

matt999
Tourist
5 0 1

The "Filey" app did not work; I tried installing it twice, but it threw a generic error when I tried to use the app.

The "ExIm" app has several recent bad reviews, but it actually worked for me -- partially.

 

ExIm is limited to 50 pages. If you have fewer than that, it might do exactly what you need.

 

If you have more than 50 pages, this method worked for me. You'll need access to a command line (terminal) and the 'curl' binary, so call your local Unix expert if this is unfamiliar. 

1- use ExIm to export pages from your current site. You'll only get the first 50 (first 50 created, I believe). You won't use this file, but you will need the NAME of the file.

2- go to your Apps page on your current site (the one with all the page content): https://admin.shopify.com/store/YOURSITENAME/settings/apps

3- click the "Develop Apps" button. you might have to agree to some things.

4- create a new app with read permissions for pages and content. You need to create an app to get API credentials. You don't need to be an app developer. For the sake of security, I gave my app _only_ read permissions, and only for pages and content. 

5- copy the API credentials. shopify won't show the token more than once, so you have to paste it somewhere safe.

6- use this command from the terminal. You'll need the curl app installed. The following 2 lines are one command; the backslash means "continued on the next line" in a Unix shell:

curl -X GET "https://YOURSITE.myshopify.com/admin/api/2024-04/pages.json?limit=250" \
-H "X-Shopify-Access-Token: YOUR_TOKEN_HERE" > pages.json

 - put your myshopify subdomain in place of 'YOURSITE'

 - put your new API token in place of 'YOUR_TOKEN_HERE'

Note the '?limit=250' in the URL. That's the maximum allowed by the API. If you have more than 250 pages, you'll need to retrieve them in chunks, which I don't know how to do. 

 

 - the above command should create a text file called pages.json with up to 250 of your pages. If you want to delete any, you can. Each page's info is delimited by curly brackets {} ; make sure you delete the entire thing or you'll break the JSON format and the import will fail.

 - zip the file, e.g. :

zip foo.zip pages.json

 - rename the zip file from 'foo.zip' to the exact name of the ExIm export you downloaded earlier. That filename seems to be required by the importer; it appears to contain a checksum. I tried to import my own ZIP files, but everything failed until I used this filename.

 - use ExIm on the new site where you're trying to import pages. Feed it this ZIP file.

 

The above worked for me. It won't work forever, because this API is officially "legacy" as of Oct 1 2024:
https://shopify.dev/docs/api/admin-rest/2024-01/resources/page#get-pages