Created
December 18, 2018 07:30
-
-
Save suabahasa/1421d1db33a940dba7083f6e5277efcc to your computer and use it in GitHub Desktop.
MyAnimeList's official android application API. run this workspace with Insomnia app (https://insomnia.rest)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_type": "export", | |
"__export_format": 3, | |
"__export_date": "2018-09-06T19:29:54.718Z", | |
"__export_source": "insomnia.desktop.app:v6.0.2", | |
"resources": [ | |
{ | |
"_id": "wrk_02bc33842306413eaf410590c544b409", | |
"created": 1498731998760, | |
"description": "Official MyAnimeList android application", | |
"modified": 1536261619245, | |
"name": "MyAnimeList", | |
"parentId": null, | |
"_type": "workspace" | |
}, | |
{ | |
"_id": "env_1998f916d20d40fcb28063859a1d06da", | |
"color": null, | |
"created": 1498732130176, | |
"data": { | |
"access_token": "{% response 'body', 'req_5e22eed752604c1b9b2d3d93af1e2129', '$.access_token' %}", | |
"fields": "alternative_titles,media_type,num_episodes,status,start_date,end_date,average_episode_duration,synopsis,mean,rank,popularity,num_list_users,num_favorites,num_scoring_users,start_season,broadcast,my_list_status{start_date,finish_date},nsfw,created_at,updated_at", | |
"host": "api.myanimelist.net", | |
"my_list_status": { | |
"score": { | |
"appalling": 1, | |
"average": 5, | |
"bad": 4, | |
"fine": 6, | |
"good": 7, | |
"great": 9, | |
"horrible": 2, | |
"masterpiece": 10, | |
"not_yet_scored": 0, | |
"very_bad": 3, | |
"very_good": 8 | |
}, | |
"status": { | |
"completed": "completed", | |
"dropped": "dropped", | |
"on_hold": "on_hold", | |
"plan_to_watch": "plan_to_watch", | |
"watching": "watching" | |
} | |
}, | |
"protocol": "https", | |
"refresh_token": "{% response 'body', 'req_5e22eed752604c1b9b2d3d93af1e2129', '$.refresh_token' %}", | |
"season": { | |
"fall": "fall", | |
"spring": "spring", | |
"summer": "summer", | |
"winter": "winter" | |
}, | |
"sort": { | |
"last_update": "list_updated_at", | |
"score": "list_score", | |
"start_date": "anime_start_date", | |
"title": "anime_title" | |
}, | |
"token_type": "{% response 'body', 'req_5e22eed752604c1b9b2d3d93af1e2129', '$.token_type' %}", | |
"user_agent": "MAL (android, 0.11.13)", | |
"x_mal_client_id": "6114d00ca681b7701d1e15fe11a4987e" | |
}, | |
"isPrivate": false, | |
"metaSortKey": 1536241994929, | |
"modified": 1536260347928, | |
"name": "Base Environment", | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"_type": "environment" | |
}, | |
{ | |
"_id": "jar_96f5192982db429ea53170aa527894ae", | |
"cookies": [], | |
"created": 1536239316752, | |
"modified": 1536239316752, | |
"name": "Default Jar", | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"_type": "cookie_jar" | |
}, | |
{ | |
"_id": "req_5e22eed752604c1b9b2d3d93af1e2129", | |
"authentication": {}, | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"id": "pair_91bd0ca4d83248fba1c0853345668e2d", | |
"name": "client_id", | |
"value": "6114d00ca681b7701d1e15fe11a4987e" | |
}, | |
{ | |
"id": "pair_b353dd21871944a1a2a0d4ff8d0e135f", | |
"name": "username", | |
"value": "{{ username }}" | |
}, | |
{ | |
"id": "pair_43c0091243ff4f9194d4f135f5d50e9a", | |
"name": "password", | |
"value": "{{ password }}" | |
}, | |
{ | |
"id": "pair_20b4df5dc2b54e4abc71bd37c1670746", | |
"name": "grant_type", | |
"value": "password" | |
} | |
] | |
}, | |
"created": 1536244627982, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded" | |
}, | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536244627982, | |
"method": "POST", | |
"modified": 1536262124137, | |
"name": "token", | |
"parameters": [], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/auth/token", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_734e7db1c18d46cb8a926d4a20fb88c3", | |
"authentication": {}, | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"id": "pair_dcae6a5ee2f1453e9daccdf1bb53ab7e", | |
"name": "device_token", | |
"value": "" | |
}, | |
{ | |
"id": "pair_40df532600d3435ebdcd3dfb14b75846", | |
"name": "device_type", | |
"value": "android" | |
} | |
] | |
}, | |
"created": 1536247527339, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded" | |
}, | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536247527339, | |
"method": "POST", | |
"modified": 1536260340353, | |
"name": "device_tokens", | |
"parameters": [], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/users/@me/device_tokens", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_4ee5fb9f167146ccb87f45cf094bb133", | |
"authentication": {}, | |
"body": {}, | |
"created": 1536248465256, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536248465256, | |
"method": "GET", | |
"modified": 1536260778456, | |
"name": "season", | |
"parameters": [ | |
{ | |
"id": "pair_4e7a17985b124d3fbd69679c6e206b89", | |
"name": "", | |
"value": "" | |
}, | |
{ | |
"id": "pair_1dadbab159764c17ad7c633185cc0c0a", | |
"name": "sort", | |
"value": "anime_num_list_users" | |
}, | |
{ | |
"id": "pair_2f870dd8c9384e95a5a017f1c7dd71f9", | |
"name": "limit", | |
"value": "30" | |
}, | |
{ | |
"id": "pair_8e2caf67bb0342959ed30e12167c0910", | |
"name": "offset", | |
"value": "0" | |
}, | |
{ | |
"id": "pair_bbe0107d1bef4125b61dc4975add880b", | |
"name": "fields", | |
"value": "alternative_titles,media_type,num_episodes,status,start_date,end_date,average_episode_duration,synopsis,mean,rank,popularity,num_list_users,num_favorites,num_scoring_users,start_season,broadcast,my_list_status{start_date,finish_date},nsfw,created_at,updated_at" | |
} | |
], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/anime/season/{% now 'custom', 'YYYY' %}/{{ season.winter }}", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_1d4628b7195544039fef6a95776900a5", | |
"authentication": {}, | |
"body": {}, | |
"created": 1536255041585, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536255041585, | |
"method": "GET", | |
"modified": 1536260782354, | |
"name": "suggestions", | |
"parameters": [ | |
{ | |
"id": "pair_4eac322a9f68485f9f877e53879a24bf", | |
"name": "limit", | |
"value": "30" | |
}, | |
{ | |
"id": "pair_1764433878064b6dba6a7837cb8d151c", | |
"name": "offset", | |
"value": "0" | |
}, | |
{ | |
"id": "pair_3b772434c4fe4aff97594cdf6fcb7f1c", | |
"name": "fields", | |
"value": "alternative_titles,media_type,num_episodes,status,start_date,end_date,average_episode_duration,synopsis,mean,rank,popularity,num_list_users,num_favorites,num_scoring_users,start_season,broadcast,my_list_status{start_date,finish_date},nsfw,created_at,updated_at" | |
} | |
], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/anime/suggestions", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_36359de7adea4c18b17f17d60bf1a230", | |
"authentication": {}, | |
"body": {}, | |
"created": 1536256422126, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536256422126, | |
"method": "GET", | |
"modified": 1536260772399, | |
"name": "my_list", | |
"parameters": [ | |
{ | |
"id": "pair_9803f27077cb48c58abe38685b35f711", | |
"name": "sort", | |
"value": "{{ sort.title }}" | |
}, | |
{ | |
"id": "pair_e40f9e1d96384bf69d8f97691b137061", | |
"name": "limit", | |
"value": "50" | |
}, | |
{ | |
"id": "pair_f777b12b3a9842db9f03a6f6863710a0", | |
"name": "offset", | |
"value": "0" | |
}, | |
{ | |
"id": "pair_3ad0f3ad20d54431a4b711da93835d97", | |
"name": "fields", | |
"value": "alternative_titles,media_type,num_episodes,status,start_date,end_date,average_episode_duration,synopsis,mean,rank,popularity,num_list_users,num_favorites,num_scoring_users,start_season,broadcast,my_list_status{start_date,finish_date},nsfw,created_at,updated_at" | |
}, | |
{ | |
"id": "pair_ab260d3b8a964e72b7fc4e8283603ad2", | |
"name": "status", | |
"value": "" | |
} | |
], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/users/@me/animelist", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_0b5bc1dac1f449318b9cda2e0d7c461d", | |
"authentication": {}, | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"id": "pair_1102d419a2964c1aa0696d42d857b910", | |
"name": "status", | |
"value": "{{ my_list_status.status.watching }}" | |
}, | |
{ | |
"id": "pair_63c627e1acdb4141992b6cb6ac7751be", | |
"name": "score", | |
"value": "{{ my_list_status.score.very_good }}" | |
}, | |
{ | |
"id": "pair_e73221ac07734a0ea972232a6570a2fa", | |
"name": "num_watched_episodes", | |
"value": "{% response 'body', 'req_36359de7adea4c18b17f17d60bf1a230', '$.data[0].node.my_list_status.num_episodes_watched' %}" | |
}, | |
{ | |
"id": "pair_07aac979a0df48a9871083cd96af379b", | |
"name": "is_rewatching", | |
"value": "false" | |
}, | |
{ | |
"id": "pair_ff04f69b5a91467fb5e3ac572623d849", | |
"name": "start_date", | |
"value": "" | |
}, | |
{ | |
"id": "pair_b69665da061742b9832d9f370c9b6093", | |
"name": "finish_date", | |
"value": "" | |
} | |
] | |
}, | |
"created": 1536256824095, | |
"description": "start date field format: YYYY-MM-DD\nfinish_date field format: YYYY-MM-DD", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
}, | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536256824095, | |
"method": "PUT", | |
"modified": 1536260945742, | |
"name": "update_list", | |
"parameters": [], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/anime/{% response 'body', 'req_36359de7adea4c18b17f17d60bf1a230', '$.data[0].node.id' %}/my_list_status", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_8e00c4dc36e040a8af687ada7934d143", | |
"authentication": {}, | |
"body": {}, | |
"created": 1536259716434, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536259716434, | |
"method": "GET", | |
"modified": 1536261923198, | |
"name": "anime_detail", | |
"parameters": [ | |
{ | |
"id": "pair_11bcda6434e3472095969fd195891df1", | |
"name": "fields", | |
"value": "{{ fields }}" | |
} | |
], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/anime/{% response 'body', 'req_36359de7adea4c18b17f17d60bf1a230', '$.data[0].node.id' %}", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_ad3f74861c894eb7ad58794b3d06b752", | |
"authentication": {}, | |
"body": {}, | |
"created": 1536261867619, | |
"description": "", | |
"headers": [ | |
{ | |
"name": "X-MAL-Client-ID", | |
"value": "{{ x_mal_client_id }}" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "{{ user_agent }}" | |
}, | |
{ | |
"name": "Connection", | |
"value": "Keep-Alive" | |
}, | |
{ | |
"name": "X-Authorization", | |
"value": "{{ token_type }} {{ access_token }}" | |
} | |
], | |
"isPrivate": false, | |
"metaSortKey": -1536261867619, | |
"method": "GET", | |
"modified": 1536262165075, | |
"name": "search_anime", | |
"parameters": [ | |
{ | |
"id": "pair_43eeed7f0cdb4b9084671d9ae6e4e9e5", | |
"name": "fields", | |
"value": "{{ fields }}" | |
}, | |
{ | |
"id": "pair_faaf0e4b6d0a4c52b786ee135219914b", | |
"name": "offset", | |
"value": "0" | |
}, | |
{ | |
"id": "pair_46bfb236dec044f3be5015abccc84f50", | |
"name": "limit", | |
"value": "50" | |
}, | |
{ | |
"id": "pair_e18b5d9cb8c8486396fc1cc2b83077a1", | |
"name": "q", | |
"value": "{% prompt 'Anime title', 'Please enter the anime title to search', '', '', false %}" | |
} | |
], | |
"parentId": "wrk_02bc33842306413eaf410590c544b409", | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingMaxTimelineDataSize": 1000, | |
"settingRebuildPath": true, | |
"settingSendCookies": true, | |
"settingStoreCookies": true, | |
"url": "{{ protocol }}://{{ host }}/v0.21/anime", | |
"_type": "request" | |
}, | |
{ | |
"_id": "env_ca9ae85a510049e2b90728fcbee1acb0", | |
"color": null, | |
"created": 1536260352457, | |
"data": { | |
"username": "_YOUR_MAL_USERNAME_", | |
"password": "_YOUR_MAL_PASSWORD_" | |
}, | |
"isPrivate": false, | |
"metaSortKey": 1536260352457, | |
"modified": 1536261529103, | |
"name": "test", | |
"parentId": "env_1998f916d20d40fcb28063859a1d06da", | |
"_type": "environment" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, i have tried to get the api working but no luck , i have an issue in having the search anime get method to work precisely the access token ,
if you could walk me throw the steps from getting the access token to getting the json to work that would be awsome.
thanks