v2ex/latest
v2exRead-only获取 V2EX 最新主题
www.v2ex.com
Last 7 days
0
Last 30 days
0
All time
0
v2ex/latest.js
/* @meta
{
"name": "v2ex/latest",
"description": "获取 V2EX 最新主题",
"domain": "www.v2ex.com",
"args": {},
"readOnly": true,
"example": "tap site v2ex/latest"
}
*/
async function(args) {
const resp = await fetch('https://www.v2ex.com/api/topics/latest.json');
if (!resp.ok) return {error: 'HTTP ' + resp.status};
const topics = await resp.json();
return {count: topics.length, topics: topics.map(t => ({
id: t.id, title: t.title, content: (t.content || '').substring(0, 300),
node: t.node?.title, nodeSlug: t.node?.name,
author: t.member?.username, replies: t.replies,
created: t.created, url: t.url
}))};
}
Updated Mar 31, 2026Created Mar 31, 2026SHA-256: fcdf898a6555…