data-query
9
总安装量
2
周安装量
#33139
全站排名
安装命令
npx skills add https://github.com/vikiboss/60s-skills --skill data-query
Agent 安装分布
claude-code
2
amp
1
openclaw
1
qoder
1
cursor
1
Skill 文档
Data Query Skill
Query various data and information including exchange rates, calendar, history, encyclopedia, and prices.
Available Queries
- Exchange Rates – Currency conversion rates
- Lunar Calendar – Chinese lunar calendar conversion
- Today in History – Historical events
- Encyclopedia (Baike) – Search Chinese encyclopedia
- Fuel Prices – Gasoline/diesel prices in China
- Gold Prices – Current gold prices
- Chemical Elements – Element information
API Endpoints
| Query Type | Endpoint | Method |
|---|---|---|
| Exchange Rate | /v2/exchange-rate |
GET |
| Lunar Calendar | /v2/lunar |
GET |
| History | /v2/today-in-history |
GET |
| Encyclopedia | /v2/baike |
GET |
| Fuel Price | /v2/fuel-price |
GET |
| Gold Price | /v2/gold-price |
GET |
| Chemical | /v2/chemical |
GET |
Quick Examples
Exchange Rates
import requests
# Get exchange rate
params = {'from': 'USD', 'to': 'CNY'}
response = requests.get('https://60s.viki.moe/v2/exchange-rate', params=params)
rate = response.json()
print(f"ð± 1 {rate['from']} = {rate['rate']} {rate['to']}")
print(f"æ´æ°æ¶é´ï¼{rate['update_time']}")
Lunar Calendar
# Get today's lunar date
response = requests.get('https://60s.viki.moe/v2/lunar')
lunar = response.json()
print(f"ð
å
¬åï¼{lunar['solar_date']}")
print(f"ð® ååï¼{lunar['lunar_date']}")
print(f"ð² çèï¼{lunar['zodiac']}")
print(f"ð¾ èæ°ï¼{lunar['solar_term']}")
# Specific date
params = {'date': '2024-01-15'}
response = requests.get('https://60s.viki.moe/v2/lunar', params=params)
Today in History
# Get today's historical events
response = requests.get('https://60s.viki.moe/v2/today-in-history')
history = response.json()
print(f"ð åå²ä¸çä»å¤© ({history['date']})")
for event in history['events'][:5]:
print(f"{event['year']}å¹´ï¼{event['title']}")
# Specific date
params = {'month': 1, 'day': 15}
response = requests.get('https://60s.viki.moe/v2/today-in-history', params=params)
Encyclopedia Search
# Search encyclopedia
params = {'keyword': 'Pythonç¼ç¨'}
response = requests.get('https://60s.viki.moe/v2/baike', params=params)
result = response.json()
print(f"ð {result['title']}")
print(f"ð {result['summary']}")
print(f"ð {result['url']}")
Fuel Prices
# Get fuel prices
params = {'province': 'å京'}
response = requests.get('https://60s.viki.moe/v2/fuel-price', params=params)
prices = response.json()
print(f"⽠{prices['province']} 油价")
print(f"92å·æ±½æ²¹ï¼{prices['92å·æ±½æ²¹']} å
/å")
print(f"95å·æ±½æ²¹ï¼{prices['95å·æ±½æ²¹']} å
/å")
print(f"98å·æ±½æ²¹ï¼{prices['98å·æ±½æ²¹']} å
/å")
print(f"0å·æ´æ²¹ï¼{prices['0å·æ´æ²¹']} å
/å")
Gold Prices
# Get current gold prices
response = requests.get('https://60s.viki.moe/v2/gold-price')
gold = response.json()
print(f"ð° é»éä»·æ ¼")
print(f"å½é
éä»·ï¼{gold['å½é
éä»·']} ç¾å
/çå¸")
print(f"å½å
éä»·ï¼{gold['å½å
éä»·']} å
/å
")
print(f"æ´æ°æ¶é´ï¼{gold['update_time']}")
Chemical Elements
# Search chemical element
params = {'query': 'H'} # Can be symbol, name, or atomic number
response = requests.get('https://60s.viki.moe/v2/chemical', params=params)
element = response.json()
print(f"âï¸ {element['name']} ({element['symbol']})")
print(f"åååºæ°ï¼{element['atomic_number']}")
print(f"ååéï¼{element['atomic_mass']}")
print(f"å
ç´ ç±»å«ï¼{element['category']}")
Use Cases
Currency Converter Bot
def convert_currency(amount, from_currency, to_currency):
params = {'from': from_currency, 'to': to_currency}
response = requests.get('https://60s.viki.moe/v2/exchange-rate', params=params)
rate = response.json()
converted = amount * float(rate['rate'])
return f"{amount} {from_currency} = {converted:.2f} {to_currency}"
# Usage
print(convert_currency(100, 'USD', 'CNY')) # 100 USD = 725.50 CNY
Historical Event Reminder
def get_today_history():
response = requests.get('https://60s.viki.moe/v2/today-in-history')
history = response.json()
message = f"ð åå²ä¸çä»å¤© ({history['date']})\n\n"
for event in history['events'][:3]:
message += f"· {event['year']}å¹´ï¼{event['title']}\n"
return message
Lunar Calendar Widget
def get_lunar_info():
response = requests.get('https://60s.viki.moe/v2/lunar')
lunar = response.json()
return f"""
ð
仿¥æ¥å
å
¬åï¼{lunar['solar_date']} {lunar['weekday']}
ååï¼{lunar['lunar_date']}
çèï¼{lunar['zodiac']}
èæ°ï¼{lunar['solar_term'] or 'æ '}
"""
Example Interactions
User: “ç¾å å 人æ°å¸æ±çæ¯å¤å°ï¼”
params = {'from': 'USD', 'to': 'CNY'}
response = requests.get('https://60s.viki.moe/v2/exchange-rate', params=params)
rate = response.json()
print(f"ð± 1 ç¾å
= {rate['rate']} 人æ°å¸")
User: “ä»å¤©ååæ¯å æå å·ï¼”
lunar = requests.get('https://60s.viki.moe/v2/lunar').json()
print(f"ð® ä»å¤©æ¯åå {lunar['lunar_date']}")
print(f"ð² çèï¼{lunar['zodiac']}")
User: “æ¥è¯¢ä¸ä¸æ°¢å ç´ ç信比
params = {'query': 'æ°¢'}
element = requests.get('https://60s.viki.moe/v2/chemical', params=params).json()
print(f"âï¸ {element['name']} (H)")
print(f"åååºæ°ï¼{element['atomic_number']}")
print(f"å
ç´ ç±»å«ï¼{element['category']}")