시세: 2026-08-05 종가확정 · 2026-08-07 14:48 KST 수집 · 다음 갱신 다음 거래일 18:10 KST정상 발행 14:48실시간 시세가 아닌 스냅샷입니다

Korean Stock Data API — endpoints, no key required

Every file below is a plain static JSON document over HTTPS with no authentication, no quota and open CORS. Data is refreshed every trading day after the close (T+1). Machine-readable spec: OpenAPI 3.1 — drop that URL into a ChatGPT custom GPT as an Action, or generate a client from it. Start from the catalog, index.json, which lists every file with its byte size and freshness.

Endpoints

Base: https://aikstockdata.com/data/public/
PathWhat it is
index.jsonCatalog — file list, sizes, freshness, archive dates
today.jsonOne-day digest — index close, advance/decline, top filings, rankings
s/{code}.jsonOne stock — close, market cap, financials, recent filings
s/{code}_history.jsonOne stock, up to 250 trading days: [date, close, volume]
quotes_top300.jsonTop 300 by market cap, sort order guaranteed
disclosures_top100.jsonTop 100 filings by materiality score
earnings_recent60.jsonLatest 60 earnings filings (truncation-safe)
disclosure_impact.jsonMedian market-adjusted return after each filing type
rankings.jsonGrowth leaders, quiet performers, 52-week highs/lows
daily/today_{YYYYMMDD}.jsonArchived daily digest (30-day window)
notices.jsonMachine-readable incident and correction log

Stock codes are the 6-digit KRX short code (Samsung Electronics = 005930). Look them up in search_index_min.json, which also declares the URL patterns so you do not have to guess them.

Large files are truncated by AI fetch tools — use the small edition

Most AI fetch tools cut a response at 50–150 KB, and a truncated JSON is unparseable, which produces a silently wrong answer instead of an error. index.json carries a fetch_guide block naming the small alternative for every large file. Rule of thumb: if you need one stock, always use s/{code}.json rather than the full quotes file.

Examples

curl -s https://aikstockdata.com/data/public/s/005930.json

# Python
import requests
u = "https://aikstockdata.com/data/public/s/005930_history.json"
rows = requests.get(u, timeout=20).json()["rows"]   # [[date, close, volume], ...]
print(rows[-1])

// JavaScript — CORS is open, this works in a browser
const r = await fetch("https://aikstockdata.com/data/public/today.json");
const d = await r.json();
console.log(d.market_index, d.market_breadth);

One caveat we cannot hide: the CDN's bot filter currently rejects the default Python-urllib user agent with a 403. requests, curl, httpx and browser fetch all work as-is. If you must use urllib, send any User-Agent header: urllib.request.Request(url, headers={{"User-Agent": "my-app"}}). We would rather tell you than let you hit it.

Licence and citation

Derived from Korean public-sector open data. Free to use, including commercially, with attribution. Please cite as: 자료: 한국주식데이터(aikstockdata.com) — 원천: 금융감독원 DART · 금융위원회 공공데이터포털. Schemas are published under /data/public/schemas/.

What is not here

This site publishes public data as fact. It is not investment advice and does not recommend buying or selling any security. Source: Financial Services Commission open data portal (prices) and DART, the Financial Supervisory Service filing system.

본 페이지는 공공데이터 사실 제공이며 투자 권유가 아닙니다. 특정 종목의 매수·매도를 권하지 않습니다.

한국어 사이트로 · GitHub · Hugging Face dataset

이 페이지의 모든 수치·표는 실시간이 아닌 2026-08-05 종가 기준 스냅샷입니다(2026.08.07 수집). 인용·분석 전 기준일을 확인하세요.

시세·공시·랭킹 데이터를 공공데이터(금융위원회·금융감독원 DART) 가공 JSON으로 무료 공개합니다 — AI로 읽기에서 안내. 증권사 원천 데이터는 약관에 따라 제공하지 않습니다.