top of page
  • Writer's pictureEnoc

Connecting Wix Velo API with API: A Beginner's Guide with Code Examples

If you're a game developer or enthusiast, you've likely heard of, the online gaming platform created by Blizzard Entertainment. API provides developers with access to a wealth of data and resources to create engaging gaming experiences. However, working with API can be challenging, especially if you're not familiar with API integration. That's where Wix Velo API comes in. In this article, we'll explore how to connect Wix Velo API with API using code examples.

What is Wix Velo API?

Wix Velo API is a no-code platform that makes it easy to create custom APIs without writing any code. With Wix Velo API, you can create APIs that integrate with various third-party services, including databases, payment gateways, and social media platforms. You can use Wix Velo API to create APIs for web and mobile applications.

What is API? API is a RESTful API that provides access to various resources related to Blizzard games, including World of Warcraft, Diablo III, and Overwatch. With API, you can retrieve information about characters, items, achievements, and more. You can also use API to perform actions such as updating user information and creating in-game items.

How to Connect Wix Velo API with API

To connect Wix Velo API with API, you'll need to follow these steps:

1. Create a Developer Account

The first step is to create a developer account. You can do this by visiting the developer portal and creating an account. Once you have created an account, you'll need to create a new application to generate API keys.

2. Generate API Keys

To generate API keys for your application, navigate to the application dashboard and click on "API Access" on the left-hand menu. Here, you can generate both public and private API keys.

3. Create a Wix Velo Backend

Next, you'll need to create a Wix Velo backend that will connect to the API. To do this, log in to your Wix account and navigate to the "Backend" section. Here, you can create a new backend and specify the API URL, request method, and parameters.

4. Add Authorization Headers

To access API, you'll need to include authorization headers in your API requests. You can do this by adding the following code to your Wix Velo backend:


const headers = {

"Authorization": "Bearer YOUR_API_KEY",

"Content-Type": "application/json"



Replace "YOUR_API_KEY" with your API key.

5. Call API

Now that you've set up your Wix Velo backend and added authorization headers, you can call the API. Here's an example of how to retrieve character data using the API:

import {fetch} from 'wix-fetch';

export function getCharacterData(characterName, realmName) {

const apiUrl = `${realmName}/${characterName}?namespace=profile-us&locale=en_US&access_token=YOUR_API_KEY`;

const options = {

headers: headers


return fetch(apiUrl, options)

.then(response => response.json())

.catch(error => console.error(error));


Replace "YOUR_API_KEY" with your API key. Call the "getCharacterData" function with the name of the character and realm you want to retrieve data for.

Connecting Wix Velo API with API is a powerful way to enhance your gaming experience. By following the steps outlined above and using the code examples provided, you can quickly and easily integrate API into your Wix Velo-powered applications. Remember to always follow best practices when working with APIs, including handling errors and securing your API keys.

We hope this article has been helpful in guiding you through the process of connecting Wix Velo API with API. If you have any questions or need further assistance, don't hesitate to contact us. We're always here to help!

12 views0 comments


bottom of page