🐚 curl
사이트 메타·통계
curl -s "https://taxwise.guru/api/v1/info" | jq
종합소득세 즉시 계산 — 과세표준 5천만
curl -s "https://taxwise.guru/api/v1/calc/income-tax?base=50000000" | jq
# 응답 (요약):
# {
# "input": {"base": 50000000},
# "bracket": "구간 2 (50,000,000 이하)",
# "rate": 0.15,
# "deduction": 1260000,
# "tax": 6240000,
# "local_tax": 624000,
# "total": 6864000
# }
부가세 일반과세 — 공급가액 1천만
curl -s "https://taxwise.guru/api/v1/calc/vat?supply=10000000&type=general" | jq
용어 검색 — q="양도"
curl -s "https://taxwise.guru/api/v1/glossary?q=%EC%96%91%EB%8F%84" | jq '.items[] | {term, definition}'
2026 세무 마감일 전체
curl -s "https://taxwise.guru/api/v1/deadlines" | jq '.events[] | {date, name, who}'
서식 목록 — 부가세 카테고리
curl -s "https://taxwise.guru/api/v1/forms?cat=vat" | jq
🐍 Python (requests)
기본 호출
import requests
BASE = "https://taxwise.guru"
# 종소세 계산
r = requests.get(f"{BASE}/api/v1/calc/income-tax", params={"base": 50_000_000})
data = r.json()
print(f"세액: {data['tax']:,}원 (구간: {data['bracket']})")
# 세액: 6,240,000원 (구간: 구간 2 (50,000,000 이하))
여러 과세표준 일괄 시뮬
import requests
import pandas as pd
BASE = "https://taxwise.guru"
amounts = [30_000_000, 50_000_000, 100_000_000, 200_000_000, 500_000_000]
rows = []
for a in amounts:
r = requests.get(f"{BASE}/api/v1/calc/income-tax", params={"base": a}).json()
rows.append({
"과세표준": a,
"구간": r["bracket"],
"세율": r["rate"],
"세액": r["tax"],
"지방세 포함": r["total"],
})
df = pd.DataFrame(rows)
print(df.to_string(index=False))
용어 사전 → CSV
import requests, csv
data = requests.get("https://taxwise.guru/api/v1/glossary").json()
with open("taxwise_glossary.csv", "w", encoding="utf-8-sig", newline="") as f:
w = csv.DictWriter(f, fieldnames=["term", "definition", "related", "anchor"])
w.writeheader()
w.writerows(data["items"])
print(f"{data['count']}개 용어 저장됨")
🌐 JavaScript (fetch)
브라우저에서 직접 호출 (CORS 허용)
// CORS 허용 — Access-Control-Allow-Origin: *
const BASE = "https://taxwise.guru";
async function calcIncomeTax(base) {
const url = `${BASE}/api/v1/calc/income-tax?base=${base}`;
const res = await fetch(url);
return res.json();
}
calcIncomeTax(50_000_000).then(data => {
console.log(`세액: ${data.tax.toLocaleString()}원`);
console.log(`구간: ${data.bracket}`);
});
자동완성 통합 — 검색 input
// /api/search/suggest 사용 (rich JSON)
async function suggest(q) {
if (!q) return [];
const res = await fetch(`/api/search/suggest?q=${encodeURIComponent(q)}`);
const data = await res.json();
return data.items; // [{title, desc, url, type, icon, score}]
}
// 입력 이벤트에 연결
input.addEventListener('input', async (e) => {
const items = await suggest(e.target.value);
renderSuggestions(items);
});
📡 RSS · Atom · JSON Feed · iCal 구독
| 엔드포인트 | 형식 | 사용처 |
|---|---|---|
| /news.rss | RSS 2.0 | Feedly·NetNewsWire·Inoreader |
| /news.atom | Atom 1.0 | 모든 모던 RSS reader |
| /news.json | JSON Feed 1.1 | Reeder·NetNewsWire·NewsBlur |
| /tax-deadlines.rss | RSS 2.0 | 세무 마감일 알림 |
| /tax-deadlines.atom | Atom 1.0 | 세무 마감일 (Atom) |
| /tax-deadlines.json | JSON Feed 1.1 | 세무 마감일 (JSON) |
| /tax-deadlines.ics | iCalendar (RFC 5545) | Google·Apple·Outlook 캘린더 |
| /lessons.rss | RSS 2.0 | 학습 코스 업데이트 |
Google 캘린더 추가 (1-click)
# 브라우저에서 다음 주소 열기
https://www.google.com/calendar/render?cid=webcal://taxwise.guru/tax-deadlines.ics
# Apple 캘린더
webcal://taxwise.guru/tax-deadlines.ics
OpenSearch 자동완성 설치 (브라우저 검색바)
<link rel="search" type="application/opensearchdescription+xml"
title="TaxWise" href="https://taxwise.guru/opensearch.xml">
# 또는 직접 호출
curl -s "https://taxwise.guru/api/suggest?q=양도" | jq
# 응답: [query, [terms], [descs], [urls]]
🧩 외부 사이트 임베드 (script tag)
한 줄로 외부 사이트에 계산기 위젯 삽입
<script src="https://taxwise.guru/embed.js" data-calc="income-tax"></script>
<!-- 또는 div + 비동기 로드 -->
<div data-taxwise data-calc="capital-gains" data-height="700"></div>
<script src="https://taxwise.guru/embed.js" async></script>
옵션: data-calc (필수, 계산기 slug) · data-height (기본 600) · data-width (기본 100%) · data-theme (light/dark)
iframe 높이는 postMessage로 자동 조정. CC BY 4.0 — 출처 표시(자동 attribution) 필수.
🤖 AI / LLM 크롤러
AI 크롤러 정책
# /llms.txt — AI 친화적 메타
curl -s https://taxwise.guru/llms.txt
# robots.txt — GPTBot, ClaudeBot, Google-Extended, PerplexityBot 등
curl -s https://taxwise.guru/robots.txt
TaxWise는 AI 학습·검색에 콘텐츠 사용을 허용합니다 (CC BY 4.0). 다만 출처 표시 필수.
⚖️ 라이선스 · 사용 안내
- • 인증 없음: API 키 불필요
- • CORS 허용:
Access-Control-Allow-Origin: * - • 캐시:
Cache-Control: public, max-age=600(10분) - • 라이선스: 본문 콘텐츠 CC BY 4.0 — 출처 표시 시 자유롭게 사용
- • 레이트 리밋: 현재 제한 없음 (필요 시 부담스럽지 않게 사용)
- • SLA: 무보증 (best-effort, no warranty)
- • 버그 리포트: editor@taxwise.guru