🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
News
AnimeNewsNetwork
Fetch News Info

Fetch News Feeds

Technical details regarding the usage of the fetch news info function for the ANN provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.

Route Schema (URL)

https://api.consumet.org/news/ann/info

Query Parameters

ParameterTypeDescriptionRequired?Default
idstringThis is the ID of the news story that will be returned in the function.YesN/A

Request Samples

import axios from "axios";
 
// An example news story about the Kindaichi Case Files ending.
const url = "https://api.consumet.org/news/ann/info?id=2023-04-26/kibo-no-chikara-~otona-precure-23~-anime-teaser-narrated-by-nozomi-yuko-sanpei/.197525";
const data = async () => {
    try {
        const { data } = await axios.get(url);
        return data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

Response Schema

MIME Type: application/json

[
  {
    id: "string",
    title: "string",
    uploadedAt: "string",
    intro: "string",
    description: "string",
    thumbnail: "string",
    url: "string"
  }
]