Token导航 LogoToken导航TokenDH.com
开发规范敏感数据github未标认证来源可访问许可证需确认审计提醒

perigon-api-best-practicesperigon API 最佳实践

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

269

周安装

11

GitHub Stars

2

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:perigon-api-best-practices(perigon API 最佳实践)
来源仓库:https://github.com/goperigon/skills
仓库路径:skills/perigon-api-best-practices
安装命令:
npx skills add https://github.com/goperigon/skills --skill perigon-api-best-practices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/goperigon/skills --skill perigon-api-best-practices

简介

遵循 Perigon 平台的 API 设计规范与集成标准。

  • 帮助开发者统一接口风格、错误码与分页机制。
  • 通过 GitHub 仓库安装,提供 OpenAPI 模板与示例代码。
  • 实际部署前应与后端服务对齐字段含义与状态流转。
  • perigon-api-best-practices 属于开发规范类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Perigon API Best Practices

Comprehensive guide for building with the Perigon News Intelligence API. Covers all endpoints, query patterns, and integration best practices.

When to Apply

Reference these guidelines when:

  • Searching or filtering news articles by keyword, topic, category, date, source, sentiment, or location
  • Tracking evolving news stories and clustered article groups
  • Generating AI-powered summaries of news coverage
  • Performing semantic/vector search over news articles or Wikipedia content
  • Querying the Wikipedia knowledge base for structured page data
  • Looking up people, companies, journalists, or media sources
  • Browsing available topics and categories
  • Building dashboards, alerts, or monitoring tools powered by news data
  • Integrating Perigon into any application or AI agent workflow

API Overview

Base URL: https://api.perigon.io

EndpointMethodPurpose
/v1/articles/allGETSearch and filter news articles with rich parameters
/v1/stories/allGETClustered news stories with summaries and metadata
/v1/stories/historyGETStory evolution history with changelogs and snapshots
/v1/summarizePOSTAI-powered summarization over matched articles
/v1/vector/news/allPOSTSemantic/vector search over news articles
/v1/wikipedia/allGETSearch and filter Wikipedia pages
/v1/vector/wikipedia/allPOSTSemantic/vector search over Wikipedia content
/v1/people/allGETPeople mentioned in the news (650k+ database)
/v1/companies/allGETCompany data with financial metadata
/v1/journalists/allGETJournalist profiles (230k+ database)
/v1/journalists/{id}GETSingle journalist by ID
/v1/sources/allGETMedia sources database (200k+ sources)
/v1/topics/allGETTopics taxonomy browser

Authentication

The API key can be passed in two ways:

  1. Query parameter: ?apiKey=YOUR_API_KEY
  2. Header: x-api-key: YOUR_API_KEY

Best practices:

  • Store the API key in an environment variable (e.g., PERIGON_API_KEY). Never hardcode it.
  • Prefer the header method (x-api-key) to keep keys out of URLs and logs.
  • Get your API key at perigon.io.

Endpoint Selection Guide

Choose the right endpoint based on the task:

Need individual articles? → /v1/articles/all
Need grouped stories with summaries? → /v1/stories/all
Need to track how a story evolves over time? → /v1/stories/history
Need an AI-generated summary of coverage? → /v1/summarize
Need semantic similarity search for news? → /v1/vector/news/all
Need Wikipedia knowledge? → /v1/wikipedia/all
Need semantic search over Wikipedia? → /v1/vector/wikipedia/all
Need person/company/journalist/source info? → /v1/people|companies|journalists|sources/all
Need to browse available topics? → /v1/topics/all

Core Query Patterns

Text Search (q parameter)

The q parameter searches across title, description, and content. It supports:

  • Boolean operators: AND, OR, NOT
  • Exact phrases: "climate change"
  • Wildcards: * (multiple chars), ? (single char)
  • Combining: "electric vehicles" AND (Tesla OR Rivian) NOT recalls

Date Filtering

  • from / to — Filter by publication date (ISO 8601 or yyyy-mm-dd)
  • addDateFrom / addDateTo — Filter by ingestion date
  • refreshDateFrom / refreshDateTo — Filter by last-updated date

Pagination

  • page — Page number (starts at 0)
  • size — Results per page
  • Set showNumResults=true to get total counts (slightly slower)

Sentiment Filtering

Filter by sentiment scores (0.0 to 1.0):

  • positiveSentimentFrom / positiveSentimentTo
  • negativeSentimentFrom / negativeSentimentTo
  • neutralSentimentFrom / neutralSentimentTo

Array Filters (OR logic)

Many filters accept arrays and combine with OR logic: category, topic, source, language, country, label, personName, companyDomain, companySymbol, journalistId, medium, sourceGroup

Exclude Filters (AND-exclude logic)

Prefix any array filter with exclude to remove matches: excludeCategory, excludeTopic, excludeSource, excludeLanguage, etc.

Vector Search (Semantic)

For natural language queries that don't map well to keyword search, use the vector endpoints:

News: POST /v1/vector/news/all — searches articles from the last 6 months by semantic similarity.

Wikipedia: POST /v1/vector/wikipedia/all — searches Wikipedia page sections by semantic similarity.

Both accept a prompt (natural language query), page, size, and a filter object for structured filtering with nested AND/OR/NOT logic.

How to Use References

Read individual reference files for detailed endpoint documentation:

references/authentication.md        — API key setup and security
references/articles-search.md       — /v1/articles/all deep dive
references/stories-clustering.md    — /v1/stories/all deep dive
references/stories-history.md       — /v1/stories/history deep dive
references/smart-summaries.md       — /v1/summarize deep dive
references/vector-search.md         — /v1/vector/news/all and /v1/vector/wikipedia/all
references/wikipedia-knowledge.md   — /v1/wikipedia/all deep dive
references/people-companies.md      — /v1/people/all and /v1/companies/all
references/journalists-sources.md   — /v1/journalists/all and /v1/sources/all
references/topics-categories.md     — /v1/topics/all and category taxonomy
references/pagination-filtering.md  — Common query patterns and pagination
references/error-handling.md        — HTTP status codes and retry logic
references/rate-limits.md           — Rate limit management

Each reference file contains:

  • Endpoint URL and HTTP method
  • All query/body parameters with types and descriptions
  • Example requests (curl) and response JSON
  • Common patterns and best practices
  • When to use this endpoint vs. alternatives

Best Practices Summary

  1. Start narrow, then broaden — Use specific filters first, then relax constraints if results are too few.
  2. Prefer from/to over addDateFrom/addDateTo for publication-date filtering unless you specifically need ingestion-date filtering.
  3. Use showReprints=false to deduplicate wire-service content (AP, Reuters) that appears on multiple sites.
  4. Use sourceGroup (e.g., top100, top25tech) for quality-filtered results.
  5. Combine endpoints — Use /v1/stories/all to find story clusters, then /v1/articles/all with clusterId for all articles in a story.
  6. Use vector search for intent-based queries — When the user's query is conversational or conceptual rather than keyword-based.
  7. Use Wikipedia endpoints for factual background — Combine with news search to enrich coverage with encyclopedic context.
  8. Handle pagination properly — Always check numResults and iterate pages when building comprehensive datasets.
  9. Cache strategically — News data changes frequently, but entity data (people, companies, sources) changes slowly.
  10. Respect rate limits — Implement exponential backoff on 429 responses.

External References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.51%
按下载量换算32

Claude

30.88%
按下载量换算27

Cursor

20.27%
按下载量换算18

Gemini CLI

9.56%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills