Export rows as CSV or JSON (follows every page)
curl --request POST \
--url http://localhost:3000/api/v1/bases/rows/export \
--header 'Content-Type: application/json' \
--data '
{
"base": "<string>",
"console": "<string>",
"filter": "<string>",
"format": "<string>",
"includeBody": true,
"maxRows": "<string>",
"out": "<string>",
"project": "<string>",
"sort": "<string>",
"view": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/bases/rows/export"
payload = {
"base": "<string>",
"console": "<string>",
"filter": "<string>",
"format": "<string>",
"includeBody": True,
"maxRows": "<string>",
"out": "<string>",
"project": "<string>",
"sort": "<string>",
"view": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
base: '<string>',
console: '<string>',
filter: '<string>',
format: '<string>',
includeBody: true,
maxRows: '<string>',
out: '<string>',
project: '<string>',
sort: '<string>',
view: '<string>'
})
};
fetch('http://localhost:3000/api/v1/bases/rows/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/bases/rows/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'base' => '<string>',
'console' => '<string>',
'filter' => '<string>',
'format' => '<string>',
'includeBody' => true,
'maxRows' => '<string>',
'out' => '<string>',
'project' => '<string>',
'sort' => '<string>',
'view' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/bases/rows/export"
payload := strings.NewReader("{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/bases/rows/export")
.header("Content-Type", "application/json")
.body("{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/bases/rows/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"baseRef": "<string>",
"columns": [
"<string>"
],
"consoleUrl": "<string>",
"content": "<string>",
"format": "<string>",
"outFile": "<string>",
"projectRef": "<string>",
"rowCount": 123,
"success": true,
"truncated": true,
"viewId": "<string>"
}bases
Export rows as CSV or JSON (follows every page)
POST
/
api
/
v1
/
bases
/
rows
/
export
Export rows as CSV or JSON (follows every page)
curl --request POST \
--url http://localhost:3000/api/v1/bases/rows/export \
--header 'Content-Type: application/json' \
--data '
{
"base": "<string>",
"console": "<string>",
"filter": "<string>",
"format": "<string>",
"includeBody": true,
"maxRows": "<string>",
"out": "<string>",
"project": "<string>",
"sort": "<string>",
"view": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/bases/rows/export"
payload = {
"base": "<string>",
"console": "<string>",
"filter": "<string>",
"format": "<string>",
"includeBody": True,
"maxRows": "<string>",
"out": "<string>",
"project": "<string>",
"sort": "<string>",
"view": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
base: '<string>',
console: '<string>',
filter: '<string>',
format: '<string>',
includeBody: true,
maxRows: '<string>',
out: '<string>',
project: '<string>',
sort: '<string>',
view: '<string>'
})
};
fetch('http://localhost:3000/api/v1/bases/rows/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/bases/rows/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'base' => '<string>',
'console' => '<string>',
'filter' => '<string>',
'format' => '<string>',
'includeBody' => true,
'maxRows' => '<string>',
'out' => '<string>',
'project' => '<string>',
'sort' => '<string>',
'view' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/bases/rows/export"
payload := strings.NewReader("{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3000/api/v1/bases/rows/export")
.header("Content-Type", "application/json")
.body("{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/bases/rows/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"base\": \"<string>\",\n \"console\": \"<string>\",\n \"filter\": \"<string>\",\n \"format\": \"<string>\",\n \"includeBody\": true,\n \"maxRows\": \"<string>\",\n \"out\": \"<string>\",\n \"project\": \"<string>\",\n \"sort\": \"<string>\",\n \"view\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"baseRef": "<string>",
"columns": [
"<string>"
],
"consoleUrl": "<string>",
"content": "<string>",
"format": "<string>",
"outFile": "<string>",
"projectRef": "<string>",
"rowCount": 123,
"success": true,
"truncated": true,
"viewId": "<string>"
}Body
application/json
Base id or slug
Console base URL
Query AST filter, inline JSON or @file
csv|json (default csv)
Include the row body when readable
Stop after this many rows (default and max 100000)
Write to this file instead of stdout
Console project id or slug; overrides the saved Console scope
Comma-separated sort keys, key[:asc|desc], e.g. amount:desc,created_time (max 3)
Read or write through this view (its columns, filter, and access apply)
Response
Success — body conforms to the @Returns schema.