> ## Documentation Index
> Fetch the complete documentation index at: https://ayrshare.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate API 概要

> ソーシャル投稿と JSON の検証

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "business") {
      displayPlans = ["Launch", "Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Launch", "Business", "Enterprise"];
    }
  }
  return <Note>
Available on {displayPlans.length === 1 ? "the " : ""}
{displayPlans.join(", ").replace(/\b\w/g, l => l.toUpperCase())}{" "}
{displayPlans.length > 1 ? "plans" : "plan"}.

{maxPackRequired && <span onClick={() => window.open('https://www.ayrshare.com/docs/additional/maxpack', '_self')} className="flex items-center mt-2 cursor-pointer">
 <span className="px-1.5 py-0.5 rounded text-sm" style={{
    backgroundColor: '#C264B6',
    color: 'white',
    fontSize: '12px'
  }}>
   Max Pack required
 </span>
</span>}
</Note>;
};

<PlansAvailable plans={["premium"]} maxPackRequired={false} />

Validate エンドポイントは、ソーシャル投稿と JSON オブジェクトを検証します。

Validate エンドポイントを使用すると、開発者はソーシャルメディアプラットフォームに公開する前に、投稿の潜在的な問題や違反をチェックできます。
これにより、テキストの長さ、メディア形式、プラットフォーム固有のルールを検証することで、投稿の失敗を防ぎます。
たとえば、エンドポイントは投稿が検証に合格するかどうかを確認したり、画像がサイズ要件を満たしているかを確認したり、モデレーションの問題があるかどうかを確認したりできます。
この事前検証は投稿の成功率を改善し、潜在的な問題について早期のフィードバックを提供します。
