curl --request GET \
--url https://api.honeycomb.io/1/datasets \
--header 'X-Honeycomb-Team: <api-key>'import requests
url = "https://api.honeycomb.io/1/datasets"
headers = {"X-Honeycomb-Team": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Honeycomb-Team': '<api-key>'}};
fetch('https://api.honeycomb.io/1/datasets', 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.honeycomb.io/1/datasets",
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-Honeycomb-Team: <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://api.honeycomb.io/1/datasets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Honeycomb-Team", "<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://api.honeycomb.io/1/datasets")
.header("X-Honeycomb-Team", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.honeycomb.io/1/datasets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Honeycomb-Team"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"name": "my dataset!",
"description": "my dataset described!",
"slug": "my-dataset-",
"expand_json_depth": 2,
"created_at": "2022-07-21T18:39:23Z",
"last_written_at": "2022-07-22T19:52:00Z",
"regular_columns_count": 12
},
{
"name": "another dataset",
"description": "",
"slug": "another-dataset",
"expand_json_depth": 0,
"created_at": "2022-07-21T18:39:23Z",
"last_written_at": "2022-07-22T19:52:00Z",
"regular_columns_count": 98
}
]{
"error": "<string>"
}{
"error": "Rate Limited"
}{
"error": "<string>"
}List All Datasets
Lists all Datasets for an environment. Note: For Honeycomb Classic users, all datasets in Classic are returned.
curl --request GET \
--url https://api.honeycomb.io/1/datasets \
--header 'X-Honeycomb-Team: <api-key>'import requests
url = "https://api.honeycomb.io/1/datasets"
headers = {"X-Honeycomb-Team": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Honeycomb-Team': '<api-key>'}};
fetch('https://api.honeycomb.io/1/datasets', 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.honeycomb.io/1/datasets",
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-Honeycomb-Team: <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://api.honeycomb.io/1/datasets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Honeycomb-Team", "<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://api.honeycomb.io/1/datasets")
.header("X-Honeycomb-Team", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.honeycomb.io/1/datasets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Honeycomb-Team"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"name": "my dataset!",
"description": "my dataset described!",
"slug": "my-dataset-",
"expand_json_depth": 2,
"created_at": "2022-07-21T18:39:23Z",
"last_written_at": "2022-07-22T19:52:00Z",
"regular_columns_count": 12
},
{
"name": "another dataset",
"description": "",
"slug": "another-dataset",
"expand_json_depth": 0,
"created_at": "2022-07-21T18:39:23Z",
"last_written_at": "2022-07-22T19:52:00Z",
"regular_columns_count": 98
}
]{
"error": "<string>"
}{
"error": "Rate Limited"
}{
"error": "<string>"
}Authorizations
Authenticate using a Honeycomb Configuration Key.
Pass the Token in the X-Honeycomb-Team header:
X-Honeycomb-Team: 1234567890123456789012
If you created your key using the API, use data.attributes.secret; this is the same value as the Token in the UI.
To learn how to create a Configuration Key, visit Manage Environment API Keys. To learn more about authenticating requests, visit API Authentication.
Response
Success
The name of the dataset.
1 - 255"My Dataset!"
A description for the dataset.
1024"A nice description of my dataset"
Show child attributes
Show child attributes
The maximum unpacking depth of nested JSON fields.
0 <= x <= 103
The 'slug' of the dataset to be used in URLs.
"my-dataset-"
The total number of unique fields for this Dataset. The value will be null if the dataset does not contain any fields yet.
100
The ISO8601-formatted time when the dataset last received event data. The value will be null if no data has been received yet.
"2022-07-21T18:39:23Z"
The ISO8601-formatted time when the dataset was created.
"2022-09-22T17:32:11Z"
The type of data contained in the dataset. Only present for time-series metrics datasets.
metrics "metrics"