---
search:
  tags:
    - Public
    - GET
seo:
  description: >-
    kind: object のコレクション（サイト設定など）が持つ一件の公開… Reference for the GET
    /public/{projectId}/{apiId} endpoint in the FoodForCMS 公開コンテンツ API.
sidebar:
  label: オブジェクトコレクションのエントリーを取得
  badge: GET
title: オブジェクトコレクションのエントリーを取得
type: openapi-operation
---
`kind: object` のコレクション（サイト設定など）が持つ一件の公開エントリーを返します。エントリーが公開されていない間は `404`、リスト形式のコレクションにはコード `not_object_collection` の `400` を返します。SDK の `getObject` に対応します。

`GET /public/{projectId}/{apiId}`

**Responses**

- `200` — 公開エントリー。
- `400` — エラー。\`message\` に理由が入ります。
- `401` — エラー。\`message\` に理由が入ります。
- `403` — エラー。\`message\` に理由が入ります。
- `404` — エラー。\`message\` に理由が入ります。
- `429` — API キーのレート制限（毎秒 60 リクエスト）を超えました。\`Retry-After\` ヘッダーの秒数が経過してから再試行してください。

Response example, 200:

```json
{
  "data": {
    "id": "string",
    "collectionId": "string",
    "status": "published",
    "data": {},
    "publishedAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
```

Response example, 429:

```json
{
  "code": "rate_limited",
  "message": "Too many requests"
}
```
