GET
/
fetch
curl https://hardy-cricket-48359-us1-vector.upstash.io/fetch \
  -H "Authorization: Bearer ABcFMGhhcmR5LWNyaWNrZXQtNDgzNTktdXMxYWRtaW5PREE0TkdVME5XUXRaV0poTWkwME9UVTFMVGxrTm1NdE9USTROR0ppWkRsak56ZGs=" \
  -d '{ "ids": ["1", "2", "abcde"],
  "includeVectors": false,
  "includeMetadata": true }'
{
	"result" : [ 
		{
		    "id" : "1",
		    "metadata" : {"genre":"comedy","year":2020}
	  	},
	   	{
		    "id" : "2",
		    "metadata" : {"genre":"comedy","year":2020}
	  	}, 
		null 
	]
}

Request

ids
string[]
required
The ID of the vector
includeMetadata
boolean
Whether to include the metadata of the vectors in the response. Setting this true would be the best practice, since it will make it easier to identify the vectors.
includeVectors
boolean
Whether to include the vector data of the resulting vectors.

Response

FetchVectors
Array
It returns the data related to provided vectors ids in sorted manner. Object is null if the vector related to that ID couldn’t be found.
curl https://hardy-cricket-48359-us1-vector.upstash.io/fetch \
  -H "Authorization: Bearer ABcFMGhhcmR5LWNyaWNrZXQtNDgzNTktdXMxYWRtaW5PREE0TkdVME5XUXRaV0poTWkwME9UVTFMVGxrTm1NdE9USTROR0ppWkRsak56ZGs=" \
  -d '{ "ids": ["1", "2", "abcde"],
  "includeVectors": false,
  "includeMetadata": true }'
{
	"result" : [ 
		{
		    "id" : "1",
		    "metadata" : {"genre":"comedy","year":2020}
	  	},
	   	{
		    "id" : "2",
		    "metadata" : {"genre":"comedy","year":2020}
	  	}, 
		null 
	]
}