jikan icon indicating copy to clipboard operation
jikan copied to clipboard

Industry News

Open LuckyYam opened this issue 3 years ago • 3 comments

In the v4, the api can only return the news for a given anime/manga id. So, I would like to request to add a endpoint for returning news info when valid news id is provided.

LuckyYam avatar Feb 04 '22 14:02 LuckyYam

This issue will be closed and archived in 18 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.

github-actions[bot] avatar Jul 08 '22 01:07 github-actions[bot]

.

LuckyYam avatar Jul 08 '22 09:07 LuckyYam

Definition/Requirement

Endpoints

News Tags

News Tags: https://myanimelist.net/news/tag

$jikan->getNewsTags($request)

Recent News

Recent News: https://myanimelist.net/news?p=1

$jikan->getNews(new NewsRequest(int $page))

News By Tag

News By Tag: https://myanimelist.net/news/tag/new_anime

$jikan->getNewsByTag(new NewsByTagRequest(string $tag, int $page))

News Search

News Search: https://myanimelist.net/news/search?q=bleach

$jikan->getNewsSearch(new NewsSearchRequest(string $query, int $page))

Response Objects

News/Tags

Categories

  • Anime
  • Manga
  • People
  • Music
  • Events
  • Industry

News/Tag

Tags[] in each Category

Property Type Remarks
mal_id String Tag name (canonical)
name String Tag name
url String News listing by tag URL
description String -

NewsByID

MAL URL: https://myanimelist.net/news/66771438

Property Type Remarks
mal_id String News ID
url String -
forum_url String URL to comments - so it can be parsed by MAL's API
title String News title
date String ISO8601
content String Unparsed HTML response (like user about mes'?)
user UserMeta Author user object
comments Integer Comment count
relations Objects of MalUrl[] Same as relation is done in getAnime & getManga
tags TagMeta[] Array of tag metadata objects (mal_id, name, URL)

Results

The following will implement Results.

  • Recent News
  • News By Tag
  • News Search

getResults() will return an array of NewsListItem

NewsListItem

Property Type Remarks
mal_id String News ID
url String -
images Images Object Need to look into available formats & sizes
forum_url String URL to comments - so it can be parsed by MAL's API
title String News title
date String ISO8601
excerpt String -
user UserMeta Author user object
comments Integer Comment count
tags TagMeta[] Array of tag metadata objects (mal_id, name, URL)

irfan-dahir avatar Oct 27 '22 02:10 irfan-dahir