단일 페이지 스크래핑
단일 Velog 게시글을 스크래핑합니다.
GET /api/v1/page
Parameters
| Name | Type | Description |
|---|---|---|
| url | string | Required. 스크래핑할 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 code | Description |
|---|---|
| 200 | OK |
| 400 | URL parameter is required |
| 500 | Internal 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"
}