I would like to be able to create code so that it pull my Pinterest pins to my wix database such that each Pinterest “board” becomes a category and all pins (title/URL/comments/pic) within that board are categorized within that category. Is such functionality possible within Wix Code?
Hi Brooke,
In general, the answer is Yes
Assuming Pinterest exposes an API that provides all the data you need, you can fetch the data via Wix Code and then insert it into the Database using Wix Data.
Note that synchronizing the data might be a challenge you’ll need to think about - First, you get the data for the first time and insert into the Database, but then you add more data in Pinterest - when do you get the additional data? How do you make sure you don’t create duplicate entries? etc.
See Velo: Accessing 3rd-Party Services with the Fetch API | Help Center | Wix.com on how to work with external APIs.
See https://www.wix.com/code/reference/wix-data.html for reference on working directly with the Database.
Good luck!
Hi Brooke! Did you ever figure out a solution based on the documentation Ofer provided?