import requests
res = requests.get("https://api.aiface.vn/list/json/?tu_ngay=2025-07-01&den_ngay=2025-07-12&companyid=1234567890&token=abc123")
print(res.json())
POST
import requests
data = {
'tu_ngay': '2025-07-01',
'den_ngay': '2025-07-12',
'companyid': '1234567890',
'token': 'abc123'
}
res = requests.post("https://api.aiface.vn/list/json/", data=data)
print(res.json())
C#
GET
using System.Net.Http;
HttpClient client = new HttpClient();
string url = "https://api.aiface.vn/list/json/?tu_ngay=2025-07-01&den_ngay=2025-07-12&companyid=1234567890&token=abc123";
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
POST
using System.Net.Http;
var values = new Dictionary {
{ "tu_ngay", "2025-07-01" },
{ "den_ngay", "2025-07-12" },
{ "companyid", "1234567890" },
{ "token", "abc123" }
};
var content = new FormUrlEncodedContent(values);
var response = await client.PostAsync("https://api.aiface.vn/list/json/", content);
var result = await response.Content.ReadAsStringAsync();
Java
GET
import java.io.*;
import java.net.*;
URL url = new URL("https://api.aiface.vn/list/json/?tu_ngay=2025-07-01&den_ngay=2025-07-12&companyid=1234567890&token=abc123");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String inputLine;
StringBuilder content = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
content.append(inputLine);
}
in.close();
POST
URL url = new URL("https://api.aiface.vn/list/json/");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
String data = "tu_ngay=2025-07-01&den_ngay=2025-07-12&companyid=1234567890&token=abc123";
try (OutputStream os = conn.getOutputStream()) {
os.write(data.getBytes());
}
require 'net/http'
uri = URI('https://api.aiface.vn/list/json/?tu_ngay=2025-07-01&den_ngay=2025-07-12&companyid=1234567890&token=abc123')
res = Net::HTTP.get(uri)
puts res