AgentSkillsCN

api-research

利用对偶值从直流最优潮流(DC-OPF)解中提取节点电价(LMP)。当你需要计算节点电价、储备清算价格,或开展价格影响分析时,这一技能将为你提供有力支持。

SKILL.md
--- frontmatter
name: api-research
description: |
  Researches and validates live data APIs for a given topic. Finds free/public
  endpoints that work without authentication. Use when sourcing data APIs before
  building a paid agent.

API Research

Find and validate real, live data sources. No hardcoded data allowed.

Step 1: Search for APIs

bash
# Web search for APIs
web_search "<topic> free API"
web_search "<topic> public API documentation"
web_search "<topic> real-time data API"
web_search "<topic> JSON API no auth"

Step 2: Validate API Endpoints

Test each potential API:

bash
# Test endpoint directly
curl -s "<api_endpoint>" | head -c 500

# Check response
# ✅ Returns JSON with real data
# ✅ No authentication required (or has free tier)
# ✅ Response time < 5 seconds
# ❌ Returns error or empty
# ❌ Requires paid API key

Common Free Data Sources

Finance & Crypto

APIEndpointNotes
DeFiLlamahttps://api.llama.fi/v2/chainsTVL, yields, derivatives
CoinGeckohttps://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usdPrices, trending
Yahoo Financehttps://query1.finance.yahoo.com/v8/finance/chart/AAPLStocks (unofficial)
Exchange Rateshttps://api.exchangerate.host/latestCurrency rates

Weather & Environment

APIEndpointNotes
Open-Meteohttps://api.open-meteo.com/v1/forecast?latitude=52&longitude=13&current_weather=trueNo key needed
wttr.inhttps://wttr.in/London?format=j1Simple weather
NOAA Space Weatherhttps://services.swpc.noaa.gov/products/noaa-scales.jsonSpace weather

Geology & Space

APIEndpointNotes
USGS Earthquakeshttps://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.geojsonReal-time
NASA APODhttps://api.nasa.gov/planetary/apod?api_key=DEMO_KEYDemo key works
ISS Locationhttp://api.open-notify.org/iss-now.jsonReal-time position

General Purpose

APIEndpointNotes
IP Geolocationhttp://ip-api.com/json/IP info
Countrieshttps://restcountries.com/v3.1/allCountry data
Universitieshttp://universities.hipolabs.com/search?country=united+statesSchool data
Random Userhttps://randomuser.me/api/Test data
Quoteshttps://api.quotable.io/randomRandom quotes
Jokeshttps://v2.jokeapi.dev/joke/AnyRandom jokes
Bookshttps://openlibrary.org/search.json?q=lord+of+the+ringsBook data
Wikipediahttps://en.wikipedia.org/api/rest_v1/page/summary/Claude_(AI)Summaries
GitHubhttps://api.github.com/users/langoustine69User/repo data

Sports & Entertainment

APIEndpointNotes
ESPNhttps://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboardLive scores
OMDBhttps://www.omdbapi.com/?t=inception&apikey=<free_key>Movies (free key)

Step 3: Design Endpoints

Based on validated APIs, design 6 endpoints:

EndpointTypePriceData Source
overviewFree$0Quick summary for discovery
lookupPaid$0.001Single item by ID/name
searchPaid$0.002Filtered list query
topPaid$0.002Rankings/leaderboards
comparePaid$0.003Multi-item comparison
reportPaid$0.005Comprehensive analysis

Output

Provide:

  1. Validated API endpoints (tested, working)
  2. 6 endpoint designs with descriptions
  3. Data mapping (which API feeds which endpoint)

Red Flags

  • ❌ API requires paid key with no free tier
  • ❌ Rate limits too strict (< 100 req/day)
  • ❌ Data is stale (not updated regularly)
  • ❌ Endpoint returns HTML instead of JSON
  • ❌ Requires OAuth/complex auth flow

Next Step

→ Use lucid-agents-sdk skill to create the agent code