Root
https://api.jsonhut.com/
All requests support cross-origin resource sharing(CORS) and SSL.
*Request JSON
 GET /bins/:id 

Server response

200 OK
*Create a new JSON
 POST /bins 

POST Body

 {
  "json": "your json",
  "duration_days": 3
 }

Params

Server response

201 Created
*Get JSON details
 GET /details/:id 

Server response

200 OK
 //for example
 {
  "code": 200,
  "msg": "Success",
  "data": {
      "url": "https://api.jsonhut.com/bins/2G2DZX",
      "count": 16,
      "created_at": "2021-02-09 22:36:29",
      "last_used_at": "2021-02-10 21:38:44",
      "expires_at": "2021-02-12 22:36:29"
   }
 }

Glossary

  • url: The url to request JSON
  • count: Number of calls
  • created_at: The JSON created at this time
  • last_used_at: The JSON Last used at this time
  • expires_at: The JSON will expire after this time