Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Industry News #391

Closed
LuckyYam opened this issue Feb 4, 2022 · 4 comments
Closed

Industry News #391

LuckyYam opened this issue Feb 4, 2022 · 4 comments
Labels
feature request features that are requested or are in the roadmap
Milestone

Comments

@LuckyYam
Copy link

LuckyYam commented Feb 4, 2022

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.

@irfan-dahir irfan-dahir added the feature request features that are requested or are in the roadmap label Feb 4, 2022
@github-actions
Copy link

github-actions bot commented Jul 8, 2022

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.

@LuckyYam
Copy link
Author

LuckyYam commented Jul 8, 2022

.

@irfan-dahir
Copy link
Collaborator

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 irfan-dahir changed the title Request - News Info News Oct 27, 2022
@irfan-dahir irfan-dahir changed the title News Industry News Oct 27, 2022
@irfan-dahir irfan-dahir mentioned this issue Jul 21, 2023
5 tasks
@irfan-dahir irfan-dahir added this to the 5.0.0 milestone Jul 21, 2023
@irfan-dahir irfan-dahir mentioned this issue Feb 1, 2024
6 tasks
@irfan-dahir
Copy link
Collaborator

Superseded by jikan-me/jikan-rest#535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request features that are requested or are in the roadmap
Projects
Status: Done
Development

No branches or pull requests

2 participants