Annict Docs
  • Annict Docs
  • Languages
  • Annict Docs (日本語)
    • api
      • v1
        • GET /v1/users
        • overview
        • GET /v1/episodes
        • authentication
        • GET /v1/me
        • GET /v1/series
        • GET /v1/me/programs
        • GET /v1/records
        • GET /v1/works
        • GET /v1/staffs
        • GET /v1/organizations
        • GET /v1/me/following_activities
        • GET /v1/people
        • me-records
        • GET /v1/reviews
        • GET /v1/me/works
        • GET /v1/activities
        • GET /v1/characters
        • GET /v1/followers
        • POST /v1/me/statuses
        • me-reviews
        • GET /v1/casts
        • GET /v1/following
    • Summary
  • Annict Docs (English)
Powered by GitBook
On this page
  • フィールド
  • アクティビティ共通
  • status: create_record
  • status: create_review
  • status: create_multiple_records
  • status: create_status
  • パラメータ
  • リクエスト例

Was this helpful?

  1. Annict Docs (日本語)
  2. api
  3. v1

GET /v1/activities

アクティビティを取得することができます。

フィールド

アクティビティ共通

名前

概要

id

アクティビティID

user

work

action

アクティビティの種類。create_record (記録), create_multiple_records (一括記録), create_status (ステータス変更) の3種類が存在します。

created_at

アクティビティ作成日時

上記フィールド以外に、 action ごとに異なるフィールドが存在します。

status: create_record

名前

概要

episode

record

status: create_review

名前

概要

review

status: create_multiple_records

名前

概要

multiple_record.episode

multiple_record.record

status: create_status

名前

概要

status.kind

ステータスの種類

パラメータ

名前

概要

使用例

fields

レスポンスボディに含まれるデータのフィールドを絞り込みます。

fields=id,work.title

filter_user_id

ユーザIDで絞り込みます。

filter_user_id=2

filter_username

ユーザ名で絞り込みます。

filter_username=shimbaco

page

ページ数を指定します。

page=2

per_page

1ページに何件取得するかを指定します。デフォルトは 25 件で、50 件まで指定できます。

per_page=30

sort_id

IDで並び替えます。asc または desc が指定できます。

sort_id=desc

リクエスト例

$ curl -X GET https://api.annict.com/v1/activities?access_token=(access_token)&sort_id=desc&filter_username=shimbaco&per_page=1
  "activities": [
    {
      "id": 1504708,
      "user": {
        "id": 2,
        "username": "shimbaco",
        "name": "Koji Shimba",
        "description": "アニメ好きが高じてこのサービスを作りました。聖地巡礼を年に数回しています。",
        "url": "http://shimba.co",
        "avatar_url": "https://api-assets.annict.com/paperclip/profiles/1/tombo_avatars/master/d8af7adc8122c96ba7639218fd8b5ede332d42f2.jpg?1431357292",
        "background_image_url": "https://api-assets.annict.com/paperclip/profiles/1/tombo_background_images/master/ee15d577fb2f2d61bdaf700cfab894b286a5762d.jpg?1486753229",
        "records_count": 2369,
        "created_at": "2014-03-02T15:38:40.000Z"
      },
      "action": "create_record",
      "created_at": "2017-02-22T13:24:44.761Z",
      "work": {
        "id": 5036,
        "title": "小林さんちのメイドラゴン",
        "title_kana": "こばやしさんちのめいどらごん",
        "media": "tv",
        "media_text": "TV",
        "released_on": "",
        "released_on_about": "",
        "official_site_url": "http://maidragon.jp/",
        "wikipedia_url": "https://ja.wikipedia.org/wiki/%E5%B0%8F%E6%9E%97%E3%81%95%E3%82%93%E3%81%A1%E3%81%AE%E3%83%A1%E3%82%A4%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3",
        "twitter_username": "maidragon_anime",
        "twitter_hashtag": "maidragon",
        "episodes_count": 7,
        "watchers_count": 448,
        "season_name": "2017-winter",
        "season_name_text": "2017年冬"
      },
      "episode": {
        "id": 89678,
        "number": "6",
        "number_text": "#6",
        "sort_number": 60,
        "title": "お宅訪問!(してないお宅もあります)",
        "records_count": 89,
        "record_comments_count": 24
      },
      "record": {
        "id": 864718,
        "comment": "",
        "rating": null,
        "is_modified": false,
        "likes_count": 0,
        "comments_count": 0,
        "created_at": "2017-02-22T13:24:39.353Z"
      }
    }
  ],
  "total_count": 3705,
  "next_page": 2,
  "prev_page": null
}
PreviousGET /v1/me/worksNextGET /v1/characters

Last updated 4 years ago

Was this helpful?

ユーザ情報。取得できるフィールドは と同じです。

作品情報。取得できるフィールドは と同じです。

記録されたエピソード情報。取得できるフィールドは と同じです。

記録情報。取得できるフィールドは と同じです。

レビュー情報。取得できるフィールドは と同じです。

記録されたエピソード情報。取得できるフィールドは と同じです。

記録情報。取得できるフィールドは と同じです。

Users
Works
Episodes
Records
Reviews
Episodes
Records