<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>43</ContextCount>
  <ElementCount>28</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>9</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>1</UnitCount>
  <MyReports>
    <Report instance="ny20007427x2_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000100 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://apei.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ny20007427x2_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>060100 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://apei.com/role/PayVsPerformanceDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="DEF 14A" original="ny20007427x2_def14a.htm">ny20007427x2_def14a.htm</File>
    <File>apei-20230519.xsd</File>
    <File>apei-20230519_def.xml</File>
    <File>apei-20230519_lab.xml</File>
    <File>apei-20230519_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>logo_apeiv2.jpg</File>
    <File>logo_apeiv3.jpg</File>
    <File>logo_apeiv3x1.jpg</File>
    <File>ny20007427x2_afabrega.jpg</File>
    <File>ny20007427x2_angelaselden.jpg</File>
    <File>ny20007427x2_arrow.jpg</File>
    <File>ny20007427x2_barbarakurshan.jpg</File>
    <File>ny20007427x2_bcovx1.jpg</File>
    <File>ny20007427x2_boxes.jpg</File>
    <File>ny20007427x2_boxes1x1.jpg</File>
    <File>ny20007427x2_danielpianko.jpg</File>
    <File>ny20007427x2_ericandersen.jpg</File>
    <File>ny20007427x2_fcovx1.jpg</File>
    <File>ny20007427x2_gblevins1.jpg</File>
    <File>ny20007427x2_jhalle1.jpg</File>
    <File>ny20007427x2_jkenis.jpg</File>
    <File>ny20007427x2_linegraph02.jpg</File>
    <File>ny20007427x2_linegraph03.jpg</File>
    <File>ny20007427x2_linegraph04.jpg</File>
    <File>ny20007427x2_mbraner.jpg</File>
    <File>ny20007427x2_pc1.jpg</File>
    <File>ny20007427x2_pc2.jpg</File>
    <File>ny20007427x2_piechart03.jpg</File>
    <File>ny20007427x2_piechart04.jpg</File>
    <File>ny20007427x2_piechart05.jpg</File>
    <File>ny20007427x2_piecharts0x1.jpg</File>
    <File>ny20007427x2_willrobinson.jpg</File>
    <File>sig_eandersen.jpg</File>
    <File>sig_tbeckett.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2022q4</BaseTaxonomy>
    <BaseTaxonomy items="95">http://xbrl.sec.gov/ecd/2022q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
