Create a data store
curl --request POST \
--url https://fandom-api-preview.vercel.app/api/v1/data-stores \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Building toy channels",
"sources": [
{
"url": "https://www.youtube.com/@LEGO",
"videosPerChannel": 10
},
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Building toy channels',
sources: [
{url: 'https://www.youtube.com/@LEGO', videosPerChannel: 10},
{url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'}
]
})
};
fetch('https://fandom-api-preview.vercel.app/api/v1/data-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fandom-api-preview.vercel.app/api/v1/data-stores"
payload = {
"name": "Building toy channels",
"sources": [{
"url": "https://www.youtube.com/@LEGO",
"videosPerChannel": 10
}, { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"description": "<string>",
"status": "<string>",
"error": "<string>",
"scope": "workspace",
"channelCount": 123,
"videoCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"readyAt": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Data stores
Create a data store
Collects YouTube channels and videos, with their comments, in the background. Starts as collecting; poll Get a data store until ready.
Scope: datasets:write.
Send an Idempotency-Key header to make retries safe.
POST
/
data-stores
Create a data store
curl --request POST \
--url https://fandom-api-preview.vercel.app/api/v1/data-stores \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Building toy channels",
"sources": [
{
"url": "https://www.youtube.com/@LEGO",
"videosPerChannel": 10
},
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Building toy channels',
sources: [
{url: 'https://www.youtube.com/@LEGO', videosPerChannel: 10},
{url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'}
]
})
};
fetch('https://fandom-api-preview.vercel.app/api/v1/data-stores', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fandom-api-preview.vercel.app/api/v1/data-stores"
payload = {
"name": "Building toy channels",
"sources": [{
"url": "https://www.youtube.com/@LEGO",
"videosPerChannel": 10
}, { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"description": "<string>",
"status": "<string>",
"error": "<string>",
"scope": "workspace",
"channelCount": 123,
"videoCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"readyAt": "<string>"
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Authorizations
An API key from Settings → API access, starting with fnd_.
Headers
Any unique string. Repeating a request with the same key returns the first result instead of doing it twice.
Maximum string length:
200Body
application/json
Response
Success
collecting, ready or error. Collection usually takes minutes.
library stores are shared by Fandom and read-only.
Available options:
workspace, private, library 
