전체 게시글 스크래핑
Velog 사용자의 모든 게시글 목록을 스크래핑합니다.
GET /api/v1/post-all
Parameters
| Name | Type | Description |
|---|---|---|
| userId | string | Required. 스크래핑할 Velog 사용자 ID |
Code samples
curl -L \
-H "Accept: application/json" \
"/api/v1/post-all?userId=username"HTTP response status codes
| Status code | Description |
|---|---|
| 200 | OK |
| 400 | userId parameter is required |
| 500 | Internal server error |
Response schema
{
"contents": [
{
"title": string,
"body": string,
"image": string,
"date": string,
"href": string
}
]
}Example response
Status: 200
{
"contents": [
{
"title": "React Hooks 완벽 가이드",
"body": "React Hooks에 대한 자세한 설명...",
"image": "https://velog.io/image-url.jpg",
"date": "2024년 1월 1일",
"href": "https://velog.io/@username/react-hooks-guide"
},
{
"title": "TypeScript 기초",
"body": "TypeScript의 기본 문법과 사용법...",
"image": "https://velog.io/image-url.jpg",
"date": "2024년 1월 5일",
"href": "https://velog.io/@username/typescript-basics"
}
]
}