/zenn/articles
curl --request POST \
--url https://api.anysite.io/api/zenn/articles \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"article": "<string>",
"timeout": 300,
"locale": "ja"
}
'import requests
url = "https://api.anysite.io/api/zenn/articles"
payload = {
"article": "<string>",
"timeout": 300,
"locale": "ja"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({article: '<string>', timeout: 300, locale: 'ja'})
};
fetch('https://api.anysite.io/api/zenn/articles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/zenn/articles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'article' => '<string>',
'timeout' => 300,
'locale' => 'ja'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/zenn/articles"
payload := strings.NewReader("{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/zenn/articles")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/zenn/articles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"alias": "<string>",
"@type": "ZennArticle",
"article_title": "<string>",
"emoji": "<string>",
"url": "<string>",
"image": "<string>",
"text": "<string>",
"text_html": "<string>",
"published_at": 123,
"body_updated_at": 123,
"source_repo_updated_at": 123,
"like_count": 123,
"comment_count": 123,
"positive_comment_count": 123,
"bookmark_count": 123,
"letter_count": 123,
"draft_reveal_scope": "<string>",
"available_locales": [],
"is_pinned": false,
"is_toc_enabled": false,
"can_send_badge": false,
"github_url": "<string>",
"github_commits_url": "<string>",
"github_dev_url": "<string>",
"github_repository": {
"id": 123,
"@type": "ZennGithubRepository",
"name": "<string>",
"full_name": "<string>",
"branch_name": "<string>",
"url": "<string>",
"is_public": false,
"is_link_shown": false
},
"contest": {
"id": 123,
"alias": "<string>",
"@type": "ZennContest",
"contest_title": "<string>",
"url": "<string>",
"started_at": 123,
"ended_at": 123,
"article_published_from": 123
},
"article_list": {
"alias": "<string>",
"@type": "ZennArticleList",
"name": "<string>",
"emoji": "<string>",
"image": "<string>",
"article_count": 123,
"article_order_type": "<string>",
"priority": 123,
"is_published": false,
"created_at": 123,
"updated_at": 123
},
"topics": [],
"toc": [],
"badges": [],
"comments": [],
"commented_users": [],
"user": {
"id": 123,
"alias": "<string>",
"@type": "ZennUserSummary",
"name": "<string>",
"bio": "<string>",
"bio_html": "<string>",
"image": "<string>",
"url": "<string>",
"github_url": "<string>",
"twitter_url": "<string>",
"hatena_id": "<string>",
"website_url": "<string>",
"total_liked_count": 123,
"is_support_open": false,
"analytics_id": "<string>",
"seller_name": "<string>",
"seller_contact": "<string>",
"awards": []
},
"publication": {
"id": 123,
"alias": "<string>",
"@type": "ZennPublication",
"name": "<string>",
"description_html": "<string>",
"image": "<string>",
"cover": "<string>",
"url": "<string>",
"is_pro": false,
"has_avatar": false,
"follower_count": 123,
"award_count": 123,
"sponsor_count": 123,
"github_url": "<string>",
"twitter_url": "<string>",
"analytics_id": "<string>",
"is_article_comment_open": false,
"is_support_open": false,
"has_recent_article_lists": false,
"fixed_sentences_html": "<string>",
"navigations": [],
"banners": [],
"article_lists": []
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/zenn
/zenn/articles
Get Zenn Article
Price: 1 credit
⚠️ Common errors: 412: Article not found. Verify the article slug or URL.
POST
/
api
/
zenn
/
articles
/zenn/articles
curl --request POST \
--url https://api.anysite.io/api/zenn/articles \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"article": "<string>",
"timeout": 300,
"locale": "ja"
}
'import requests
url = "https://api.anysite.io/api/zenn/articles"
payload = {
"article": "<string>",
"timeout": 300,
"locale": "ja"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({article: '<string>', timeout: 300, locale: 'ja'})
};
fetch('https://api.anysite.io/api/zenn/articles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/zenn/articles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'article' => '<string>',
'timeout' => 300,
'locale' => 'ja'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/zenn/articles"
payload := strings.NewReader("{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/zenn/articles")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/zenn/articles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"article\": \"<string>\",\n \"timeout\": 300,\n \"locale\": \"ja\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"alias": "<string>",
"@type": "ZennArticle",
"article_title": "<string>",
"emoji": "<string>",
"url": "<string>",
"image": "<string>",
"text": "<string>",
"text_html": "<string>",
"published_at": 123,
"body_updated_at": 123,
"source_repo_updated_at": 123,
"like_count": 123,
"comment_count": 123,
"positive_comment_count": 123,
"bookmark_count": 123,
"letter_count": 123,
"draft_reveal_scope": "<string>",
"available_locales": [],
"is_pinned": false,
"is_toc_enabled": false,
"can_send_badge": false,
"github_url": "<string>",
"github_commits_url": "<string>",
"github_dev_url": "<string>",
"github_repository": {
"id": 123,
"@type": "ZennGithubRepository",
"name": "<string>",
"full_name": "<string>",
"branch_name": "<string>",
"url": "<string>",
"is_public": false,
"is_link_shown": false
},
"contest": {
"id": 123,
"alias": "<string>",
"@type": "ZennContest",
"contest_title": "<string>",
"url": "<string>",
"started_at": 123,
"ended_at": 123,
"article_published_from": 123
},
"article_list": {
"alias": "<string>",
"@type": "ZennArticleList",
"name": "<string>",
"emoji": "<string>",
"image": "<string>",
"article_count": 123,
"article_order_type": "<string>",
"priority": 123,
"is_published": false,
"created_at": 123,
"updated_at": 123
},
"topics": [],
"toc": [],
"badges": [],
"comments": [],
"commented_users": [],
"user": {
"id": 123,
"alias": "<string>",
"@type": "ZennUserSummary",
"name": "<string>",
"bio": "<string>",
"bio_html": "<string>",
"image": "<string>",
"url": "<string>",
"github_url": "<string>",
"twitter_url": "<string>",
"hatena_id": "<string>",
"website_url": "<string>",
"total_liked_count": 123,
"is_support_open": false,
"analytics_id": "<string>",
"seller_name": "<string>",
"seller_contact": "<string>",
"awards": []
},
"publication": {
"id": 123,
"alias": "<string>",
"@type": "ZennPublication",
"name": "<string>",
"description_html": "<string>",
"image": "<string>",
"cover": "<string>",
"url": "<string>",
"is_pro": false,
"has_avatar": false,
"follower_count": 123,
"award_count": 123,
"sponsor_count": 123,
"github_url": "<string>",
"twitter_url": "<string>",
"analytics_id": "<string>",
"is_article_comment_open": false,
"is_support_open": false,
"has_recent_article_lists": false,
"fixed_sentences_html": "<string>",
"navigations": [],
"banners": [],
"article_lists": []
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Response
Successful Response
Available options:
tech, idea Available options:
User, Publication Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I