태그 스크래핑
Velog 사용자의 태그 목록을 스크래핑합니다.
GET /api/v1/tags
Parameters
| Name | Type | Description |
|---|---|---|
| userId | string | Required. 스크래핑할 Velog 사용자 ID |
Code samples
curl -L \
-H "Accept: application/json" \
"/api/v1/tags?userId=username"HTTP response status codes
| Status code | Description |
|---|---|
| 200 | OK |
| 400 | userId parameter is required |
| 500 | Internal server error |
Response schema
{
"tags": [
{
"id": string,
"name": string,
"posts_count": number
}
]
}Example response
Status: 200
{
"tags": [
{
"id": "11aae9fb-af22-4695-9caa-9e6941f0dad3:94f09f70-ca97-11e8-87f7-a913bf56a234",
"name": "frontend",
"posts_count": 18
},
{
"id": "11aae9fb-af22-4695-9caa-9e6941f0dad3:8d1a0a60-c61f-11e8-b3a6-c16d8d6c5f3d",
"name": "JavaScript",
"posts_count": 11
},
{
"id": "11aae9fb-af22-4695-9caa-9e6941f0dad3:6932a610-b351-11e8-9696-f1fffe8a36f1",
"name": "React",
"posts_count": 4
}
]
}