Repository navigation
[English]
The GET - /v1/users/<username>/graphs/<graphID> API now supports a new asText=true query parameter.
When this parameter is specified, the SVG data is returned with Content-Type: text/plain instead of the default image/svg+xml. The response body itself remains unchanged.
This option is useful for text-oriented clients, including AI-powered tools and web fetchers, that do not support responses with the image/svg+xml Content-Type.
If the parameter is omitted or a value other than true is specified, the response will continue to use image/svg+xml.
For more details, please see the Pixela API documentation.
[Japanese]
GET - /v1/users/<username>/graphs/<graphID> API にて、新たに asText=true クエリパラメータをサポートしました。
このパラメータを指定すると、SVGデータをデフォルトの image/svg+xml ではなく、Content-Type: text/plain で取得できます。レスポンスボディの内容そのものは変更されません。
このオプションは、image/svg+xml のレスポンスに対応していないAIツールやWeb取得ツールなど、テキストとしてレスポンスを扱うクライアントでの利用を想定したものです。
このパラメータを省略した場合、または true 以外の値を指定した場合は、従来どおり image/svg+xml でレスポンスします。
詳細は Pixela APIドキュメント を参照してください。