Synchronize data form website to nextcloud server

i want to sync all data from my website to nextcloud is there any solution.

my website contains different category which having different files,
I want to copy all them to nextcloud.

I there any API / Customization available .

Thank You.

Using OCS APIs i got the solution.