on click push data to another website

i created a website on wix with subscription plans and members page and on the member page i want to add a button that when they click it they will be redirected to my non-wix website and use the members login credential to login to my non-wix website. how can i do that?

Hello,

Using Corvid you can create functions to expose the functionality of your site as a service. That means other people can use the functionality of your site by writing code that calls your site’s API as defined by Wix Functions you create.

Corvid: Exposing a Site API with HTTP Functions

Below you can also find some examples that you can open in your Editor, play with them, adjust the code to your needs and implement it on your site.

Expose and Access Site APIs
Exposing APIs

hi i tried using http site api but i can not share PrivateMembersData databse

You won’t be do do that, see this previous forum post for more details.
https://www.wix.com/corvid/forum/community-discussion/expose-a-rest-api-for-site-members-to-login-similar-to-a-3rd-party-authentication

The Wix Site API is only for getting info about your site itself.
https://www.wix.com/corvid/reference/wix-site.html
https://www.wix.com/corvid/reference/wix-site-backend.html

Also, note that the Wix Members app collection of members/PrivateMembersData does not hold any passwords and you can not get access to any of the users passwords through the Wix CRM either, it is only the specific user who can change their own password, you would have to get it in a session token of some sort.
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields
https://www.wix.com/corvid/reference/wix-crm.html
https://www.wix.com/corvid/reference/wix-crm-backend.html

Finally, have a read of Wix Fetch and Wix HTTP Functions, so that you can understand it more.

https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api

https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

ok thanks but is ther a way for me to pass a data from a custom database to my other website?