Skip to content
Console
On this page

Zset score in KV

Reads a member's score (ZSCORE); an absent member has no `score`.

Reads a member's score (ZSCORE); an absent member has no score.

  • Path POST https://api.data.sylphx.com/v1/kv-zset-scores
  • Scope data:read
  • Effect read — nothing is written.
  • Collection kv
  • Host https://api.data.sylphx.com

Request

FieldTypeWhat it is
namespace_idstringThe namespace's id. Required.
keystringThe sorted set's key. Required.
memberstringThe member. Required.

Response

FieldTypeWhat it is
scoredoubleThe member's score; unset when the member or the set is absent.

Errors

Every error arrives in the body Errors describes.

Examples

curl -X POST "https://api.data.sylphx.com/v1/kv-zset-scores" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"…","member":"…","namespace_id":"…"}'