Item API : Get total and recent count of item creations

GET /api/1/items/counts.json

全体のアイテム総数と、直近に作成されたアイテムの個数を返却する。 直近とは、直前の数時間程度を意味する。

Request

Route

GET /api/1/items/counts.json

Headers

Host: example.org
Cookie: 
Origin: 

Response

Headers

Content-Type: application/json; charset=utf-8
Set-Cookie: guest_distinct_id=46ed187e-7c31-47ee-bfeb-03fddc105bd0; expires=Mon, 09-Jan-2023 01:54:11 GMT
THIS_IS_SESSION_COOKIE_KEY_FOR_SPEC=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTAxOGY5ZjlmMTNiODQwMjQzNDdlYzUzNmVmYzYyY2ExBjsAVEkiGGtwaV9wcmV2X2NvbnRyb2xsZXIGOwBGSSIVYXBpL2l0ZW1zI2NvdW50cwY7AEY%3D--9eca050c0c61628e4b4e293203780e9179f4fe6c; path=/; HttpOnly
X-Ua-Compatible: IE=Edge,chrome=1
E-Tag: "b300c42e42d0fc6758acade792d4b58e"
Cache-Control: max-age=0, private, must-revalidate
X-Request: 8d1c0d49fd003587414a0c8a00561748
X-Runtime: 0.014321
Content-Length: 36

Status

200 OK

Body

フォーマット: items/counts
{
  "counts": {
    "total": 13,
    "per_hour": 4
  }
}