cURL
curl --request GET \
--url 'https://api.fastforex.io/usage?api_key='import requests
url = "https://api.fastforex.io/usage?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/usage?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/usage?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/usage?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/usage?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/usage?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"usage": {
"2021-01-24": 247,
"2021-01-25": 312,
"2021-01-26": 23,
"2021-01-27": 159,
"2021-01-28": 0,
"2021-01-29": 45,
"2021-01-30": 92,
"2021-01-31": 240,
"2021-02-01": 1204,
"2021-02-02": 34,
"2021-02-03": 1245,
"2021-02-04": 4,
"2021-02-05": 0,
"2021-02-06": 53,
"2021-02-07": 3245
},
"monthly_quota": 500000,
"current_period": {
"start": "2021-02-03",
"end": "2021-03-02",
"remaining_quota": 495453,
"usage": 4547
},
"ms": 3
}Admin
API Usage Metrics
Fetch recent API usage data. Includes current period start, end, usage and quota remaining
GET
/
usage
cURL
curl --request GET \
--url 'https://api.fastforex.io/usage?api_key='import requests
url = "https://api.fastforex.io/usage?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/usage?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/usage?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/usage?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/usage?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/usage?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"usage": {
"2021-01-24": 247,
"2021-01-25": 312,
"2021-01-26": 23,
"2021-01-27": 159,
"2021-01-28": 0,
"2021-01-29": 45,
"2021-01-30": 92,
"2021-01-31": 240,
"2021-02-01": 1204,
"2021-02-02": 34,
"2021-02-03": 1245,
"2021-02-04": 4,
"2021-02-05": 0,
"2021-02-06": 53,
"2021-02-07": 3245
},
"monthly_quota": 500000,
"current_period": {
"start": "2021-02-03",
"end": "2021-03-02",
"remaining_quota": 495453,
"usage": 4547
},
"ms": 3
}⌘I