ニュース一覧取得
ニュースコンテンツを一覧取得
curl --request GET \
--url https://cdn.r25.io/static/projects/{projectId}/spaces/{spaceId}/news/instances/{instanceId}/news \
--header 'x-r25-ac-api-key: <x-r25-ac-api-key>' \
--header 'x-r25-ac-api-secret: <x-r25-ac-api-secret>'
{
"totalCount": 999999,
"currentPage": 1,
"list": [
{
"contentId": "<string>",
"projectId": "<string>",
"spaceId": "<string>",
"name": "<string>",
"alias": "<string>",
"status": "draft",
"reservedAt": 123,
"closingAt": 123,
"openingAt": 123,
"values": {
"title": "<string>",
"body": {},
"thumbnail": {
"mediaId": "<string>",
"media": {
"name": "<string>",
"assets": [
{
"path": "media/00000000000000000000000.png",
"accessUrl": "<string>"
}
],
"type": "image",
"mediaId": "<string>",
"projectId": "<string>",
"spaceId": "<string>",
"accessUrl": "<string>",
"thumbnailAccessUrl": "<string>",
"meta": {
"ext": "png",
"mimetype": "image/png",
"asset": "AdobeAnimate_cjs_1_0_0"
},
"fileSize": 1234567,
"duration": 1234567,
"operations": [
{
"type": "trim",
"orientation": "top-left"
}
],
"thumbnailOperations": [
{
"type": "trim",
"orientation": "top-left"
}
],
"alias": "<string>",
"originalUrl": "<string>",
"status": "published",
"signed": true
}
},
"sponsors": [
{
"name": "<string>"
}
],
"seo": {
"isPreventCrawling": true,
"canonicalUrl": "<string>"
},
"isOutline": true,
"share": {
"x": {
"text": "<string>",
"users": [
"<string>"
],
"hashTags": [
"<string>"
],
"followButtonUsers": [
{
"userId": "<string>",
"name": "<string>"
}
]
}
},
"isRss": true
},
"category": {
"categoryId": "<string>",
"name": "<string>",
"alias": "<string>"
},
"tags": [
{
"tagId": "<string>",
"name": "<string>",
"alias": "<string>"
}
],
"createdAt": 123,
"updatedAt": 123
}
]
}
Headers
コンソールで取得したAPIキーを指定してください。
コンソールで取得したAPIシークレットを指定してください。
Path Parameters
ご自身のプロジェクトIDを指定してください。
ご自身のスペースIDを指定してください。
ご自身のアプリケーションIDを指定してください。
Query Parameters
sizeで指定した数で何ページ目のリソースを取得するか指定できます。
x >= 1
最大何個のリソースを取得するか指定できます。
1 <= x <= 99
リソースの順番を指定できます。カンマ区切りで、複数の値を指定できます。複数指定の場合、指定した順にソートされます。 e.g. createdAt:desc,updatedAt:asc
コンテンツIDを複数指定して取得できます。カンマ区切りで、複数の値を指定できます。
カテゴリーIDまたはカテゴリーエイリアスを指定して取得できます。
タグIDまたはタグエイリアスを複数指定して取得できます。カンマ区切りで、複数の値を指定できます。
trueを指定することで、RSS配信設定がONのコンテンツのみ取得できます。
全文検索を利用して取得できます。
1 - 100
trueを指定することで、カテゴリー詳細情報も取得できます。
trueを指定することで、タグ詳細情報も取得できます。
Response
999999
1
ニュースのID
プロジェクトのID
スペースのID
ニュースタイトル
ニュースのステータス
draft
, published
ニュースの詳細情報
タイトル
本文
サムネイル画像のID
サムネイル画像のメディア情報
メディア名
image
, video
"image"
メディアのID
プロジェクトのID
スペースのID
メディアにアクセスするためのURL。type が video の場合、HLS(.m3u8)のURLを返します。
サムネイル画像のアクセスURL
ファイルサイズ
1234567
メディアの再生時間
1234567
メディアを一意に識別する文字列
オリジナル画像のアクセスURL
published
署名付きURLが有効かどうか
true
目次自動生成設定
RSS配信設定
ニュースの作成日時
ニュースの更新日時
ニュースを一意に識別する文字列
ニュースの公開予約日時
ニュースの公開終了日時
ニュースの公開開始日時
curl --request GET \
--url https://cdn.r25.io/static/projects/{projectId}/spaces/{spaceId}/news/instances/{instanceId}/news \
--header 'x-r25-ac-api-key: <x-r25-ac-api-key>' \
--header 'x-r25-ac-api-secret: <x-r25-ac-api-secret>'
{
"totalCount": 999999,
"currentPage": 1,
"list": [
{
"contentId": "<string>",
"projectId": "<string>",
"spaceId": "<string>",
"name": "<string>",
"alias": "<string>",
"status": "draft",
"reservedAt": 123,
"closingAt": 123,
"openingAt": 123,
"values": {
"title": "<string>",
"body": {},
"thumbnail": {
"mediaId": "<string>",
"media": {
"name": "<string>",
"assets": [
{
"path": "media/00000000000000000000000.png",
"accessUrl": "<string>"
}
],
"type": "image",
"mediaId": "<string>",
"projectId": "<string>",
"spaceId": "<string>",
"accessUrl": "<string>",
"thumbnailAccessUrl": "<string>",
"meta": {
"ext": "png",
"mimetype": "image/png",
"asset": "AdobeAnimate_cjs_1_0_0"
},
"fileSize": 1234567,
"duration": 1234567,
"operations": [
{
"type": "trim",
"orientation": "top-left"
}
],
"thumbnailOperations": [
{
"type": "trim",
"orientation": "top-left"
}
],
"alias": "<string>",
"originalUrl": "<string>",
"status": "published",
"signed": true
}
},
"sponsors": [
{
"name": "<string>"
}
],
"seo": {
"isPreventCrawling": true,
"canonicalUrl": "<string>"
},
"isOutline": true,
"share": {
"x": {
"text": "<string>",
"users": [
"<string>"
],
"hashTags": [
"<string>"
],
"followButtonUsers": [
{
"userId": "<string>",
"name": "<string>"
}
]
}
},
"isRss": true
},
"category": {
"categoryId": "<string>",
"name": "<string>",
"alias": "<string>"
},
"tags": [
{
"tagId": "<string>",
"name": "<string>",
"alias": "<string>"
}
],
"createdAt": 123,
"updatedAt": 123
}
]
}