Recently, while watching anime on Bilibili, I found an API that can get the latest updated anime series out of boredom by opening the console. I think it's too troublesome to click into Bilibili's new anime schedule [DarkBText]I'm too lazy[/DarkBText], so I made a page that can directly get the latest updated anime series for future viewing.
First, visit this API, and you can see a lot of things returned.

Returned things
Put the returned things into a JSON parser to clearly see the content returned, and after knowing this information, you can start writing with PHP.
First, use the file_get_contents() function to read all the data from this API into $get, and then use the json_decode() function to encode the JSON format string in $get, storing the result in $data.
Next, we know that this API can get the content of the latest 13 days of anime series. From the API's returned data, we can know that date is a content of result, which means the API's result part will have 13, so we can set the array length of result[] to 13, and use a for loop to get the result[] content of each day.
Use the date('n') function to get the current month and date('j') to get the current date and store it in $nowtime; use $data[result][$d][date] to get the update date of the anime series and store it in $pub_time. Then judge the size of the date.
Why not use date('m') and date('d')? It's because the month output of $pub_time is not padded with 0, and the month output of date('n') is also not padded with 0, both formats are unified. As for date('j'), it's not clear whether the date output of $pub_time is padded with 0, so it is temporarily assumed not to be padded with 0.
Then we need to process the parts where the update time is greater than or equal to the current time, which is the anime series list we want to output. Again, from the API, seasons[] is the data we want to get. We first use count($data[result][$d][seasons]) to get how many seasons are in result[]; and use a for loop to get the data of each seasons[], and then get some important data, you can get the total program:
With a bit of CSS beautification, you get a good-looking new anime schedule.