![](/img/trans.png)
[英]New to node.js here. How do I properly get the JSON from the top of a subreddit?
[英]How can I get subreddit comments from a post in js?
如何從帖子中獲得 subreddit 評論? reddit api 說我應該申請 [/r/subreddit]/評論/文章
我試過了
https://reddit.com/r/science/comments/qdfs2x/new_research_suggests_that_conservative_media_is/
您可以只顯示一個示例網址來獲取對帖子的評論嗎?
除了域之外,您的大部分 URL 都是正確的。 Reddit 的 API 端點位於api.reddit.com
。 因此,您需要向以下對象發出 GET 請求:
https://api.reddit.com/r/science/comments/qdfs2x/new_research_suggests_that_conservative_media_is
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.