Page
공개 웹 페이지를 Markdown으로 읽고, 제목, 작성자, 날짜, 사이트 이름, 언어, 대표 이미지, schema.org JSON-LD를 함께 가져옵니다.
GET | POST /v1/reader/page파라미터는 GET의 쿼리 문자열로도, POST의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다. 쿼리 문자열로 보낼
때는 페이지 주소를 URL 인코딩하세요.
요청
curl -G "https://gateway.apinoa.com/v1/reader/page" \
--data-urlencode "url=https://stephango.com/saw" \
-H "x-api-key: $APINOA_API_KEY"파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
url | string | 예 | The page's address, http or https. |
country | enum | Where the page is read from. US | |
include | string list | Extra fields, comma-separated: html (the page as fetched), contentHtml (its main content as HTML), text (its main content as plain text), links (the links in its main content), images (the images in its main content). | |
maxChars | integer 100–1000000 | Cut markdown (and text) to at most this many characters, at a paragraph break where one is near; truncated is then true. |
같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.
응답
data에 ReaderPage를 돌려줍니다. 실제 응답 전체입니다.
{
"success": true,
"data": {
"url": "https://stephango.com/saw",
"finalUrl": "https://stephango.com/saw",
"status": 200,
"contentType": "text/html; charset=UTF-8",
"title": "Use the saw, fear the saw",
"wordCount": 143,
"jsonLd": [],
"description": "It’s hard to make a saw that cuts trees but not arms.",
"author": "Steph Ango",
"published": "2025-10-20T00:00:00+00:00",
"site": "Steph Ango",
"language": "en",
"image": "https://stephango.com/assets/card.png",
"favicon": "https://stephango.com/favicon.ico",
"markdown": "When I learned to use a table saw, my teacher impressed upon me that the machine wants to cut fingers. Fear the saw!\n\nPowerful tools can do powerful things. If you want to make handmade wooden furniture you must cut wood. Your desire to have limbs and your desire to have furniture are not at odds if you learn to use tools safely.\n\nThere *are* table saws that will stop at the touch of a finger, but I don’t know of any chainsaw that won’t cut an arm. There is a limit to how safe a tool can be before its function is crippled.\n\nWe should not stop making powerful tools because they are dangerous. Rather, we should empower people to use powerful tools safely.\n\nI use the saw, I fear the saw. I have handmade furniture, and I have all my limbs."
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_PARAMS | url이 없거나, http·https 주소가 아니거나, 사설·내부 주소입니다. 알 수 없거나 범위를 벗어난 파라미터가 있습니다. 또는 주소가 웹 페이지가 아닌 것(PDF, 이미지, JSON)으로 응답했습니다. 메시지에 이유와 콘텐츠 타입이 나옵니다. |
| 400 | UPSTREAM_TOO_LARGE | 페이지가 5 MiB보다 큽니다. |
| 400 | INVALID_PARAMS | 사이트의 TLS 인증서를 검증할 수 없습니다(모든 요청에서 확인합니다). 메시지에 호스트가 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_CREDITS | 크레딧이 이 호출 비용에 모자랍니다. 대시보드에서 플랜을 고르거나 충전하세요. |
| 404 | NOT_FOUND | 사이트가 없거나 연결을 거부합니다: 이름이 조회되지 않거나, 연결을 받는 곳이 없습니다. 메시지에 호스트가 나옵니다. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 503 | UPSTREAM_UNAVAILABLE | 모든 시도에서 페이지가 봇 확인에 막혀 있었습니다. 나중에 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 1 크레딧. 플랜과 크레딧
참고
status는 사이트의 것입니다.404나500페이지도 다른 페이지처럼 읽어서 돌려주고, 과금됩니다.markdown을 쓰기 전에status를 확인하세요.- JavaScript는 실행하지 않습니다. 페이지는 사이트 서버가 보낸 그대로 읽습니다. JavaScript로만 내용을 채우는 페이지는
텍스트가 거의 또는 전혀 없이 옵니다(
wordCount가 작음). 서버가 보낸 것은include=html로 볼 수 있습니다. - 본문만. 내비게이션, 머리글, 바닥글, 사이드바는
markdown에서 뺍니다. 일부 페이지, 특히 상품 페이지에서는 주변 요소(관련 상품 목록, 버튼 문구)가 조금 남을 수 있습니다.include=html이면 페이지 전체를 함께 돌려줍니다. - **
maxChars**는 한도 가까이에 문단 경계가 있으면 거기서markdown을 자르고truncated: true를 넣습니다.wordCount는 여전히 본문 전체를 셉니다.include=text이면text도 같은 방식으로 자릅니다. - **
include=text,links,images**는 본문을 일반 텍스트로, 본문의 링크({ url, text })와 이미지({ url, alt })를 돌려줍니다. 주소는 절대 주소이고, 주소마다 한 번, 페이지 순서대로입니다.markdown과 같은 본문에서 읽으므로 내비게이션이나 바닥글의 링크는 들어가지 않습니다. - 일반 텍스트 페이지(
text/plain)는markdown에 그 텍스트를 담고,title은 빈 문자열입니다. - 리디렉션을 따라가며,
finalUrl이 응답한 주소입니다. 모든 타입의 필드는 Response Schema에 있습니다.