Private
To access your JSON files in a Private silo, you need to include the X-SILO-KEY
header in your HTTP requests, and a valid API KEY
is required to access your server. Here is a guide on how to generate your API KEY
.
Endpoint:
https://api.jsonsilo.com/<FILE_UUID_HERE>
Example
info
Ensure that you replace YOUR_API_KEY
with the actual API key you obtained from JSONsilo.
The provided example uses a placeholder UUID
(3611d590-4c64-4799-a68f-a3d2458d74f4),
replace it with the specific UUID
of the file you want to access.
- cURL
- Python (Requests)
- JavaScript (Axios)
curl -X GET \
-H 'X-SILO-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
https://api.jsonsilo.com/3611d590-4c64-4799-a68f-a3d2458d74f4
import requests
url = 'https://api.jsonsilo.com/3611d590-4c64-4799-a68f-a3d2458d74f4'
headers = {
'X-SILO-KEY': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.text)
// npm install axios
const url = 'https://api.jsonsilo.com/3611d590-4c64-4799-a68f-a3d2458d74f4';
const headers = {
'X-SILO-KEY': 'YOUR_API_KEY',
'Content-Type': 'application/json'
};
axios.get(url, { headers: headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('There was an error with the request:', error);
});