I want to create a plugin that saves data from an api as pages

Hi, Iā€™m very new to Kirby and I was wondering what the best approach is for this?

What you need is a mixture of

The part of getting data from an API, which is for example done in this guide:

or here:

And then the creating pages part from here:

So basically:

  1. Get the data from the API.
  2. For each page to create, create an array of data
  3. For each data array, create the page (either using $page->createChild() to create the page as child of a given page or Page::create()