<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>20</ContextCount>
  <ElementCount>26</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>9</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>1</UnitCount>
  <MyReports>
    <Report instance="ny20018690x2_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ny20018690x2_def14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</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>apei-20240517.xsd</File>
    <File>apei-20240517_def.xml</File>
    <File>apei-20240517_lab.xml</File>
    <File>apei-20240517_pre.xml</File>
    <File doctype="DEF 14A" isProxy="true" isUsgaap="true" original="ny20018690x2_def14a.htm">ny20018690x2_def14a.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>logo_apeiv2.jpg</File>
    <File>logo_apeiv3.jpg</File>
    <File>ny20007427x2_afabrega.jpg</File>
    <File>ny20007427x2_angelaselden.jpg</File>
    <File>ny20007427x2_arrow.jpg</File>
    <File>ny20007427x2_danielpianko.jpg</File>
    <File>ny20007427x2_gblevins1.jpg</File>
    <File>ny20007427x2_jkenis.jpg</File>
    <File>ny20007427x2_mbraner.jpg</File>
    <File>ny20007427x2_willrobinson.jpg</File>
    <File>ny20018690x2_apei.jpg</File>
    <File>ny20018690x2_bcovx1.jpg</File>
    <File>ny20018690x2_boxes1x2.jpg</File>
    <File>ny20018690x2_boxesx1.jpg</File>
    <File>ny20018690x2_ceotarget.jpg</File>
    <File>ny20018690x2_ericandersen.jpg</File>
    <File>ny20018690x2_fcov.jpg</File>
    <File>ny20018690x2_pc-1.jpg</File>
    <File>ny20018690x2_pc-2.jpg</File>
    <File>ny20018690x2_piechart03x2.jpg</File>
    <File>ny20018690x2_piechart04x2.jpg</File>
    <File>ny20018690x2_piechart05x1.jpg</File>
    <File>ny20018690x2_piecharts0x1.jpg</File>
    <File>ny20018690x2_pvpchart1.jpg</File>
    <File>ny20018690x2_pvpchart2.jpg</File>
    <File>ny20018690x2_pvpchart3.jpg</File>
    <File>sig_eandersen.jpg</File>
    <File>sig_tbeckett.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="4">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="65">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
