curl --request GET \
--url https://api.valar.space/operations/state-vectors \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valar.space/operations/state-vectors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valar.space/operations/state-vectors', 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.valar.space/operations/state-vectors",
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.valar.space/operations/state-vectors"
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.valar.space/operations/state-vectors")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/state-vectors")
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{
"unresolvedSpacecraftReferences": [
"<string>"
],
"content": [
{}
],
"first": true,
"hasNext": true,
"hasPrevious": false,
"last": false,
"page": 0,
"size": 20,
"totalElements": 150,
"totalPages": 8
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 400,
"error": "Bad Request",
"message": "Required parameter 'spacecraftId' is not present",
"path": "/operations/state-vectors"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 403,
"error": "ACCESS_ERROR",
"message": "Access denied",
"path": "/operations/state-vectors"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"path": "/operations/state-vectors"
}List state vectors for one or more spacecraft
Retrieves a paginated list of state vectors for the specified spacecraft(s), with optional date range filtering. The spacecraftId parameter may be repeated to query multiple spacecraft in a single call (e.g. ?spacecraftId=A&spacecraftId=B); results are merged into a single paginated set. Results are sorted by epoch descending by default. Empty results return 200 with an empty page.
curl --request GET \
--url https://api.valar.space/operations/state-vectors \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.valar.space/operations/state-vectors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.valar.space/operations/state-vectors', 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.valar.space/operations/state-vectors",
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.valar.space/operations/state-vectors"
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.valar.space/operations/state-vectors")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/state-vectors")
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{
"unresolvedSpacecraftReferences": [
"<string>"
],
"content": [
{}
],
"first": true,
"hasNext": true,
"hasPrevious": false,
"last": false,
"page": 0,
"size": 20,
"totalElements": 150,
"totalPages": 8
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 400,
"error": "Bad Request",
"message": "Required parameter 'spacecraftId' is not present",
"path": "/operations/state-vectors"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 403,
"error": "ACCESS_ERROR",
"message": "Access denied",
"path": "/operations/state-vectors"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"path": "/operations/state-vectors"
}Query Parameters
Spacecraft identifier(s) to filter state vectors by. Required; may be repeated to query multiple spacecraft in a single call (e.g. ?spacecraftId=A&spacecraftId=B), in which case results are merged into a single paginated set sorted by epoch desc.
1 - 50 elementsResponse
Successfully retrieved state vectors
Paginated response wrapper that also reports which supplied spacecraft references did not resolve (drop-report)
Spacecraft references the caller supplied that did not resolve (de-duplicated, caller order preserved). Always present; an empty array means every supplied reference resolved.
Spacecraft references the caller supplied that did not resolve (de-duplicated, caller order preserved). Always present; an empty array means every supplied reference resolved.
Was this page helpful?