这是我第一次进行网页抓取,所有这些数据 API 来自 https://otakudesu.bid/
git clone https://github.com/RizkyFauziIlmi/otakudesu-anime-api.git
yarn
或npm install
) npm install
npm run dev or npm run start
API路径= https://otakudesu-anime-api.vercel.app
API版本 = v1.0
[页码] = 1-3(可能会根据数据库而变化)
/api/v1/ongoing/[page]
示例:https://otakudesu-anime-api.vercel.app/api/v1/ongoing/1
[页] = 1-46(可能会根据数据库而变化)
/api/v1/completed/[page]
示例:https://otakudesu-anime-api.vercel.app/api/v1/completed/1
[q] = 任意字符串
/api/v1/search/[q]
示例:https://otakudesu-anime-api.vercel.app/api/v1/search/black%20clover
/api/v1/anime-list
示例:https://otakudesu-anime-api.vercel.app/api/v1/anime-list
[端点]:字符串
/api/v1/detail/[endpoint]
示例:https://otakudesu-anime-api.vercel.app/api/v1/detail/chaisaw-sub-indo
[端点]:字符串
/api/v1/batch/[endpoint]
示例:https://otakudesu-anime-api.vercel.app/api/v1/batch/hakumao-s2-batch-sub-indo/
/api/v1/genres
示例:https://otakudesu-anime-api.vercel.app/api/v1/genres
[流派]:字符串[页]:1 - ...(取决于流派)
/api/v1/genres/[genre]/[page]
示例:https://otakudesu-anime-api.vercel.app/api/v1/genres/action/1