Skip to main content

/kv/rest/v1/lists/{key}/contains/{item} REST Method

Checks if a specific Key-Value Store list contains a specific item.

Updated on
Jun 28, 2024

/kv/rest/v1/lists/{key}/contains/{item} REST Method

Path Parameters

key
string
REQUIRED
The unique key associated with the list
item
string
REQUIRED
The item to check for in the list

Returns

data
object
The data object which contains the following fields:
exists
boolean
Indicates whether the specified item is present in the Key-Value Store list.
Request
1
curl -X GET \
2
"https://api.quicknode.com/kv/rest/v1/lists/{key}/contains/{item}" \
3
-H "accept: application/json" \
4
-H "Content-Type: application/json" \
5
-H "x-api-key: YOUR_API_KEY"
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free