Get current global sequence number

head
Get current global sequence number

https://api.serialized.io/feeds/_all
Get current global sequence number at head for all feeds. Note that since this is a HEAD request the value is returned as a HTTP header (Serialized-SequenceNumber-Current).
Request
Response
Headers
Serialized-Access-Key
required
string
Access key for the project
Serialized-Secret-Access-Key
required
string
Secret access key for the project
200: OK
Global sequence number successfully retrieved
HTTP/1.1 200 OK
Serialized-SequenceNumber-Current: 23
cURL
Java
C#
Node
curl -I \
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
https://api.serialized.io/feeds/_all
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
Client client = ClientBuilder.newClient();
URI apiRoot = URI.create("https://api.serialized.io");
Response response = client.target(apiRoot)
.path("feeds")
.path("_all")
.request()
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
.head();
String globalSequenceNumber = (String) response.getHeaders()
.getFirst("Serialized-SequenceNumber-Current");
using RestSharp;
using System;
var client = new RestClient("https://api.serialized.io");
var request = new RestRequest("feeds/_all")
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
var aggregateResponse = client.Head(request);
const axios = require("axios");
const client = axios.create({
baseURL: "https://api.serialized.io",
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
});
client.head("feeds/_all")
.then(function (response) {
// Handle response
})
.catch(function (error) {
// Handle error
});