---
search:
  tags:
    - Public
    - GET
seo:
  description: >-
    公開中のエントリー（published、および publishedAt… Reference for the GET
    /public/{projectId}/{apiId}/entries endpoint in the FoodForCMS 公開コンテンツ API.
sidebar:
  label: 公開エントリーの一覧を取得
  badge: GET
title: 公開エントリーの一覧を取得
type: openapi-operation
---
公開中のエントリー（`published`、および `publishedAt` を過ぎた `scheduled`）を返します。既定の並び順は `publishedAt` の新しい順です。`data` には、現在スキーマに定義されているフィールドだけが含まれます。SDK の `getList` と `getAllEntries` に対応します。

フィルターは `<fieldApiId>[<operator>]=<value>` 形式のクエリで指定します（例: `title[contains]=recipe`）。演算子は `equals`（完全一致）、`contains`（大文字小文字を区別しない部分一致）、`greater_than` と `less_than`（数値・日付フィールドのみ）です。複数指定すると、すべての条件に一致するエントリーを返します。

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

**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"
    }
  ],
  "page": 0,
  "limit": 0,
  "total": 0
}
```

Response example, 429:

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