Read a value from the key-value store. The key-value store is a simple storage system that allows you to store and retrieve data using a key. The data is stored in the cloud and can be accessed from anywhere. You can use the key-value store to store any type of data, such as text or numbers. The key-value store is a great way to store data that you want to access from multiple devices or locations.
| Name | Example | Description |
|---|---|---|
key | visitors24h | The key for which the value is stored (max length 255 characters). |
api-key | abcd1234 | Your API key. |
{
"value": "100"
} Copy Code
curl -X GET 'https://api.apileague.com/read-key-value?key=visitors24h' \ -H 'x-api-key: myapikey'
Response Headers:
Content-Type: application/jsonX-API-Quota-Request: The number of tokens used by the requestX-API-Quota-Used: The number of tokens used in total todayX-API-Quota-Left: The number of tokens left today (depends on your plan)Store a value in the key-value store. The key-value store is a simple storage system that allows you to store and retrieve data using a key. The data is stored in the cloud and can be accessed from anywhere. You can use the key-value store to store any type of data, such as text or numbers. The key-value store is a great way to store data that you want to access from multiple devices or locations.
| Name | Example | Description |
|---|---|---|
key | visitors24h | The key for which the value is stored (max length 255 characters). |
(body) | {"value": "23578 visitors"} | A json object with the "value" that is supposed to be stored (max length 10,000 characters). |
api-key | abcd1234 | Your API key. |
{
"status": "success"
} Response Headers:
Content-Type: application/jsonX-API-Quota-Request: The number of tokens used by the requestX-API-Quota-Used: The number of tokens used in total todayX-API-Quota-Left: The number of tokens left today (depends on your plan)Store a value in the key-value store. The key-value store is a simple storage system that allows you to store and retrieve data using a key. The data is stored in the cloud and can be accessed from anywhere. You can use the key-value store to store any type of data, such as text or numbers. The key-value store is a great way to store data that you want to access from multiple devices or locations.
| Name | Example | Description |
|---|---|---|
key | visitors24h | The key for which the value is stored (max length 255 characters). |
value | 23578 visitors | The value that is supposed to be stored (max length 10,000 characters). |
api-key | abcd1234 | Your API key. |
{
"status": "success"
} Copy Code
curl -X GET 'https://api.apileague.com/store-key-value?key=visitors24h&value=100' \ -H 'x-api-key: myapikey'
Response Headers:
Content-Type: application/jsonX-API-Quota-Request: The number of tokens used by the requestX-API-Quota-Used: The number of tokens used in total todayX-API-Quota-Left: The number of tokens left today (depends on your plan)You can store any type of data that can be represented as a string, such as text, numbers, JSON objects, or configuration settings.
Yes, the data is stored securely in the cloud and remains available until you update or delete it.
Absolutely. Since the data is stored in the cloud, you can access it from any device or application that has the correct API key and key name.
The Key Value Storage API is a simple, lightweight cloud storage for storing small pieces of data (like settings or simple states) accessible via a simple API key, whereas a traditional database is for complex, structured data relationships.