Accounts API
whapi · Media
The Accounts API is a collection of methods used to query a customer account. It allows the developer to retrieve account-related data such as the user account balance. It should be noted that regional variations may exist - so some fields may not be returned for certain territories.
Authentication
Sample Requests
Retrieves a limited set of customer account details. For security purposes, only a subset is supplied, which does not include fields such as security questions and answers. argFileDR1.properties argFileDR2.properties argFileGIB1.properties argFileGIB2.properties argFileGIB3.properties argFileGIB4.pr
Hover any highlighted part to learn what it does
| apiKey | example |
| apiSecret | example |
| apiTicket | example |
curl -X GET "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account?fields=example&exclude=example&include=example&languageAsPerTerritory=true" \ -H "apiKey: example" \ -H "apiSecret: example" \ -H "apiTicket: example"
import requests
params = {
"fields": "example",
"exclude": "example",
"include": "example",
"languageAsPerTerritory": "true"
}
headers = {
"apiKey": "example",
"apiSecret": "example",
"apiTicket": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account');
url.searchParams.set('fields', 'example');
url.searchParams.set('exclude', 'example');
url.searchParams.set('include', 'example');
url.searchParams.set('languageAsPerTerritory', 'true');
const response = await fetch(url, {
headers: {
'apiKey': 'example',
'apiSecret': 'example',
'apiTicket': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account")
q := baseURL.Query()
q.Set("fields", "example")
q.Set("exclude", "example")
q.Set("include", "example")
q.Set("languageAsPerTerritory", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("apiKey", "example")
req.Header.Set("apiSecret", "example")
req.Header.Set("apiTicket", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account")
uri.query = URI.encode_www_form({
"fields" => "example",
"exclude" => "example",
"include" => "example",
"languageAsPerTerritory" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["apiKey"] = "example"
req["apiSecret"] = "example"
req["apiTicket"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account?" . http_build_query([
"fields" => "example",
"exclude" => "example",
"include" => "example",
"languageAsPerTerritory" => "true"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"apiKey: example",
"apiSecret: example",
"apiTicket: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This method can be used to retrieve the customer’s account balance in UK Sterling.
Hover any highlighted part to learn what it does
| apiKey | example |
| apiSecret | example |
| apiTicket | example |
curl -X GET "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance?fields=example&exclude=example&include=example&languageAsPerTerritory=true" \ -H "apiKey: example" \ -H "apiSecret: example" \ -H "apiTicket: example"
import requests
params = {
"fields": "example",
"exclude": "example",
"include": "example",
"languageAsPerTerritory": "true"
}
headers = {
"apiKey": "example",
"apiSecret": "example",
"apiTicket": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance');
url.searchParams.set('fields', 'example');
url.searchParams.set('exclude', 'example');
url.searchParams.set('include', 'example');
url.searchParams.set('languageAsPerTerritory', 'true');
const response = await fetch(url, {
headers: {
'apiKey': 'example',
'apiSecret': 'example',
'apiTicket': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance")
q := baseURL.Query()
q.Set("fields", "example")
q.Set("exclude", "example")
q.Set("include", "example")
q.Set("languageAsPerTerritory", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("apiKey", "example")
req.Header.Set("apiSecret", "example")
req.Header.Set("apiTicket", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance")
uri.query = URI.encode_www_form({
"fields" => "example",
"exclude" => "example",
"include" => "example",
"languageAsPerTerritory" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["apiKey"] = "example"
req["apiSecret"] = "example"
req["apiTicket"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/balance?" . http_build_query([
"fields" => "example",
"exclude" => "example",
"include" => "example",
"languageAsPerTerritory" => "true"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"apiKey: example",
"apiSecret: example",
"apiTicket: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves the customer’s account payments in UK Sterling.
Hover any highlighted part to learn what it does
| apiKey | example |
| apiSecret | example |
| apiTicket | example |
curl -X GET "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments?page=1&sort=date%2Casc&dateTo=example&fields=example&exclude=example&include=example&dateFrom=example&pageSize=100&transactionType=example&languageAsPerTerritory=true" \ -H "apiKey: example" \ -H "apiSecret: example" \ -H "apiTicket: example"
import requests
params = {
"page": "1",
"sort": "date,asc",
"dateTo": "example",
"fields": "example",
"exclude": "example",
"include": "example",
"dateFrom": "example",
"pageSize": "100",
"transactionType": "example",
"languageAsPerTerritory": "true"
}
headers = {
"apiKey": "example",
"apiSecret": "example",
"apiTicket": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments');
url.searchParams.set('page', '1');
url.searchParams.set('sort', 'date,asc');
url.searchParams.set('dateTo', 'example');
url.searchParams.set('fields', 'example');
url.searchParams.set('exclude', 'example');
url.searchParams.set('include', 'example');
url.searchParams.set('dateFrom', 'example');
url.searchParams.set('pageSize', '100');
url.searchParams.set('transactionType', 'example');
url.searchParams.set('languageAsPerTerritory', 'true');
const response = await fetch(url, {
headers: {
'apiKey': 'example',
'apiSecret': 'example',
'apiTicket': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments")
q := baseURL.Query()
q.Set("page", "1")
q.Set("sort", "date,asc")
q.Set("dateTo", "example")
q.Set("fields", "example")
q.Set("exclude", "example")
q.Set("include", "example")
q.Set("dateFrom", "example")
q.Set("pageSize", "100")
q.Set("transactionType", "example")
q.Set("languageAsPerTerritory", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("apiKey", "example")
req.Header.Set("apiSecret", "example")
req.Header.Set("apiTicket", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments")
uri.query = URI.encode_www_form({
"page" => "1",
"sort" => "date,asc",
"dateTo" => "example",
"fields" => "example",
"exclude" => "example",
"include" => "example",
"dateFrom" => "example",
"pageSize" => "100",
"transactionType" => "example",
"languageAsPerTerritory" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["apiKey"] = "example"
req["apiSecret"] = "example"
req["apiTicket"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/accounts/2.0.0/account/payments?" . http_build_query([
"page" => "1",
"sort" => "date,asc",
"dateTo" => "example",
"fields" => "example",
"exclude" => "example",
"include" => "example",
"dateFrom" => "example",
"pageSize" => "100",
"transactionType" => "example",
"languageAsPerTerritory" => "true"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"apiKey: example",
"apiSecret: example",
"apiTicket: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Accounts API?
Accounts API is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Accounts API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?