本文へ
ドキュメント

ドキュメント

CrowOn の投稿をほかのサイトに出すためのガイドと、アカウントなしで呼べるアドレスのリファレンスです。

投稿を埋め込むAPI リファレンスを見る

試してみる

テスト用のアカウントで実際に呼んだリクエストとレスポンスです。

curl
curl "https://crowon.app/oembed?url=https://crowon.app/s/p/p-8f3a21c7d09e&maxwidth=540"
RESPONSE
{  "version": "1.0",  "type": "rich",  "provider_name": "CrowOn",  "provider_url": "https://crowon.app",  "title": "Morning light at the station.",  "author_name": "Mika Sato",  "author_url": "https://crowon.app/@mika.sato",  "html": "<blockquote class=\"crowon-embed\" data-post=\"p-8f3a21c7d09e\" style=\"max-width:540px;margin:0 auto\"><a href=\"https://crowon.app/s/p/p-8f3a21c7d09e\">View this post on CrowOn</a></blockquote><script async src=\"https://crowon.app/embed.js\"></script><noscript><iframe src=\"https://crowon.app/embed/p-8f3a21c7d09e\" width=\"540\" height=\"640\" style=\"border:0;max-width:100%\" loading=\"lazy\" title=\"CrowOn\"></iframe></noscript>",  "width": 540,  "height": 220,  "cache_age": 3600}
curl
curl -i https://crowon.app/embed/p-8f3a21c7d09e
RESPONSE
HTTP/1.1 200 OKContent-Type: text/html; charset=utf-8Cache-Control: public, max-age=60Content-Security-Policy: default-src 'none'; … frame-ancestors * <!doctype html><html lang="en"><head>…<title>CrowOn</title>…
HTML
<blockquote class="crowon-embed" data-post="p-8f3a21c7d09e" data-theme="dark">  <a href="https://crowon.app/s/p/p-8f3a21c7d09e">View this post on CrowOn</a></blockquote><script async src="https://crowon.app/embed.js"></script>
RESPONSE
HTTP/1.1 200 OKContent-Type: text/javascript; charset=utf-8Cache-Control: public, max-age=86400Access-Control-Allow-Origin: *
curl
curl https://crowon.app/s/p/p-8f3a21c7d09e
RESPONSE
<meta property="og:site_name" content="CrowOn"><meta property="og:title" content="Post by Mika Sato"><meta property="og:description" content="Morning light at the station."><meta property="og:type" content="article"><meta property="og:url" content="https://crowon.app/s/p/p-8f3a21c7d09e"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="Post by Mika Sato"><meta name="twitter:description" content="Morning light at the station."><link rel="alternate" type="application/json+oembed" href="https://crowon.app/oembed?url=…"><meta http-equiv="refresh" content="0;url=/#/p/p-8f3a21c7d09e">