列出数据提供商与接口
curl --request GET \
--url https://api.glasser.ai/public/catalogimport requests
url = "https://api.glasser.ai/public/catalog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.glasser.ai/public/catalog', 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.glasser.ai/public/catalog",
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.glasser.ai/public/catalog"
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.glasser.ai/public/catalog")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/public/catalog")
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{
"provider_count": 123,
"endpoint_count": 123,
"providers": [
{
"provider": "<string>",
"label": "<string>",
"description": "<string>",
"logo": "<string>",
"endpoint_count": 123,
"categories": [
"<string>"
]
}
],
"entries": [
{
"provider": "<string>",
"provider_label": "<string>",
"endpoint": "<string>",
"name": "<string>",
"description": "<string>",
"category": "<string>",
"category_label": "<string>",
"price_usd": "<string>",
"price_unit": "<string>",
"price_cap_usd": "<string>"
}
]
}接口
列出数据提供商与接口
通过一个公开列表浏览数据提供商和接口,为产品选择数据,或构建数据提供商选择器。
GET
/
public
/
catalog
列出数据提供商与接口
curl --request GET \
--url https://api.glasser.ai/public/catalogimport requests
url = "https://api.glasser.ai/public/catalog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.glasser.ai/public/catalog', 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.glasser.ai/public/catalog",
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.glasser.ai/public/catalog"
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.glasser.ai/public/catalog")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/public/catalog")
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{
"provider_count": 123,
"endpoint_count": 123,
"providers": [
{
"provider": "<string>",
"label": "<string>",
"description": "<string>",
"logo": "<string>",
"endpoint_count": 123,
"categories": [
"<string>"
]
}
],
"entries": [
{
"provider": "<string>",
"provider_label": "<string>",
"endpoint": "<string>",
"name": "<string>",
"description": "<string>",
"category": "<string>",
"category_label": "<string>",
"price_usd": "<string>",
"price_unit": "<string>",
"price_cap_usd": "<string>"
}
]
}此请求免费,无需 API Key 或请求正文。一次响应返回完整公开列表,不分页。
entries 中的每个接口都属于 providers 中的一家数据提供商,通过 provider 字段关联。
响应经过缓存,不应用 API Key 的 Policy。列表包含展示价格,不包含输入 Schema 或完整计费规则。请使用 API Key 检查接口获取这些详情,再创建 Run获取数据。
响应
integer
必填
providers 中的数据提供商数量。integer
必填
entries 中的接口数量。object[]
必填
object[]
必填
公开列表中每个接口对应一个条目。
显示 接口字段
显示 接口字段
string
必填
数据提供商标识,与
endpoint 一起用于检查或运行接口。string
必填
数据提供商展示名称。
string
必填
接口标识,例如
/apify/instagram-post-scraper。string
必填
接口展示名称。
string
必填
接口获取的数据。
string
必填
分类标识,例如
instagram。string
必填
分类展示名称,例如
Instagram。string
必填
美元展示价格,以十进制字符串表示,需结合
price_unit 阅读;完整计费规则以接口检查结果为准。string
必填
run、result 或 1M input tokens。string
按量计费时可能包含的单次 Run 最高费用。
缓存与状态码
按Cache-Control 复用响应。下次请求可在 If-None-Match 请求头中发送已收到的 ETag。
| 状态 | 含义 |
|---|---|
200 | JSON 格式的公开列表。 |
304 | ETag 匹配,复用已保存的响应;本次响应无正文。 |
503 | 暂无可用列表,请稍后重试;错误码为 service_unavailable。 |
刷新期间或刷新失败时,服务器可能返回上一次列表。列表中存在某条目,不代表当前 API Key 的 Policy 允许访问。