@echoscan/echoscan
v0.1.9
Published
EchoScan package for Node.js
Downloads
422
Readme
@echoscan/echoscan (Node)
中文 | English
中文
安装
npm install @echoscan/echoscan可用调用方式
import { createLiteClient, createProClient } from '@echoscan/echoscan';Lite(匿名):
const lite = createLiteClient();
const report = await lite.getReport(imprint);Pro(需要 apiKey):
const pro = createProClient({ apiKey: process.env.ECHOSCAN_PRO_KEY });
const report = await pro.getReport(imprint);
const history = await pro.getHistory(imprint, { days: 7 });History 查询模式
仅 Pro 客户端可用(需要 Pro API Key)。
await pro.getHistory(imprint, { days: 7 });
await pro.getHistory(imprint, { from: '2026-03-01', to: '2026-03-18' });
await pro.getHistory(imprint, { from: '2026-03-01', to: '2026-03-18', recent: 20 });规则:
days与from/to互斥from和to必须成对出现- 日期格式必须是
YYYY-MM-DD
返回值与错误
getReport() 顶层结构:
{
"analysis": {},
"lyingCount": 0,
"projection": {}
}getHistory() 顶层结构:
{
"imprint": "fp_session_...",
"range": {},
"recent": [],
"summary": {},
"timeline": []
}完整字段说明链接:echoscan
English
Install
npm install @echoscan/echoscanUsage
import { createLiteClient, createProClient } from '@echoscan/echoscan';Lite (anonymous):
const lite = createLiteClient();
const report = await lite.getReport(imprint);Pro (apiKey required):
const pro = createProClient({ apiKey: process.env.ECHOSCAN_PRO_KEY });
const report = await pro.getReport(imprint);
const history = await pro.getHistory(imprint, { days: 7 });History query modes
Pro-only (requires a Pro API key).
await pro.getHistory(imprint, { days: 7 });
await pro.getHistory(imprint, { from: '2026-03-01', to: '2026-03-18' });
await pro.getHistory(imprint, { from: '2026-03-01', to: '2026-03-18', recent: 20 });Rules:
daysandfrom/toare mutually exclusivefromandtomust be provided together- date format must be
YYYY-MM-DD
Response and errors
getReport() top-level shape:
{
"analysis": {},
"lyingCount": 0,
"projection": {}
}getHistory() top-level shape:
{
"imprint": "fp_session_...",
"range": {},
"recent": [],
"summary": {},
"timeline": []
}Full field reference: echoscan
