List available data sources
curl --request GET \
--url https://api.valyu.ai/v1/datasources \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.valyu.ai/v1/datasources"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.valyu.ai/v1/datasources', 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.valyu.ai/v1/datasources",
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-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://api.valyu.ai/v1/datasources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.valyu.ai/v1/datasources")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valyu.ai/v1/datasources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"datasources": [
{
"id": "valyu/valyu-arxiv",
"name": "arXiv",
"description": "Preprints in physics, mathematics, computer science, quantitative biology, and more.",
"category": "research",
"topics": [
"physics",
"mathematics",
"computer science"
],
"modality": [
"text",
"images"
],
"example_queries": [
"CRISPR gene editing mechanisms",
"quantum error correction methods"
],
"pricing": {
"cpm": 0.3125
},
"update_frequency": "Monthly",
"size": 1000000
},
{
"id": "valyu/valyu-pubmed",
"name": "PubMed",
"description": "Biomedical literature from MEDLINE, life science journals, and online books.",
"category": "healthcare",
"topics": [
"medicine",
"biology",
"pharmacology"
],
"modality": [
"text",
"images"
],
"example_queries": [
"GLP-1 receptor agonists for type 2 diabetes",
"CAR-T cell therapy advances"
],
"pricing": {
"cpm": 0.3125
},
"update_frequency": "Monthly",
"size": 2500000
}
],
"total_count": 2
}
List Datasources
GET /v1/datasources reference: list every Valyu dataset with its ID, category, description, example queries, schema, access modes and price per 1,000 results.
GET
/
v1
/
datasources
List available data sources
curl --request GET \
--url https://api.valyu.ai/v1/datasources \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.valyu.ai/v1/datasources"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.valyu.ai/v1/datasources', 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.valyu.ai/v1/datasources",
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-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://api.valyu.ai/v1/datasources"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.valyu.ai/v1/datasources")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valyu.ai/v1/datasources")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"datasources": [
{
"id": "valyu/valyu-arxiv",
"name": "arXiv",
"description": "Preprints in physics, mathematics, computer science, quantitative biology, and more.",
"category": "research",
"topics": [
"physics",
"mathematics",
"computer science"
],
"modality": [
"text",
"images"
],
"example_queries": [
"CRISPR gene editing mechanisms",
"quantum error correction methods"
],
"pricing": {
"cpm": 0.3125
},
"update_frequency": "Monthly",
"size": 1000000
},
{
"id": "valyu/valyu-pubmed",
"name": "PubMed",
"description": "Biomedical literature from MEDLINE, life science journals, and online books.",
"category": "healthcare",
"topics": [
"medicine",
"biology",
"pharmacology"
],
"modality": [
"text",
"images"
],
"example_queries": [
"GLP-1 receptor agonists for type 2 diabetes",
"CAR-T cell therapy advances"
],
"pricing": {
"cpm": 0.3125
},
"update_frequency": "Monthly",
"size": 2500000
}
],
"total_count": 2
}
Discover source IDs, descriptions, pricing and response metadata before choosing sources for your application. Use the returned information to build a source picker or retrieval configuration.
pricing.cpm is the price per 1,000 results returned from that source (a value of 0 means no price is configured, not that the source is free). access_modes lists the products a source works in: a source without search can’t be queried through Search. required_plan is the cheapest plan that includes the source ({id, name, price}), or null when it is licensed separately, so you can choose sources or an upgrade before you search.
A listing is not a promise of unrestricted access. Check the source’s availability, supported product and your account’s access before depending on it. Public datasets and licensed content can both appear in the catalog.
Use Search datasources when you know the information you need but not the dataset name.Authorizations
API key for authentication. Get yours at platform.valyu.ai.
Query Parameters
Response
List of available datasources.
Was this page helpful?