Skip to main content

Can I export my articles?

Victor avatar
Written by Victor
Updated yesterday

A bit technical and is easiest to do with Postman.

⚠️ This is technical and requires some knowledge of API's.

Prerequisites:


Start exporting your articles

Step 1. In the account, go to the Settings -> API -> Your keys. Here, select "+ New token" and give the token a recognizable name.

Step 2. Go to our API documentation and look for "Get Stories" πŸ‘‰ Quick link. Now, select "Run in Postman" to set up the request (or use the desktop version). It's also easy to fork the collection, so you can easily save your requests.

  • Use the API token for the {{REST_BEARER_TOKEN}} in the environment variables to ensure proper authentication.

  • Look at the params tab to make sure the filters are set ot your preferences

    • Page: The current page

    • Count: The number of items returned per page, defaults to 10, max 100

    • lang: Filters stories on given language code

    • source: If set, only articles that are originals (not translations of other articles) will be returned

    • status: One of published, drafted, scheduled or all (defaults to published)

    • updated_after: Filter on stories updated after the given date (format: 2021-02-01T15:33:56+00:00)

    • author_id: Filter on stories by author ID

The result is JSON that contains all articles for this request.

Step 3. To retrieve more information for each article, run the "Get Story" hook for every article. Use the ID's from the "Get Stories" request. This allows to add:

  • Content

  • Tags

  • Primary category

  • Categories

  • Author

  • Translations

  • Source (source language)

  • Custom fields

  • Destinations

  • Metrics

Did this answer your question?