> ## 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 للمطورين التحقق من المنشورات بحثًا عن المشكلات أو المخالفات المحتملة قبل نشرها على منصات وسائل التواصل الاجتماعي.
يساعد ذلك في منع فشل المنشورات من خلال التحقق من طول النص وتنسيقات الوسائط والقواعد الخاصة بكل منصة.
على سبيل المثال، يمكن لنقاط النهاية التحقق مما إذا كان المنشور يجتاز التحقق من الصحة، أو التحقق مما إذا كانت الصور تلبي متطلبات الحجم، أو معرفة ما إذا كانت هناك مشكلة تتعلق بالإشراف.
يساعد هذا التحقق المسبق في تحسين معدلات نجاح المنشورات ويوفر ملاحظات مبكرة حول المشكلات المحتملة.
