단일 페이지 스크래핑

단일 Velog 게시글을 스크래핑합니다.

GET /api/v1/page

Parameters

NameTypeDescription
urlstringRequired. 스크래핑할 Velog 게시글의 URL

Code samples

curl -L \
  -H "Accept: application/json" \
  "/api/v1/page?url=https://velog.io/@username/post-title"

HTTP response status codes

Status codeDescription
200OK
400URL parameter is required
500Internal server error

Response schema

{
  "title": string,
  "body": string,
  "image": string,
  "date": string,
  "href": string
}

Example response

Status: 200

{
  "title": "게시글 제목",
  "body": "<p>게시글 내용...</p>",
  "image": "https://velog.io/image-url.jpg",
  "date": "2024-01-01",
  "href": "https://velog.io/@username/post-title"
}