EmpirTech Rest APIs
Unlock Tools for Your Projects, Apps, & Websites. From Downloaders to AI, Image Creation & Processing, Converter & News & Much More. Elevate Your Applications and Unleash Your Creativity.
Unlock Tools for Your Projects, Apps, & Websites. From Downloaders to AI, Image Creation & Processing, Converter & News & Much More. Elevate Your Applications and Unleash Your Creativity.
APIs (Application Programming Interfaces) enable software to communicate and share data, letting developers access other services' functionalities without knowing their internal workings.
APIs work by sending requests from a client to a server, which processes the request and returns a response. This allows different software systems to communicate and exchange data seamlessly.
EmpirTech Rest APIs provides developers with a reliable solution featuring fast response times, robust user privacy protections, and a user-friendly interface. Our platform ensures seamless integration and efficient usage, making it a preferred choice for API needs.
Getting Started with EmpirTech Rest APIs
Welcome to EmpirTech Rest APIs, your one-stop solution for seamless API
integrations! Whether you're a developer building an app, a business enhancing its services,
or a tech enthusiast experimenting with ideas, our extensive collection of APIs is here to help you.
Step 1: Sign Up
Create an account to access our API dashboard. Signing up is quick and easy, and once you're registered,
you'll gain instant access to hundreds of powerful APIs.
Step 2: Get Your API Key
After signing up, navigate to you Profile by clicking on the avater on top right, to get your unique API
key. This key is essential for authenticating your requests to our API endpoints.
Step 3: Choose an API
Browse our API library and select the API that fits your needs. Each API comes with detailed documentation,
explaining the endpoints, parameters, and response formats.
Step 4: Make Your First API Call
With your API key in hand, you're ready to start! Use the API key to make your first request. All our APIs
follow REST principles and are designed to be simple and intuitive to integrate.
Step 5. Integrate the API
Easily integrate our API into your existing system. Use the code examples provided in the documentation for
popular languages like JavaScript, Python, and PHP etc. Test requests in your development environment and seamlessly
integrate the API into your application's workflow.
Step 6: Upgrade for More Features
For more extensive usage and advanced features, you can easily upgrade to a PRO or VIP plan.
The PRO/VIP plan offers higher limits, faster response times, and premium features access.
// Try on runkit
const axios = require('axios');
const api = 'https://api.empiretech.com.ng/';
const apikey = 'Your-Api-Key';
// Getting data from json response
async function jsonResponse() {
const url = await axios.get(`${api}downloader/apk?apikey=${apikey}&q=islam360`);
const result = url.data.result.name;
console.log(result) // Islam360: Quran, Hadith, Qibla
}
jsonResponse()
// Getting data from image/buffer
async function imageBuffer() {
const url = await axios.get(`${api}wallpapers/islamic?apikey=${apikey}`, { responseType: 'arraybuffer' });
const result = Buffer.from(url.data, 'binary');
console.log(result); // Shows the image/buffer in binary
}
imageBuffer()
// Getting image link from json and showing in buffer
async function imageBuffer() {
const url = await axios.get(`${api}search/pinterest-image?apikey=${apikey}&q=gojo`);
const image = url.data.result[0];
const { data: result } = await axios.get(image, { responseType: 'arraybuffer' });
console.log(result); // Shows the image/buffer in binary
}
imageBuffer()
// Getting data from audio/buffer
async function audioBuffer() {
const url = await axios.get(`${api}islamic/al-quran?apikey=${apikey}&q=1`, { responseType: 'arraybuffer' });
const result = Buffer.from(url.data, 'binary');
console.log(result); // Shows the audio/buffer in binary
}
audioBuffer()
// Getting audio link from json and showing in buffer
async function audioBuffer() {
const url = await axios.get(`${api}tts/text-to-speech?apikey=${apikey}&lang=en-US&text=I'm Empire Tech`);
const audio = url.data.result;
const { data: result } = await axios.get(audio, { responseType: 'arraybuffer' });
console.log(result); // Shows the audio/buffer in binary
}
audioBuffer()
// Getting video link from json and showing in buffer
async function videoBuffer() {
const url = await axios.get(`${api}anime/gojo?apikey=${apikey}`);
const video = url.data.result;
const { data: result } = await axios.get(video, { responseType: 'arraybuffer' });
console.log(result); // Shows the video/buffer in binary
}
videoBuffer()
# Try on gitbash
api="https://api.empiretech.com.ng/"
apikey="Your-Api-Key"
# Getting data from json
json_response() {
endpoint="${api}downloader/apk?apikey=${apikey}&q=islam360"
curl -s -X GET "${endpoint}" | jq -r '.result.name' # Islam360: Quran, Hadith, Qibla
}
json_response
# Function to fetch image buffer and display in binary format
image_buffer() {
endpoint="${api}wallpapers/islamic?apikey=${apikey}"
curl -s -X GET "${endpoint}" --output image_buffer.bin
xxd -b image_buffer.bin
rm image_buffer.bin
}
image_buffer
# Function to fetch image link from JSON and show in buffer
image_link_buffer() {
endpoint="${api}search/pinterest-image?apikey=${apikey}&q=gojo"
image=$(curl -s -X GET "${endpoint}" | jq -r '.result[0]')
curl -s -X GET "${image}" --output image_link_buffer.bin
xxd -b image_link_buffer.bin
rm image_link_buffer.bin
}
image_link_buffer
# Function to fetch audio buffer and display in binary format
audio_buffer() {
endpoint="${api}islamic/al-quran?apikey=${apikey}&q=1"
curl -s -X GET "${endpoint}" --output audio_buffer.bin
xxd -b audio_buffer.bin
rm audio_buffer.bin
}
audio_buffer
# Function to fetch audio link from JSON and show in buffer
audio_link_buffer() {
text=$(echo -n "I'm Empire Tech" | jq -sRr @uri)
endpoint="${api}tts/text-to-speech?apikey=${apikey}&lang=en-US&text=${text}"
audio=$(curl -s -X GET "${endpoint}" | jq -r '.result')
curl -s -X GET "${audio}" --output audio_link_buffer.bin
xxd -b audio_link_buffer.bin
rm audio_link_buffer.bin
}
audio_link_buffer
# Function to fetch video buffer and display in binary format
video_buffer() {
endpoint="${api}anime/gojo?apikey=${apikey}"
curl -s -X GET "${endpoint}" --output video_buffer.bin
xxd -b video_buffer.bin
rm video_buffer.bin
}
video_buffer
# Try on jupyter notebook
import requests
api = "https://api.empiretech.com.ng/"
apikey = "Your-Api-Key"
# Getting data from json response
def jsonResponse():
url = f'{api}downloader/apk?apikey={apikey}&q=islam360'
response = requests.get(url)
result = response.json()['result']['name']
print(result) # Islam360: Quran, Hadith, Qibla
jsonResponse()
# Getting data from image/buffer
def imageBuffer():
url = f'{api}wallpapers/islamic?apikey={apikey}'
response = requests.get(url, stream=True)
response.raise_for_status()
result = response.content
print(result) # Shows image/buffer in binary
imageBuffer()
# Getting image link from json and showing in buffer
def imageBuffer():
url = f'{api}search/pixabay-images?apikey={apikey}&q=ferrari'
response = requests.get(url)
response.raise_for_status()
image = response.json()['result'][0]
image_response = requests.get(image, stream=True)
image_response.raise_for_status()
result = image_response.content
print(result) # Shows the image/buffer in binary
imageBuffer()
# Getting data from audio/buffer
def audioBuffer():
url = f'{api}islamic/al-quran?apikey={apikey}&q=1'
response = requests.get(url, stream=True)
response.raise_for_status()
audio_data = response.content
print(audio_data) # Shows the audio/buffer in binary
audioBuffer()
# Getting audio link from json and showing in buffer
def audioBuffer():
url = f'{api}tts/text-to-speech?apikey={apikey}&lang=en-US&text=I\'m Empire Tech'
response = requests.get(url)
response.raise_for_status()
audio_url = response.json()['result']
audio_response = requests.get(audio_url)
audio_response.raise_for_status()
audio_data = audio_response.content
print(audio_data) # Shows the audio/buffer in binary
audioBuffer()
# Getting video link from json and showing in buffer
def videoBuffer():
url = f'{api}anime/gojo?apikey={apikey}'
response = requests.get(url)
response.raise_for_status()
video_url = response.json()['result']
video_response = requests.get(video_url)
video_response.raise_for_status()
video_data = video_response.content
print(video_data) # Shows the video/buffer in binary
videoBuffer()
// Try on replit
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
// Getting data from json
function jsonResponse($api, $apikey) {
$client = new Client();
$response = $client->request('GET', $api . 'downloader/apk', [
'query' => [
'apikey' => $apikey,
'q' => 'islam360'
]
]);
$data = json_decode($response->getBody(), true);
$result = $data['result']['name'];
echo $result; // Islam360: Quran, Hadith, Qibla
}
jsonResponse($api, $apikey);
?>
// Getting data from image/buffer
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
function imageBuffer($api, $apikey) {
$url = "{$api}wallpapers/islamic?apikey={$apikey}";
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => 'Accept: image/*',
]
]);
$imageData = file_get_contents($url, false, $context);
echo $imageData;
}
imageBuffer($api, $apikey);
?>
// Getting image link from json and showing in buffer
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
function imageBuffer() {
global $api, $apikey;
$client = new Client();
$response = $client->get("{$api}search/pinterest-image", [
'query' => [
'apikey' => $apikey,
'q' => 'gojo'
]
]);
$image = json_decode($response->getBody(), true)['result'][0];
$image_response = $client->get($image, ['stream' => true]);
$result = $image_response->getBody()->getContents();
echo $result; // Shows the image/buffer in binary
}
imageBuffer();
?>
// Getting data from audio/buffer
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
function audioBuffer() {
global $api, $apikey;
$client = new Client();
$response = $client->get("{$api}islamic/al-quran", [
'query' => [
'apikey' => $apikey,
'q' => '1'
],
'stream' => true
]);
$result = $response->getBody()->getContents();
echo $result; // Shows the audio/buffer in binary
}
audioBuffer();
?>
// Getting audio link from json and showing in buffer
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
function audioBuffer() {
global $api, $apikey;
$client = new Client();
$response = $client->get("{$api}tts/text-to-speech", [
'query' => [
'apikey' => $apikey,
'lang' => 'en-US',
'text' => "I'm Empire Tech"
],
'stream' => true
]);
$result = $response->getBody()->getContents();
echo $result; // Shows the audio/buffer in binary
}
audioBuffer();
?>
// Getting video link from json and showing in buffer
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$api = 'https://api.empiretech.com.ng/';
$apikey = 'Your-Api-Key';
function videoBuffer() {
global $api, $apikey;
$client = new Client();
$response = $client->get("{$api}anime/gojo", [
'query' => [
'apikey' => $apikey
],
'stream' => true
]);
$result = $response->getBody()->getContents();
echo $result; // Shows the video/buffer in binary
}
videoBuffer();
?>
// Try on replit
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import org.json.JSONObject;
public class Main {
private static final String API = "https://api.empiretech.com.ng/";
private static final String API_KEY = "Your-Api-Key";
public static void main(String[] args) {
jsonResponse();
imageBuffer1();
imageBuffer2();
audioBuffer1();
audioBuffer2();
videoBuffer();
}
// Getting data from json
public static void jsonResponse() {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(API + "downloader/apk?apikey=" + API_KEY + "&q=islam360"))
.GET()
.build();
HttpResponse < String > response = client.send(request, HttpResponse.BodyHandlers.ofString());
JSONObject json = new JSONObject(response.body());
String result = json.getJSONObject("result").getString("name");
System.out.println(result); // Islam360: Quran, Hadith, Qibla
}
}
// Getting data from image/buffer
public static void imageBuffer1() {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(API + "wallpapers/islamic?apikey=" + API_KEY))
.GET()
.build();
HttpResponse
response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
byte[] result = response.body();
String base64 = Base64.getEncoder().encodeToString(result);
System.out.println("buffer in Base64: " + base64); // Shows the image/buffer in base64
}
// Getting image link from json and showing in buffer
public static void imageBuffer2() {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(API + "search/pinterest-image?apikey=" + API_KEY + "&q=gojo"))
.GET()
.build();
HttpResponse
response = client.send(request, HttpResponse.BodyHandlers.ofString());
JSONObject json = new JSONObject(response.body());
String imageUrl = json.getJSONArray("result").getString(0);
HttpRequest imageRequest = HttpRequest.newBuilder()
.uri(new URI(imageUrl))
.GET()
.build();
HttpResponse
imageResponse = client.send(imageRequest, HttpResponse.BodyHandlers.ofByteArray());
byte[] result = imageResponse.body();
String base64 = Base64.getEncoder().encodeToString(result);
System.out.println("buffer in Base64: " + base64); // Shows the image/buffer in base64
}
// Getting data from audio/buffer
public static void audioBuffer1() {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(API + "islamic/al-quran?apikey=" + API_KEY + "&q=1"))
.GET()
.build();
HttpResponse
response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
byte[] result = response.body();
String base64 = Base64.getEncoder().encodeToString(result);
System.out.println("buffer in Base64: " + base64); // Shows the audio/buffer in base64
}
// Getting audio link from json and showing in buffer
public static void audioBuffer2() {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(API + "tts/text-to-speech?apikey=" + API_KEY + "&lang=en-US&text=I'm Empire Tech"))
.GET()
.build();
HttpResponse
response = client.send(request, HttpResponse.BodyHandlers.ofString()); JSONObject json = new JSONObject(response.body()); String audioUrl = json.getString("result"); HttpRequest audioRequest = HttpRequest.newBuilder() .uri(new URI(audioUrl)) .GET() .build(); HttpResponse
audioResponse = client.send(audioRequest, HttpResponse.BodyHandlers.ofByteArray()); byte[] result = audioResponse.body(); String base64 = Base64.getEncoder().encodeToString(result); System.out.println("buffer in Base64: " + base64); // Shows the audio/buffer in base64 } // Getting video link from json and showing in buffer public static void videoBuffer() { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(new URI(API + "anime/gojo?apikey=" + API_KEY)) .GET() .build(); HttpResponse
response = client.send(request, HttpResponse.BodyHandlers.ofString()); JSONObject json = new JSONObject(response.body()); String videoUrl = json.getString("result"); HttpRequest videoRequest = HttpRequest.newBuilder() .uri(new URI(videoUrl)) .GET() .build(); HttpResponse
videoResponse = client.send(videoRequest, HttpResponse.BodyHandlers.ofByteArray()); byte[] result = videoResponse.body(); String base64 = Base64.getEncoder().encodeToString(result); System.out.println("buffer in Base64: " + base64); // Shows the video/buffer in base64 }
// Try on replit
use reqwest::Client;
use std::error::Error;
const API: &str = "https://api.empiretech.com.ng/";
const API_KEY: &str = "Your-Api-Key";
// Getting data from json
async fn json_response() -> Result<(), Box
> {
let client = Client::new();
let url = format!("{}downloader/apk?apikey={}&q=islam360", API, API_KEY);
let response = client.get(&url).send().await?;
let json: serde_json::Value = response.json().await?;
let result = json["result"]["name"].as_str().unwrap_or("");
println!("{}", result); // Islam360: Quran, Hadith, Qibla
Ok(())
}
// Getting data from image/buffer
async fn image_buffer() -> Result<(), Box
> {
let client = Client::new();
let url = format!("{}wallpapers/islamic?apikey={}", API, API_KEY);
let response = client.get(&url).send().await?;
let bytes = response.bytes().await?;
println!("{:?}", bytes); // Shows the image/buffer in binary
Ok(())
}
// Getting image link from json and showing in buffer
async fn image_buffer_from_link() -> Result<(), Box
> {
let client = Client::new();
let url = format!("{}search/pinterest-image?apikey={}&q=gojo", API, API_KEY);
let response = client.get(&url).send().await?;
let json: serde_json::Value = response.json().await?;
let image_url = json["result"][0].as_str().unwrap_or("");
let image_response = client.get(image_url).send().await?;
let bytes = image_response.bytes().await?;
println!("{:?}", bytes); // Shows the image/buffer in binary
Ok(())
}
// Getting data from audio/buffer
async fn audio_buffer() -> Result<(), Box
> {
let client = Client::new();
let url = format!("{}islamic/al-quran?apikey={}&q=1", API, API_KEY);
let response = client.get(&url).send().await?;
let bytes = response.bytes().await?;
println!("{:?}", bytes); // Shows the audio/buffer in binary
Ok(())
}
// Getting audio link from json and showing in buffer
async fn audio_buffer_from_link() -> Result<(), Box
> { let client = Client::new(); let url = format!("{}tts/text-to-speech?apikey={}&lang=en-US&text=I'm Empire Tech", API, API_KEY); let response = client.get(&url).send().await?; let json: serde_json::Value = response.json().await?; let audio_url = json["result"].as_str().unwrap_or(""); let audio_response = client.get(audio_url).send().await?; let bytes = audio_response.bytes().await?; println!("{:?}", bytes); // Shows the audio/buffer in binary Ok(()) } // Getting video link from json and showing in buffer async fn video_buffer() -> Result<(), Box
> { let client = Client::new(); let url = format!("{}anime/gojo?apikey={}", API, API_KEY); let response = client.get(&url).send().await?; let json: serde_json::Value = response.json().await?; let video_url = json["result"].as_str().unwrap_or(""); let video_response = client.get(video_url).send().await?; let bytes = video_response.bytes().await?; println!("{:?}", bytes); // Shows the video/buffer in binary Ok(()) } #[tokio::main] async fn main() -> Result<(), Box
> { json_response().await?; image_buffer().await?; image_buffer_from_link().await?; audio_buffer().await?; audio_buffer_from_link().await?; video_buffer().await?; Ok(()) }