curl --request GET \
--url https://api.novelai.com.br/v1/novels \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.novelai.com.br/v1/novels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.novelai.com.br/v1/novels', 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.novelai.com.br/v1/novels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.novelai.com.br/v1/novels"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.novelai.com.br/v1/novels")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novelai.com.br/v1/novels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "t1",
"title": "<string>",
"description": "<string>",
"category_id": "<string>",
"tags": [
"romance",
"aventura"
],
"chapter_count": 123,
"has_audio_edition": true,
"cover_image_url": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}{
"error": "invalid_request",
"error_description": "Novela inexistente ou removida do catálogo"
}Lista o catálogo de novelas
Metadados de catálogo — título, sinopse, categoria, tags editoriais e contagem de capítulos. Não inclui conteúdo de leitura (isso é gated por assinante; ver GET /novels/{id}/chapters) nem os finais (GET /novels/{id}/choices). Equivalente ao que public.novels mais total_chapters() expõem hoje ao app oficial.
curl --request GET \
--url https://api.novelai.com.br/v1/novels \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.novelai.com.br/v1/novels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.novelai.com.br/v1/novels', 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.novelai.com.br/v1/novels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.novelai.com.br/v1/novels"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.novelai.com.br/v1/novels")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novelai.com.br/v1/novels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "t1",
"title": "<string>",
"description": "<string>",
"category_id": "<string>",
"tags": [
"romance",
"aventura"
],
"chapter_count": 123,
"has_audio_edition": true,
"cover_image_url": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}{
"error": "invalid_request",
"error_description": "Novela inexistente ou removida do catálogo"
}Authorizations
Client credentials — emitido uma única vez, de forma centralizada, pela Platform API (POST https://api.googa.com.br/v1/oauth2/token, ver aba API Platform). Este domínio (api.novelai.com.br) só valida o token — via a chave pública do projeto Supabase "Platform" — nunca emite um token próprio. Isso evita duplicar a verificação de client_id/client_secret em três projetos Supabase diferentes: o parceiro autentica uma vez, e o mesmo token (com os escopos certos) funciona em qualquer domínio de produto. Ver "Roteamento cross-projeto" em Modelo de autenticação sobre Supabase.
Query Parameters
Filtra por categoria. Ver GET /categories para os valores válidos.
Filtra por tag editorial (romance, aventura, rir, ...).
Filtra por novelas com narração real gravada — a flag novels.has_real_audio, a mesma que controla o catálogo do app NovelÁudio — útil para um parceiro que quer destacar o cruzamento com a edição em áudio (NovelÁudio).
x >= 11 <= x <= 100