πŸ“˜ SetGet.io API Documentation

Store and retrieve JSON or plain text via simple HTTP calls. No login required. Public and private modes supported.

Endpoints

Set Data
GET  /api/set?key=hello&content=world&expireAfter=3600
POST /api/set

Parameters: key (optional), content (required), secret (optional), expireAfter (in seconds)

Get Data
GET /api/get/{key}
GET /api/get/{key}?secret=your-secret
GET /api/get/{key}?raw=1

πŸ”“ Public vs πŸ” Private

Public Example
GET /api/set?key=public&content=hello
GET /api/get/public
Private Example
GET /api/set?key=private&content=secret-data&secret=abc123
GET /api/get/private?secret=abc123

🌐 Webhooks & Automation

You can integrate SetGet.io with tools like Make.com, n8n, Zapier, and others.

Webhook Example:
https://setget.io/api/set?key=order123&content=Order+received&secret=mysecret

Use GET to fetch the stored value in any follow-up step.

πŸ“¦ Simple Code Integrations

PHP
// Set data
file_get_contents("https://setget.io/api/set?key=php-key&content=Hello+from+PHP");

// Get data
$response = file_get_contents("https://setget.io/api/get/php-key");
echo $response;
JavaScript (Fetch)
// Set data
fetch("https://setget.io/api/set?key=js-key&content=Hello+from+JS");

// Get data
fetch("https://setget.io/api/get/js-key")
  .then(res => res.text())
  .then(console.log);
Python
import requests

# Set data
requests.get("https://setget.io/api/set", params={
  "key": "py-key",
  "content": "Hello from Python"
})

# Get data
response = requests.get("https://setget.io/api/get/py-key")
print(response.text)
Command Line (cURL)
# Set data
curl "https://setget.io/api/set?key=cli&content=Hello+CLI"

# Get data
curl "https://setget.io/api/get/cli"
n8n Workflow Example
[HTTP Request Node]
Method: GET
URL: https://setget.io/api/set?key=from-n8n&content=triggered-by-n8n

[HTTP Request Node]
Method: GET
URL: https://setget.io/api/get/from-n8n