Spot API : Get a spot

GET /api/1/places/:id.json

指定したスポットの情報を返却する。 もしスポットがスポットグループに属している場合は place_group フィールドも出力される。

Parameters

Key Value デフォルト値
id 取得対象スポットのID

Request

Route

GET /api/1/places/924776953.json

Headers

Host: example.org
Cookie: 
Origin: 

Response

Headers

Content-Type: application/json; charset=utf-8
Set-Cookie: guest_distinct_id=5d0975b7-6ca3-4f45-99a1-467ab71e9f37; expires=Mon, 09-Jan-2023 01:54:15 GMT
THIS_IS_SESSION_COOKIE_KEY_FOR_SPEC=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTZlYjk3MjgyMTgyYzE3OTc1ZTVjNWIwZThlM2I3ZjQ3BjsAVEkiGGtwaV9wcmV2X2NvbnRyb2xsZXIGOwBGSSIUYXBpL3BsYWNlcyNzaG93BjsARg%3D%3D--a5d39529edef55a00b089af50c156c337e82987c; path=/; HttpOnly
X-Ua-Compatible: IE=Edge,chrome=1
E-Tag: "60c9128645ee889a71b4445f366bb0e7"
Cache-Control: max-age=0, private, must-revalidate
X-Request: b1d0db0f7653aa4ce514984879659ce2
X-Runtime: 0.015893
Content-Length: 342

Status

200 OK

Body

フォーマット: places/basic
{
  "place": {
    "id": 924776953,
    "name": "Tonchidot Park (Yoyogi)",
    "address": null,
    "description": null,
    "lon": 139.696373,
    "lat": 35.670685,
    "created_at": "2013-01-09T01:54:04Z",
    "updated_at": "2013-01-09T01:54:04Z",
    "place_group": {
      "id": 397562124,
      "name": "Tonchidot Park",
      "places_count": 0,
      "created_at": "2013-01-09T01:54:04Z",
      "updated_at": "2013-01-09T01:54:04Z"
    }
  }
}