Using External API key to fillout a form - How do i do that?

Question:
I need to a website visitor when they get to my form, I need them to type in their name or business name and then through an API I need that name to get searched through a pre-existing database.

Then the customer clicks on the name from that pre-existing database.

then the form has its fields filled out automatically by the API.

The reason we are doing that is so the customer/client when they create a submission on this form the data matches an exact data base that it pulls from. Ensuring 100% accuracy in the info that gets submitted to us.

The form would collect basic business info
First name last name
Business name
Address
Phone
Email

Is there a way to make that happen?

Here is the API that I am fetching data from

https://npiregistry.cms.hhs.gov/api/?version=2.1

https://npiregistry.cms.hhs.gov/api

Product:
Wix Studio

You can definitely query APIs on the backend using something like fetch or axios and you can fire off those queries from the frontend with Velo Web Modules.

1 Like

So this project has since evolved a little too. Sorry for the follow up question.

The client uses Fresh Service - Is there a way to make the wix form when submitted, make that form work with their fresh service database?

I have the client token.

this is how fresh service is setup here for api calls

I also have no experience in this area for this.

We just want to be able to submit the wix form and then have it populate into the fresh service databse.

Client goes to website, clicks icon in the menu to submit a ticket, form pops up, client hits submit - that form populates directly into fresh service.

and is this a service you guys could help me with?