AstroQ API
공개 천문 자료를 묻는 하나의 HTTP API 입니다. 키 없이도 쓸 수 있고(IP 당 하루 한도), 무료 키를 받으면 한도가 커집니다. 모든 답에 provenance(출처·릴리스·라이선스·조회 시각)가 붙습니다.
기본
- 주소:
https://astroq.ai3discovery.com/api/v1· OpenAPI: /openapi.json, /openapi.yaml - 인증(선택):
Authorization: Bearer aq_…— 키 받기 - 하루 한도: 익명 조회 300·무거운 계산 30 / 무료 키 조회 10,000·무거운 계산 1,000 (UTC 자정 초기화). 상태·3D 타일·하늘 사건은 세지 않습니다.
- 실패의 모양:
404 absent= 검색했지만 없음(무엇을 찾았는지 포함) ·503 unavailable= 층이 아직 없거나 상류 실패(이유 포함) ·400 bad_parameter·429 quota_exceeded(resets_at) - AI 에이전트: MCP
https://astroq.ai3discovery.com/mcp(Streamable HTTP) · /llms.txt
claude mcp add --transport http astroq https://astroq.ai3discovery.com/mcp curl -fsSL https://astroq.ai3discovery.com/install.sh | sh && astroq object TRAPPIST-1
GET/api/v1/health
세지 않음엣지 캐시 15s확인 중
Liveness, layer readiness and the boot gate result (no key needed)
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/health"
astroq raw GET /health
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/health", headers=H, params={})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/catalog
세지 않음엣지 캐시 300s확인 중
Datasets the engine answers from (rows, release, license, coverage, local|federated)
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/catalog"
astroq catalog
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/catalog", headers=H, params={})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/freshness
세지 않음엣지 캐시 300s확인 중
Data vintage per layer (upstream date, basis, age, stale?)
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/freshness"
astroq raw GET /freshness
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/freshness", headers=H, params={})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/resolve
조회 1회엣지 캐시 86400s확인 중
Name → ICRS position and identifiers (SIMBAD/Sesame, Gaia, TIC, …)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
name 필수 | string |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/resolve?name=Vega"
astroq resolve Vega
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/resolve", headers=H, params={"name": "Vega"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/object
조회 1회엣지 캐시 3600s확인 중
One object's unified record — cross-identifications, photometry, parallax, proper motion, variability, light curves available, literature count
The flagship route. Resolves `id` (any name or identifier SIMBAD/Gaia/TIC knows, or "ra,dec"), then asks every catalog it holds or can federate. Each section reports its own status (`ok` | `absent` | `unavailable`), so a partial failure is visible, never silent.
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
id 필수 | string | ||
radius_arcsec | number | 3 ≤ 60 | match radius for positional cross-identification |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/object?id=TRAPPIST-1"
astroq object TRAPPIST-1
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/object", headers=H, params={"id": "TRAPPIST-1"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/cone
조회 1회엣지 캐시 3600s확인 중
Cone search on one catalog (local HEALPix index, else federated TAP)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
ra 필수 | number | ≤ 360 | deg ICRS |
dec 필수 | number | ≤ 90 | deg ICRS |
radius 필수 | number | ≤ 5 | deg (max 5; larger areas → POST /query) |
catalog | string | gaia_dr3 | layer id from /catalog (gaia_dr3, hipparcos, tycho2, twomass, allwise, tic, simbad, vsx, …) |
limit | integer | 500 ≤ 10000 | |
columns | string | comma-separated column names (default: a compact set) |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/cone?ra=83.63308&dec=22.0145&radius=0.05&limit=20"
astroq cone 83.63308 22.01450 0.05 --limit 20
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/cone", headers=H, params={"ra": 83.63308, "dec": 22.0145, "radius": 0.05, "limit": 20})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
POST/api/v1/xmatch
무거운 계산 1회확인 중
Cross-match a list of positions against one catalog
| 본문 필드 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
positions 필수 | array | ≤ 5000개 | |
catalog | string | "gaia_dr3" | |
radius_arcsec | number | 2 ≤ 60 | |
best_only | boolean | true |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"positions":[{"id":"crab","ra":83.63308,"dec":22.0145},{"id":"vega","ra":279.23473,"dec":38.78369}],"catalog":"gaia_dr3","radius_arcsec":2}' \
https://astroq.ai3discovery.com/api/v1/xmatch
astroq raw POST /xmatch --data @positions.json
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.post("https://astroq.ai3discovery.com/api/v1/xmatch", headers=H, timeout=180,
json={"positions":[{"id":"crab","ra":83.63308,"dec":22.0145},{"id":"vega","ra":279.23473,"dec":38.78369}],"catalog":"gaia_dr3","radius_arcsec":2})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
POST/api/v1/query
무거운 계산 1회확인 중
Read-only SQL over local layers (ADQL subset → DuckDB); row and time caps
`SELECT` only; one statement; tables are layer ids from /catalog (e.g. `exoplanets`, `hipparcos`, `gaia_dr3`). ADQL helpers accepted: `TOP n`, `CONTAINS(POINT(ra,dec), CIRCLE(ra0,dec0,r))`, `DISTANCE(POINT(...), POINT(...))`. Answers "how many objects satisfy X" with `count(*)`.
| 본문 필드 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
sql 필수 | string | ||
max_rows | integer | 1000 ≤ 100000 | |
timeout_s | number | 20 ≤ 120 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sql":"SELECT pl_name, pl_orbper, pl_rade FROM exoplanets WHERE hostname = 'TRAPPIST-1' ORDER BY pl_orbper","max_rows":100}' \
https://astroq.ai3discovery.com/api/v1/query
astroq query "SELECT pl_name, pl_orbper FROM exoplanets WHERE hostname = 'TRAPPIST-1'"
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.post("https://astroq.ai3discovery.com/api/v1/query", headers=H, timeout=180,
json={"sql":"SELECT pl_name, pl_orbper, pl_rade FROM exoplanets WHERE hostname = 'TRAPPIST-1' ORDER BY pl_orbper","max_rows":100})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/cutout
조회 1회엣지 캐시 86400s확인 중
Image cutout (CDS hips2fits, federated)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
ra 필수 | number | ||
dec 필수 | number | ||
survey | string | CDS/P/DSS2/color | HiPS id |
size | number | 0.25 ≤ 5 | field of view, deg |
pixels | integer | 512 ≤ 2048 | |
format | string jpg | png | fits | jpg |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/cutout?ra=83.63308&dec=22.0145&size=0.2&pixels=512" -o out.jpg
astroq cutout 83.63308 22.01450 --size 0.2 -o crab.jpg
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/cutout", headers=H, params={"ra": 83.63308, "dec": 22.0145, "size": 0.2, "pixels": 512})
open("cutout.jpg", "wb").write(r.content)
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/lightcurve
조회 1회엣지 캐시 3600s확인 중
Light curve (ZTF, TESS, Kepler/K2, Gaia epoch, ASAS-SN…; local first, else federated)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
id | string | name or identifier (TIC 123, Gaia DR3 …, ZTF oid); or give ra/dec | |
ra | number | ||
dec | number | ||
survey | string ztf | tess | kepler | k2 | gaia | asassn | ztf | |
radius_arcsec | number | 2 ≤ 10 | |
band | string |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/lightcurve?id=RR%20Lyr&survey=ztf"
astroq lightcurve "RR Lyr" --survey ztf
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/lightcurve", headers=H, params={"id": "RR Lyr", "survey": "ztf"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/spectrum
조회 1회엣지 캐시 86400s확인 중
Spectrum (SDSS, DESI, LAMOST, Gaia XP)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
id | string | ||
ra | number | ||
dec | number | ||
survey | string sdss | desi | lamost | gaia_xp | sdss | |
radius_arcsec | number | 2 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/spectrum?id=Betelgeuse&survey=gaia_xp"
astroq spectrum Betelgeuse --survey gaia_xp
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/spectrum", headers=H, params={"id": "Betelgeuse", "survey": "gaia_xp"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
POST/api/v1/periodogram
무거운 계산 1회확인 중
Lomb-Scargle or BLS periodogram with false-alarm probability (server-side, astropy)
| 본문 필드 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
method | string lomb_scargle | bls | "lomb_scargle" | |
t | array | ≤ 200000개 | MJD (days) |
y | array | ||
dy | array | ||
id | string | alternative to t/y: fetch /lightcurve first | |
survey | string | ||
band | string | ||
min_period | number | days | |
max_period | number | days | |
samples_per_peak | integer | 10 | |
durations | array | BLS durations (days) | |
n_peaks | integer | 5 ≤ 50 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"RR Lyr","survey":"ztf","band":"g","method":"lomb_scargle","min_period":0.1,"max_period":2}' \
https://astroq.ai3discovery.com/api/v1/periodogram
astroq periodogram "RR Lyr" --survey ztf --band g --max-period 2
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.post("https://astroq.ai3discovery.com/api/v1/periodogram", headers=H, timeout=180,
json={"id":"RR Lyr","survey":"ztf","band":"g","method":"lomb_scargle","min_period":0.1,"max_period":2})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/jobs/{id}
세지 않음확인 중
Result of a long computation started with 202
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/jobs/job_0123abcd"
astroq raw GET /jobs/job_0123abcd
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/jobs/job_0123abcd", headers=H, params={})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/exoplanets
조회 1회엣지 캐시 3600s확인 중
Confirmed exoplanets (NASA Exoplanet Archive PSCompPars) — filter & page
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
host | string | ||
discoverymethod | string | ||
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/exoplanets?host=TRAPPIST-1"
astroq list exoplanets --q TRAPPIST-1
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/exoplanets", headers=H, params={"host": "TRAPPIST-1"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/transients
조회 1회엣지 캐시 300s확인 중
Transients (TNS public objects; ALeRCE/Fink classifications)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
type | string | ||
since_mjd | number | ||
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/transients?limit=20"
astroq list transients --limit 20
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/transients", headers=H, params={"limit": 20})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/frb
조회 1회엣지 캐시 3600s확인 중
Fast radio bursts (CHIME/FRB catalog, TNS FRB)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
repeater | boolean | ||
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/frb?q=FRB%2020121102A"
astroq list frb --q "FRB 20121102A"
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/frb", headers=H, params={"q": "FRB 20121102A"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/pulsars
조회 1회엣지 캐시 86400s확인 중
Pulsars (ATNF Pulsar Catalogue)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/pulsars?q=Crab"
astroq list pulsars --q Crab
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/pulsars", headers=H, params={"q": "Crab"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/gw
조회 1회엣지 캐시 3600s확인 중
Gravitational-wave events (GWOSC event catalog, GWTC)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/gw?q=GW170817"
astroq list gw --q GW170817
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/gw", headers=H, params={"q": "GW170817"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/grb
조회 1회엣지 캐시 900s확인 중
Gamma-ray bursts (Fermi GBM burst catalog, Swift)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/grb?limit=20"
astroq list grb --limit 20
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/grb", headers=H, params={"limit": 20})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/smallbodies
조회 1회엣지 캐시 3600s확인 중
Small bodies (JPL SBDB; MPCORB when local)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/smallbodies?q=Apophis"
astroq list smallbodies --q Apophis
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/smallbodies", headers=H, params={"q": "Apophis"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/variables
조회 1회엣지 캐시 3600s확인 중
Variable stars (AAVSO VSX; Gaia DR3 vari_classifier_result)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q | string | name / identifier / free text filter | |
type | string | ||
limit | integer | 50 ≤ 1000 | |
offset | integer | 0 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/variables?q=RR%20Lyr"
astroq list variables --q "RR Lyr"
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/variables", headers=H, params={"q": "RR Lyr"})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/literature/search
조회 1회엣지 캐시 3600s확인 중
astro-ph literature search (arXiv metadata; keyword now, embeddings when built)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
q 필수 | string | ||
limit | integer | 50 ≤ 1000 | |
mode | string auto | keyword | semantic | auto |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/literature/search?q=kilonova%20GW170817&limit=5"
astroq literature "kilonova GW170817" --limit 5
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/literature/search", headers=H, params={"q": "kilonova GW170817", "limit": 5})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
POST/api/v1/controls/sample
무거운 계산 1회확인 중
Matched random control sample (same magnitude/colour/galactic-latitude distribution) — reproducible with seed
For Parallax null distributions. Give the target set (positions or ids) or explicit bins; the engine draws, from the chosen catalog, objects matching the targets' joint distribution in the chosen covariates (histogram matching on bins), excluding the targets themselves. Same `seed` + same catalog release ⇒ same sample (the release is in provenance).
| 본문 필드 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
catalog | string | "gaia_dr3" | |
targets | array | ≤ 5000개 | |
match_on | array | ["g_mag","bp_rp","abs_b"] | |
n_per_target | integer | 10 ≤ 100 | |
seed 필수 | integer | ||
exclude_radius_arcsec | number | 5 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"targets":[{"ra":83.63308,"dec":22.0145,"g_mag":16.5,"bp_rp":1.1}],"n_per_target":10,"seed":42}' \
https://astroq.ai3discovery.com/api/v1/controls/sample
astroq raw POST /controls/sample --data @targets.json
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.post("https://astroq.ai3discovery.com/api/v1/controls/sample", headers=H, timeout=180,
json={"targets":[{"ra":83.63308,"dec":22.0145,"g_mag":16.5,"bp_rp":1.1}],"n_per_target":10,"seed":42})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/known
조회 1회엣지 캐시 600s확인 중
"Is this already known?" — SIMBAD, VSX, TNS, NED, Gaia variability, exoplanet lists at once; per-upstream status
Each upstream reports `answered` (with hits, possibly zero) or `failed` (with reason). Overall `status` is `complete` when every upstream answered, `partial` when some failed. A failed upstream is never reported as "no match".
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
ra 필수 | number | ||
dec 필수 | number | ||
radius | number | 0.00278 ≤ 0.1 | deg (default 10 arcsec) |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/known?ra=197.4504&dec=-23.3814&radius=0.003"
astroq known 197.4504 -23.3814 --radius 10arcsec
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/known", headers=H, params={"ra": 197.4504, "dec": -23.3814, "radius": 0.003})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/sky/events
세지 않음엣지 캐시 15s확인 중
Sentinel events (alerts, circulars, transients) — newest first
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
since_mjd | number | ||
kind | string | ||
limit | integer | 50 ≤ 1000 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/sky/events?limit=20"
astroq events --limit 20
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/sky/events", headers=H, params={"limit": 20})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/sky/anomalies
세지 않음엣지 캐시 30s확인 중
Sentinel anomaly candidates (scored), newest first
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
min_score | number | ||
limit | integer | 50 ≤ 1000 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/sky/anomalies?limit=10"
astroq anomalies --limit 10
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/sky/anomalies", headers=H, params={"limit": 10})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/sky/stream
세지 않음확인 중
Server-sent events stream of new Sentinel events (text/event-stream)
curl -N -H "Authorization: Bearer $ASTROQ_API_KEY" https://astroq.ai3discovery.com/api/v1/sky/stream
astroq watch
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
with requests.get("https://astroq.ai3discovery.com/api/v1/sky/stream", headers=H, stream=True) as r:
for line in r.iter_lines(decode_unicode=True):
if line.startswith("data:"):
print(line[5:])
GET/api/v1/viz/stars
세지 않음엣지 캐시 86400s확인 중
Near/bright stars as a binary tile for the 3D view (Float32 little-endian)
Body = header JSON length (uint32 LE) + header JSON + N records of 6 float32: x, y, z (pc, ICRS-aligned heliocentric), bp_rp (mag), g_abs (mag), g_mag (mag). The header carries `n`, `fields`, `units`, `selection`, `provenance`.
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
max_dist_pc | number | 200 ≤ 5000 | |
max_g | number | 12 | |
limit | integer | 500000 ≤ 3000000 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/viz/stars?max_dist_pc=100&limit=1000" -o out.bin
astroq raw GET "/viz/stars?max_dist_pc=100&limit=1000" > stars.bin
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
import json, struct
import numpy as np
b = requests.get("https://astroq.ai3discovery.com/api/v1/viz/stars", headers=H, params={"max_dist_pc": 100, "limit": 1000}).content
n = struct.unpack("<I", b[:4])[0]
header = json.loads(b[4:4 + n])
data = np.frombuffer(b[4 + n:], "<f4").reshape(-1, len(header["fields"]))
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/viz/density
세지 않음엣지 캐시 86400s확인 중
HEALPix star-count map (nested ordering) as Float32 binary or JSON
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
order | integer | 6 ≤ 8 | |
format | string bin | json | bin |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/viz/density?order=5" -o out.bin
astroq raw GET "/viz/density?order=5" > density.bin
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
import json, struct
import numpy as np
b = requests.get("https://astroq.ai3discovery.com/api/v1/viz/density", headers=H, params={"order": 5}).content
n = struct.unpack("<I", b[:4])[0]
header = json.loads(b[4:4 + n])
data = np.frombuffer(b[4 + n:], "<f4").reshape(-1, len(header["fields"]))
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).
GET/api/v1/viz/events
세지 않음엣지 캐시 30s확인 중
Recent sky events with positions for the 3D view (JSON)
| 매개변수 | 형식 | 기본·한도 | 설명 |
|---|---|---|---|
limit | integer | 50 ≤ 1000 |
curl -s -H "Authorization: Bearer $ASTROQ_API_KEY" "https://astroq.ai3discovery.com/api/v1/viz/events?limit=100"
astroq raw GET "/viz/events?limit=100"
import os, requests
H = {"Authorization": f"Bearer {os.environ['ASTROQ_API_KEY']}"} # optional
r = requests.get("https://astroq.ai3discovery.com/api/v1/viz/events", headers=H, params={"limit": 100})
print(r.status_code, r.json())
누르면 이 예시를 게이트웨이로 보냅니다 (익명 한도에서 차감).