태그별 게시글 스크래핑

Velog 사용자의 특정 태그에 해당하는 게시글 목록을 스크래핑합니다.

GET /api/v1/tags-post

Parameters

NameTypeDescription
userIdstringRequired. 스크래핑할 Velog 사용자 ID
tagstringRequired. 스크래핑할 태그 이름

Code samples

curl -L \
  -H "Accept: application/json" \
  "/api/v1/tags-post?userId=username&tag=react"

HTTP response status codes

Status codeDescription
200OK
400userId 또는 tag parameter is required
500Internal 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": "useState와 useEffect 사용법",
      "body": "가장 기본적인 Hooks인 useState와 useEffect...",
      "image": "https://velog.io/image-url.jpg",
      "date": "2024년 1월 5일",
      "href": "https://velog.io/@username/useState-useEffect"
    }
  ]
}