Get All Calculators
curl --request GET \
--url https://app.activecalculator.com/api/v1/calculators \
--header 'x-ac-api-key: <api-key>'import requests
url = "https://app.activecalculator.com/api/v1/calculators"
headers = {"x-ac-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ac-api-key': '<api-key>'}};
fetch('https://app.activecalculator.com/api/v1/calculators', 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://app.activecalculator.com/api/v1/calculators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ac-api-key: <api-key>"
],
]);
$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://app.activecalculator.com/api/v1/calculators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ac-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.activecalculator.com/api/v1/calculators")
.header("x-ac-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.activecalculator.com/api/v1/calculators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ac-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"{\n \"data\": [\n {\n \"id\": \"calculator123\",\n \"createdAt\": \"2024-08-11T20:45:07.966Z\",\n \"updatedAt\": \"2024-08-11T20:45:07.966Z\",\n \"name\": \"Example Calculator\",\n \"slug\": null,\n \"workspaceId\": \"workspace456\",\n \"folderId\": \"folder789\",\n \"status\": \"draft\",\n \"elements\": [],\n \"layouts\": {\n \"lg\": [],\n \"md\": [],\n \"sm\": []\n },\n \"variables\": [],\n \"submitActions\": {},\n \"themeId\": \"default\",\n \"templateVisibility\": null,\n \"templateCalculatorId\": null,\n \"clonesCount\": 0,\n \"impressionsCount\": 0,\n \"lastImpressionAt\": null,\n \"submissionsCount\": 0,\n \"lastSubmissionAt\": null,\n \"newElementCount\": {}\n }\n ]\n}""{}"Calculators
Get All Calculators
Fetches all existing calculators
GET
/
calculators
Get All Calculators
curl --request GET \
--url https://app.activecalculator.com/api/v1/calculators \
--header 'x-ac-api-key: <api-key>'import requests
url = "https://app.activecalculator.com/api/v1/calculators"
headers = {"x-ac-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ac-api-key': '<api-key>'}};
fetch('https://app.activecalculator.com/api/v1/calculators', 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://app.activecalculator.com/api/v1/calculators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ac-api-key: <api-key>"
],
]);
$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://app.activecalculator.com/api/v1/calculators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ac-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.activecalculator.com/api/v1/calculators")
.header("x-ac-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.activecalculator.com/api/v1/calculators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ac-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"{\n \"data\": [\n {\n \"id\": \"calculator123\",\n \"createdAt\": \"2024-08-11T20:45:07.966Z\",\n \"updatedAt\": \"2024-08-11T20:45:07.966Z\",\n \"name\": \"Example Calculator\",\n \"slug\": null,\n \"workspaceId\": \"workspace456\",\n \"folderId\": \"folder789\",\n \"status\": \"draft\",\n \"elements\": [],\n \"layouts\": {\n \"lg\": [],\n \"md\": [],\n \"sm\": []\n },\n \"variables\": [],\n \"submitActions\": {},\n \"themeId\": \"default\",\n \"templateVisibility\": null,\n \"templateCalculatorId\": null,\n \"clonesCount\": 0,\n \"impressionsCount\": 0,\n \"lastImpressionAt\": null,\n \"submissionsCount\": 0,\n \"lastSubmissionAt\": null,\n \"newElementCount\": {}\n }\n ]\n}""{}"Was this page helpful?
⌘I