| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<!-- XBRL Document Created with the Workiva Platform --> |
<!-- Copyright 2024 Workiva --> |
<!-- r:c797e265-511b-4d7a-967d-1430cb7ee7b7,g:b809c5c9-ce0d-40d7-9663-7413b1cf76c2 --> |
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"> |
| <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/> |
| <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/> |
| <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/> |
| <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/> |
| <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="apei-20231231.xsd#ConsolidatedBalanceSheetsParenthetical"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_9698b208-f93e-42ca-b161-7720a1658679" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:to="loc_us-gaap_StatementTable_9698b208-f93e-42ca-b161-7720a1658679" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_ba01cb4c-e3b0-4877-a1bb-a5960820c985" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementClassOfStockAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_9698b208-f93e-42ca-b161-7720a1658679" xlink:to="loc_us-gaap_StatementClassOfStockAxis_ba01cb4c-e3b0-4877-a1bb-a5960820c985" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_ba01cb4c-e3b0-4877-a1bb-a5960820c985_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_ba01cb4c-e3b0-4877-a1bb-a5960820c985" xlink:to="loc_us-gaap_ClassOfStockDomain_ba01cb4c-e3b0-4877-a1bb-a5960820c985_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_d8007d4f-296c-4310-b3c6-a4214b042e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_ba01cb4c-e3b0-4877-a1bb-a5960820c985" xlink:to="loc_us-gaap_ClassOfStockDomain_d8007d4f-296c-4310-b3c6-a4214b042e4d" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_035b9bda-863f-4570-8287-e08f9ca3a4aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesAPreferredStockMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_d8007d4f-296c-4310-b3c6-a4214b042e4d" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_035b9bda-863f-4570-8287-e08f9ca3a4aa" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_1b21b164-cfa4-43f8-b53a-c16e776db879" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockSharesOutstanding"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_1b21b164-cfa4-43f8-b53a-c16e776db879" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_1efc9e05-9c43-4a3b-b3a5-aa32dd5e6d78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockSharesIssued"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:to="loc_us-gaap_PreferredStockSharesIssued_1efc9e05-9c43-4a3b-b3a5-aa32dd5e6d78" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockLiquidationPreference_7223d76d-fe2b-4a8c-aa6e-300eed75f2d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockLiquidationPreference"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:to="loc_us-gaap_PreferredStockLiquidationPreference_7223d76d-fe2b-4a8c-aa6e-300eed75f2d7" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockLiquidationPreferenceValue_102276db-e288-40b9-8e91-013ae395c9bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockLiquidationPreferenceValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e0fec158-a14a-4655-b314-97ff8ec70d88" xlink:to="loc_us-gaap_PreferredStockLiquidationPreferenceValue_102276db-e288-40b9-8e91-013ae395c9bb" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofStockholdersEquity" xlink:type="simple" xlink:href="apei-20231231.xsd#ConsolidatedStatementsofStockholdersEquity"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/ConsolidatedStatementsofStockholdersEquity" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_8fbab2f7-1e79-4d93-8ef6-e7e90000d63d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_d2375200-929d-4ef0-a646-86b02300a23f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_8fbab2f7-1e79-4d93-8ef6-e7e90000d63d" xlink:to="loc_us-gaap_StatementTable_d2375200-929d-4ef0-a646-86b02300a23f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_7c5850ae-6afc-4633-9d5d-da17bb755d1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_d2375200-929d-4ef0-a646-86b02300a23f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_7c5850ae-6afc-4633-9d5d-da17bb755d1e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_7c5850ae-6afc-4633-9d5d-da17bb755d1e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7c5850ae-6afc-4633-9d5d-da17bb755d1e" xlink:to="loc_us-gaap_EquityComponentDomain_7c5850ae-6afc-4633-9d5d-da17bb755d1e_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7c5850ae-6afc-4633-9d5d-da17bb755d1e" xlink:to="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_c2a89eb7-06f1-4059-8691-96fbeb075355" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:to="loc_us-gaap_PreferredStockMember_c2a89eb7-06f1-4059-8691-96fbeb075355" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_97ae1d46-59ce-4c0f-975d-4d0955c08877" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:to="loc_us-gaap_CommonStockMember_97ae1d46-59ce-4c0f-975d-4d0955c08877" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_47a98f47-fee3-4dbf-adab-cd03f1f8818c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_47a98f47-fee3-4dbf-adab-cd03f1f8818c" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a4b6ca48-e6ff-4436-99e9-caab6fff1170" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a4b6ca48-e6ff-4436-99e9-caab6fff1170" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_79911607-e104-4f38-8652-05cfa9955705" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1553edd6-4707-444c-8772-089a5b3e5eee" xlink:to="loc_us-gaap_RetainedEarningsMember_79911607-e104-4f38-8652-05cfa9955705" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8fbab2f7-1e79-4d93-8ef6-e7e90000d63d" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_e60aae1e-e901-4dcf-8be4-4c59bf9db010" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesIssued"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_SharesIssued_e60aae1e-e901-4dcf-8be4-4c59bf9db010" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5e4a513c-00cd-46d6-88f8-42860c401550" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockholdersEquity_5e4a513c-00cd-46d6-88f8-42860c401550" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_70b57a00-ea13-4d45-9fbe-3fd408c39962" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_70b57a00-ea13-4d45-9fbe-3fd408c39962" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_1d68a2df-ac5b-4b23-b5f5-856cbd882b8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_1d68a2df-ac5b-4b23-b5f5-856cbd882b8b" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStockStock_91752c60-e26e-4f3f-9af3-dad11b022943" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsPreferredStockStock"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_DividendsPreferredStockStock_91752c60-e26e-4f3f-9af3-dad11b022943" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeBenefitPlan_3778628c-4e21-4338-a6a8-4f017ad4376b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeBenefitPlan"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeBenefitPlan_3778628c-4e21-4338-a6a8-4f017ad4376b" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeBenefitPlan_6dc6fc65-a25c-4215-b06b-f8278898fb0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeBenefitPlan"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeBenefitPlan_6dc6fc65-a25c-4215-b06b-f8278898fb0d" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_943e933c-9c4a-4cf0-8180-f9915e157b2e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedDuringPeriodShares"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_943e933c-9c4a-4cf0-8180-f9915e157b2e" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_96d016cb-427a-4ee4-b2ae-bc22dd47a405" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_96d016cb-427a-4ee4-b2ae-bc22dd47a405" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_544b2bce-063d-4a7d-943c-7c11b85967e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_544b2bce-063d-4a7d-943c-7c11b85967e2" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_29d9a19a-f7f7-4274-972b-b34b795d63fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_29d9a19a-f7f7-4274-972b-b34b795d63fb" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_0114171f-889a-4916-b3ad-ab746daacb2a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_0114171f-889a-4916-b3ad-ab746daacb2a" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_cfb258ba-ea9d-4b50-a450-10e623f45256" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_cfb258ba-ea9d-4b50-a450-10e623f45256" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_821dfb15-f3df-414a-b9cb-c6988f7ed69e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_eb9638b6-f7e8-44d2-ae4c-322c7f226e84" xlink:to="loc_us-gaap_NetIncomeLoss_821dfb15-f3df-414a-b9cb-c6988f7ed69e" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_cac28439-9220-4641-a377-49ea7a36a576" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesIssued"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_74efb714-01ec-4147-87b1-f3df24286e2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/NatureofBusinessDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#NatureofBusinessDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/NatureofBusinessDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_3ee2c9bb-e2a2-4f67-9390-9c40c87e7486" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_f5ab59c1-9134-4408-9005-b33f71769c89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3ee2c9bb-e2a2-4f67-9390-9c40c87e7486" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_f5ab59c1-9134-4408-9005-b33f71769c89" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_d27b0189-3555-4edb-b6db-1755554cc295" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_f5ab59c1-9134-4408-9005-b33f71769c89" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_d27b0189-3555-4edb-b6db-1755554cc295" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d27b0189-3555-4edb-b6db-1755554cc295_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d27b0189-3555-4edb-b6db-1755554cc295" xlink:to="loc_us-gaap_SegmentDomain_d27b0189-3555-4edb-b6db-1755554cc295_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e6ff190c-90bd-426d-ad93-58f6f1f04832" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d27b0189-3555-4edb-b6db-1755554cc295" xlink:to="loc_us-gaap_SegmentDomain_e6ff190c-90bd-426d-ad93-58f6f1f04832" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_15ba8f10-70ef-46f7-ad32-abb4ef03e4cb" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e6ff190c-90bd-426d-ad93-58f6f1f04832" xlink:to="loc_apei_RasmussenUniversitySegmentMember_15ba8f10-70ef-46f7-ad32-abb4ef03e4cb" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_ed206137-d593-42ee-ab9e-650c1e449d30" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e6ff190c-90bd-426d-ad93-58f6f1f04832" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_ed206137-d593-42ee-ab9e-650c1e449d30" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_NumberOfCampuses_d07f6a1a-a131-42c4-bf9f-0ca2a7992ebc" xlink:href="apei-20231231.xsd#apei_NumberOfCampuses"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3ee2c9bb-e2a2-4f67-9390-9c40c87e7486" xlink:to="loc_apei_NumberOfCampuses_d07f6a1a-a131-42c4-bf9f-0ca2a7992ebc" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfStatesInWhichEntityOperates_41f95a42-5bd9-453e-9c33-931770c09de8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfStatesInWhichEntityOperates"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3ee2c9bb-e2a2-4f67-9390-9c40c87e7486" xlink:to="loc_us-gaap_NumberOfStatesInWhichEntityOperates_41f95a42-5bd9-453e-9c33-931770c09de8" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_54a99635-c600-48cd-abef-f83d21d5c333" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfReportableSegments"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3ee2c9bb-e2a2-4f67-9390-9c40c87e7486" xlink:to="loc_us-gaap_NumberOfReportableSegments_54a99635-c600-48cd-abef-f83d21d5c333" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesRestrictedCashDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SignificantAccountingPoliciesRestrictedCashDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesRestrictedCashDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_d2db95a0-a5b0-405e-9f4d-7e0c5a98012f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_e9942ca0-6236-4ed4-9d2b-a52d1d186588" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_d2db95a0-a5b0-405e-9f4d-7e0c5a98012f" xlink:to="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_e9942ca0-6236-4ed4-9d2b-a52d1d186588" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_e9942ca0-6236-4ed4-9d2b-a52d1d186588" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_63080839-b7dd-4481-933f-a201c2e04ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis_83457e7e-3da8-41e3-8dbc-6adfb5d2c8a9" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_63080839-b7dd-4481-933f-a201c2e04ae3" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_a4a7666c-8c1b-4807-a1fa-dd25abf6b1a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CertificatesOfDepositMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_63080839-b7dd-4481-933f-a201c2e04ae3" xlink:to="loc_us-gaap_CertificatesOfDepositMember_a4a7666c-8c1b-4807-a1fa-dd25abf6b1a8" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_c0e865be-503b-462b-aa57-f63c252af30f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CounterpartyNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_e9942ca0-6236-4ed4-9d2b-a52d1d186588" xlink:to="loc_srt_CounterpartyNameAxis_c0e865be-503b-462b-aa57-f63c252af30f" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_c0e865be-503b-462b-aa57-f63c252af30f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_c0e865be-503b-462b-aa57-f63c252af30f" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_c0e865be-503b-462b-aa57-f63c252af30f_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_62723ca6-aa70-4fb4-9a27-d1aeafbd0586" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_c0e865be-503b-462b-aa57-f63c252af30f" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_62723ca6-aa70-4fb4-9a27-d1aeafbd0586" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_USDepartmentOfEducationMember_d99d1f41-b0cf-4c8f-a7ca-725597e41ad5" xlink:href="apei-20231231.xsd#apei_USDepartmentOfEducationMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_62723ca6-aa70-4fb4-9a27-d1aeafbd0586" xlink:to="loc_apei_USDepartmentOfEducationMember_d99d1f41-b0cf-4c8f-a7ca-725597e41ad5" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversityMember_a76a1b49-ca00-4c31-89e3-5ced6228c298" xlink:href="apei-20231231.xsd#apei_RasmussenUniversityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_62723ca6-aa70-4fb4-9a27-d1aeafbd0586" xlink:to="loc_apei_RasmussenUniversityMember_a76a1b49-ca00-4c31-89e3-5ced6228c298" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_481cc707-1181-4049-b1b8-4291cdef1833" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_d2db95a0-a5b0-405e-9f4d-7e0c5a98012f" xlink:to="loc_us-gaap_RestrictedCashCurrent_481cc707-1181-4049-b1b8-4291cdef1833" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_8887c35b-60ca-46b2-98bb-fcf6cafae339" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCash"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_d2db95a0-a5b0-405e-9f4d-7e0c5a98012f" xlink:to="loc_us-gaap_RestrictedCash_8887c35b-60ca-46b2-98bb-fcf6cafae339" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesPropertyandEquipmentDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SignificantAccountingPoliciesPropertyandEquipmentDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesPropertyandEquipmentDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb97f-7035-4adb-98d7-ad13d44c2eb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d1d24bd5-21d0-46d5-b60b-aa1a116bb5c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb97f-7035-4adb-98d7-ad13d44c2eb7" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d1d24bd5-21d0-46d5-b60b-aa1a116bb5c0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d1d24bd5-21d0-46d5-b60b-aa1a116bb5c0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1fc66285-defd-4944-858f-9aae655cd0ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_1b7cb6ad-fd8d-401d-b7fa-fe7ef6180700" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1fc66285-defd-4944-858f-9aae655cd0ca" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_748cda28-b43d-4718-8dfd-b42eea2d2e07" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SoftwareDevelopmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1fc66285-defd-4944-858f-9aae655cd0ca" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_748cda28-b43d-4718-8dfd-b42eea2d2e07" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_ProgramDevelopmentMember_12f4ed41-46d0-4d17-a96c-f971656db309" xlink:href="apei-20231231.xsd#apei_ProgramDevelopmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_1fc66285-defd-4944-858f-9aae655cd0ca" xlink:to="loc_apei_ProgramDevelopmentMember_12f4ed41-46d0-4d17-a96c-f971656db309" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d1d24bd5-21d0-46d5-b60b-aa1a116bb5c0" xlink:to="loc_srt_RangeAxis_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef" xlink:to="loc_srt_RangeMember_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a6e86a6d-8e97-4322-88a2-39267a99b3dc" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_b61311a7-6c2d-4e85-b98e-8e8bd0bc08ef" xlink:to="loc_srt_RangeMember_a6e86a6d-8e97-4322-88a2-39267a99b3dc" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_c847be07-460f-49ac-a0ba-3d060816e59a" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a6e86a6d-8e97-4322-88a2-39267a99b3dc" xlink:to="loc_srt_MaximumMember_c847be07-460f-49ac-a0ba-3d060816e59a" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_0ff27669-e866-4850-badf-e297d33a892b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb97f-7035-4adb-98d7-ad13d44c2eb7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_0ff27669-e866-4850-badf-e297d33a892b" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesDeferredRevenueDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SignificantAccountingPoliciesDeferredRevenueDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SignificantAccountingPoliciesDeferredRevenueDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_46cd5259-2024-4b14-8a47-068cce59efad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_a7b8c910-6070-4ab2-91a2-7e52ed7ea2f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_46cd5259-2024-4b14-8a47-068cce59efad" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_a7b8c910-6070-4ab2-91a2-7e52ed7ea2f2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationAxis_0a30881f-12a8-45f4-ad73-e77cb840b9d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a7b8c910-6070-4ab2-91a2-7e52ed7ea2f2" xlink:to="loc_us-gaap_ContractWithCustomerDurationAxis_0a30881f-12a8-45f4-ad73-e77cb840b9d8" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_0a30881f-12a8-45f4-ad73-e77cb840b9d8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_0a30881f-12a8-45f4-ad73-e77cb840b9d8" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_0a30881f-12a8-45f4-ad73-e77cb840b9d8_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_b46b7631-171f-440e-837c-bb202edc5712" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_0a30881f-12a8-45f4-ad73-e77cb840b9d8" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_b46b7631-171f-440e-837c-bb202edc5712" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_FutureCoursesMember_499c7e2c-3ac8-437f-9788-a926a0e8e27f" xlink:href="apei-20231231.xsd#apei_FutureCoursesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_b46b7631-171f-440e-837c-bb202edc5712" xlink:to="loc_apei_FutureCoursesMember_499c7e2c-3ac8-437f-9788-a926a0e8e27f" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_46e0a8f5-f8ab-4ee9-877a-1a2f1cbb9128" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_46cd5259-2024-4b14-8a47-068cce59efad" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_46e0a8f5-f8ab-4ee9-877a-1a2f1cbb9128" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmountofScholarshipAssistanceProvided_a04165ca-64df-4d14-9f72-4f232e7d7b22" xlink:href="apei-20231231.xsd#apei_AmountofScholarshipAssistanceProvided"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_46cd5259-2024-4b14-8a47-068cce59efad" xlink:to="loc_apei_AmountofScholarshipAssistanceProvided_a04165ca-64df-4d14-9f72-4f232e7d7b22" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/AcquisitionActivityNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#AcquisitionActivityNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/AcquisitionActivityNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4baabf2a-34a2-4429-ae88-a87471f63fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4baabf2a-34a2-4429-ae88-a87471f63fbc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4baabf2a-34a2-4429-ae88-a87471f63fbc" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ada2a753-38ae-447a-ae0e-ed80437a31a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_0546f2ec-fe0e-4cfa-ba48-6670bf1c4739" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ada2a753-38ae-447a-ae0e-ed80437a31a4" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenMember_b5c6f624-030b-4a83-8dfa-9d72ed4d7f63" xlink:href="apei-20231231.xsd#apei_RasmussenMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ada2a753-38ae-447a-ae0e-ed80437a31a4" xlink:to="loc_apei_RasmussenMember_b5c6f624-030b-4a83-8dfa-9d72ed4d7f63" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_540dc4be-373c-426e-b946-e42df30926b7" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ada2a753-38ae-447a-ae0e-ed80437a31a4" xlink:to="loc_apei_RasmussenUniversitySegmentMember_540dc4be-373c-426e-b946-e42df30926b7" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GraduateSchoolUSAMember_d91e17e3-61cd-43a9-b783-a8cd7620139b" xlink:href="apei-20231231.xsd#apei_GraduateSchoolUSAMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ada2a753-38ae-447a-ae0e-ed80437a31a4" xlink:to="loc_apei_GraduateSchoolUSAMember_d91e17e3-61cd-43a9-b783-a8cd7620139b" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_9f92b8eb-c150-46a0-a020-88e1922be377" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_4baabf2a-34a2-4429-ae88-a87471f63fbc" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_9f92b8eb-c150-46a0-a020-88e1922be377" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9f92b8eb-c150-46a0-a020-88e1922be377_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_9f92b8eb-c150-46a0-a020-88e1922be377" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_9f92b8eb-c150-46a0-a020-88e1922be377_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_7f2f9e37-d54e-4c66-8493-ee9726b0be39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_9f92b8eb-c150-46a0-a020-88e1922be377" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_7f2f9e37-d54e-4c66-8493-ee9726b0be39" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationLicensingTitleFourAndTradeNameMember_c0addc2e-05a2-4167-8655-c586df6c6ccc" xlink:href="apei-20231231.xsd#apei_AccreditationLicensingTitleFourAndTradeNameMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_7f2f9e37-d54e-4c66-8493-ee9726b0be39" xlink:to="loc_apei_AccreditationLicensingTitleFourAndTradeNameMember_c0addc2e-05a2-4167-8655-c586df6c6ccc" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_108aedfb-1cc0-4f96-9f05-787e94530bf4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_108aedfb-1cc0-4f96-9f05-787e94530bf4" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_8ccd09cc-b939-44c1-bfe6-111f974040c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_Goodwill_8ccd09cc-b939-44c1-bfe6-111f974040c7" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPeriodIncreaseDecrease_315c1687-eebf-422f-82b0-7d72b061cb9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillPeriodIncreaseDecrease"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_GoodwillPeriodIncreaseDecrease_315c1687-eebf-422f-82b0-7d72b061cb9a" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_5c30380a-8a5e-4791-bc22-a3d9374a6fde" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillImpairmentLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_5c30380a-8a5e-4791-bc22-a3d9374a6fde" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GoodwillImpairmentLossTaxEffect_81593866-e316-4125-a5e0-b1cdb78f703a" xlink:href="apei-20231231.xsd#apei_GoodwillImpairmentLossTaxEffect"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_apei_GoodwillImpairmentLossTaxEffect_81593866-e316-4125-a5e0-b1cdb78f703a" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_9c1d553f-b96d-4a3e-bb75-d8c5776695c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_9c1d553f-b96d-4a3e-bb75-d8c5776695c5" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_0f0446d1-8529-42d2-a9cc-8e2f25e24ef9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_0f0446d1-8529-42d2-a9cc-8e2f25e24ef9" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationConsiderationTransferredNetWorkingCapital_3d230f08-cc9b-4234-9cac-8343316e43a9" xlink:href="apei-20231231.xsd#apei_BusinessCombinationConsiderationTransferredNetWorkingCapital"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_apei_BusinessCombinationConsiderationTransferredNetWorkingCapital_3d230f08-cc9b-4234-9cac-8343316e43a9" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationConsiderationTransferredInitialPayment_d1de6591-7285-44b4-adf3-c53af42842d6" xlink:href="apei-20231231.xsd#apei_BusinessCombinationConsiderationTransferredInitialPayment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_apei_BusinessCombinationConsiderationTransferredInitialPayment_d1de6591-7285-44b4-adf3-c53af42842d6" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationConsiderationRetainedByAcquirer_8d39e6ed-403a-46cf-8493-b91bdc4a205a" xlink:href="apei-20231231.xsd#apei_BusinessCombinationConsiderationRetainedByAcquirer"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_apei_BusinessCombinationConsiderationRetainedByAcquirer_8d39e6ed-403a-46cf-8493-b91bdc4a205a" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_20907b6e-1c38-4978-8f2d-b31e3d738237" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_20907b6e-1c38-4978-8f2d-b31e3d738237" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_0d1b36f3-bac8-4494-8300-87b0a490e75f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_0d1b36f3-bac8-4494-8300-87b0a490e75f" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationBargainPurchaseGainRecognizedStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag_ef0a0313-80bc-4b4d-a475-b94a2d9006a4" xlink:href="apei-20231231.xsd#apei_BusinessCombinationBargainPurchaseGainRecognizedStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_0d1b36f3-bac8-4494-8300-87b0a490e75f" xlink:to="loc_apei_BusinessCombinationBargainPurchaseGainRecognizedStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag_ef0a0313-80bc-4b4d-a475-b94a2d9006a4" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentGainLoss_a07aa186-e381-42b9-8b79-9e920f21da98" xlink:href="apei-20231231.xsd#apei_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentGainLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_apei_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentGainLoss_a07aa186-e381-42b9-8b79-9e920f21da98" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_3d8809f7-97d2-4d45-b441-99270ca1bdf6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_75c982c4-ea78-4a15-8984-fb79a1f469e2" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_3d8809f7-97d2-4d45-b441-99270ca1bdf6" xlink:type="arc" order="13"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/AcquisitionActivityAssetsAcquiredandLiabilitiesDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#AcquisitionActivityAssetsAcquiredandLiabilitiesDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/AcquisitionActivityAssetsAcquiredandLiabilitiesDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_38f07b9b-a57b-4d72-adfa-835b18e48b87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_38f07b9b-a57b-4d72-adfa-835b18e48b87" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_a4782fd4-6691-4811-b243-3a2c1519e4c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_38f07b9b-a57b-4d72-adfa-835b18e48b87" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_a4782fd4-6691-4811-b243-3a2c1519e4c3" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a4782fd4-6691-4811-b243-3a2c1519e4c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a4782fd4-6691-4811-b243-3a2c1519e4c3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a4782fd4-6691-4811-b243-3a2c1519e4c3_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2b2621bb-718e-4221-a6ef-f9a72bd05a0a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a4782fd4-6691-4811-b243-3a2c1519e4c3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2b2621bb-718e-4221-a6ef-f9a72bd05a0a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenMember_ca55b7f3-6bef-4258-ae5f-b9dd99440bf1" xlink:href="apei-20231231.xsd#apei_RasmussenMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2b2621bb-718e-4221-a6ef-f9a72bd05a0a" xlink:to="loc_apei_RasmussenMember_ca55b7f3-6bef-4258-ae5f-b9dd99440bf1" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GraduateSchoolUSAMember_08eb4a86-6238-4712-860c-dfbbe21c78c5" xlink:href="apei-20231231.xsd#apei_GraduateSchoolUSAMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2b2621bb-718e-4221-a6ef-f9a72bd05a0a" xlink:to="loc_apei_GraduateSchoolUSAMember_08eb4a86-6238-4712-860c-dfbbe21c78c5" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_c64175ed-6d68-49a5-bf70-0580525c9268" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_c64175ed-6d68-49a5-bf70-0580525c9268" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationConsiderationTransferredWorkingCapitalAdjustment_e02e55ee-b247-42c3-9091-702c0bf6a58e" xlink:href="apei-20231231.xsd#apei_BusinessCombinationConsiderationTransferredWorkingCapitalAdjustment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_apei_BusinessCombinationConsiderationTransferredWorkingCapitalAdjustment_e02e55ee-b247-42c3-9091-702c0bf6a58e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_60b254ce-29c6-4f81-bd79-5fe2311bf9e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_60b254ce-29c6-4f81-bd79-5fe2311bf9e9" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationConsiderationTransferredNetOfWorkingCapitalAdjustments_b9236f2c-1de5-4a5e-91e3-24950ca978e1" xlink:href="apei-20231231.xsd#apei_BusinessCombinationConsiderationTransferredNetOfWorkingCapitalAdjustments"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_apei_BusinessCombinationConsiderationTransferredNetOfWorkingCapitalAdjustments_b9236f2c-1de5-4a5e-91e3-24950ca978e1" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_53b31e24-e599-442d-804a-cc12a1ca5093" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_53b31e24-e599-442d-804a-cc12a1ca5093" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_ff9f8ebc-b890-4707-87c2-0a392769c11c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_ff9f8ebc-b890-4707-87c2-0a392769c11c" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_3e844883-5ebd-4531-a88a-70861d5e3e7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_3e844883-5ebd-4531-a88a-70861d5e3e7f" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_a84df14b-75df-4da8-b08a-fa71a0042e06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_a84df14b-75df-4da8-b08a-fa71a0042e06" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseAssets_5bccd857-981c-4029-a9e3-fe9c16ebebea" xlink:href="apei-20231231.xsd#apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseAssets_5bccd857-981c-4029-a9e3-fe9c16ebebea" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets_641ac288-9a37-43cb-a6ca-0fbb7b30cc0c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets_641ac288-9a37-43cb-a6ca-0fbb7b30cc0c" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_13540458-3727-4696-81f7-923a856ff5c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_13540458-3727-4696-81f7-923a856ff5c8" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_75bae5ee-921f-4458-bf03-758b5843555c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_75bae5ee-921f-4458-bf03-758b5843555c" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_c6668c63-22ed-4365-8bdc-f9e894943c64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract_6f027f01-dcec-4f08-956d-d883b745342a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_c6668c63-22ed-4365-8bdc-f9e894943c64" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_c0645c54-919d-42c9-8028-ebf3d1b67523" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses_cf90bdc5-6320-4455-a22d-1f00c7a5e6c7" xlink:href="apei-20231231.xsd#apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_apei_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses_cf90bdc5-6320-4455-a22d-1f00c7a5e6c7" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_8f546911-90ed-4744-9abb-db1561763aaf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_8f546911-90ed-4744-9abb-db1561763aaf" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationCurrent_2335bfff-d779-49d8-bf55-a68167f5dc73" xlink:href="apei-20231231.xsd#apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationCurrent_2335bfff-d779-49d8-bf55-a68167f5dc73" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationNoncurrent_7a786893-ea28-4417-b28f-163c09f51687" xlink:href="apei-20231231.xsd#apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationNoncurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_apei_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedLeaseObligationNoncurrent_7a786893-ea28-4417-b28f-163c09f51687" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_87afbd74-7a45-4a35-9ad0-66a1d0f6a927" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_87afbd74-7a45-4a35-9ad0-66a1d0f6a927" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_31a43566-c865-426e-b7dd-92945aec6398" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_31a43566-c865-426e-b7dd-92945aec6398" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_87fb8a7e-32a3-43cc-bbf3-c5a06b9d2ad8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_87fb8a7e-32a3-43cc-bbf3-c5a06b9d2ad8" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_94a0b72f-e4d3-4eeb-a16a-d14db6b801e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_94a0b72f-e4d3-4eeb-a16a-d14db6b801e2" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_be06618f-d892-4362-bf02-6131ca657e75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_Goodwill_be06618f-d892-4362-bf02-6131ca657e75" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_150b499c-e77e-4312-ad44-11e7648e63c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract_a3fb7cd1-cc68-4751-bbbe-287d11b7114f" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_150b499c-e77e-4312-ad44-11e7648e63c5" xlink:type="arc" order="10"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/AcquisitionActivityScheduleofFairValueofIdentifiedIntangibleAssetsAcquiredDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#AcquisitionActivityScheduleofFairValueofIdentifiedIntangibleAssetsAcquiredDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/AcquisitionActivityScheduleofFairValueofIdentifiedIntangibleAssetsAcquiredDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d298e278-4227-4aed-9366-53d1502c23dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d298e278-4227-4aed-9366-53d1502c23dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_783d7703-4582-413f-abe1-7aeab62c409b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d298e278-4227-4aed-9366-53d1502c23dd" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_783d7703-4582-413f-abe1-7aeab62c409b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_783d7703-4582-413f-abe1-7aeab62c409b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_783d7703-4582-413f-abe1-7aeab62c409b" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_783d7703-4582-413f-abe1-7aeab62c409b_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_69bbe62e-35b2-479a-ac7a-556de3f25d13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_783d7703-4582-413f-abe1-7aeab62c409b" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_69bbe62e-35b2-479a-ac7a-556de3f25d13" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_d4b62efd-f9dd-49f6-b5e4-037002c3060d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TradeNamesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_69bbe62e-35b2-479a-ac7a-556de3f25d13" xlink:to="loc_us-gaap_TradeNamesMember_d4b62efd-f9dd-49f6-b5e4-037002c3060d" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationLicensingAndTitleFourMember_8283577c-a482-4c82-8316-025b0c42b878" xlink:href="apei-20231231.xsd#apei_AccreditationLicensingAndTitleFourMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_69bbe62e-35b2-479a-ac7a-556de3f25d13" xlink:to="loc_apei_AccreditationLicensingAndTitleFourMember_8283577c-a482-4c82-8316-025b0c42b878" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_badb70e5-42cb-450d-b304-09d5ceeb69bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d298e278-4227-4aed-9366-53d1502c23dd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_badb70e5-42cb-450d-b304-09d5ceeb69bd" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_badb70e5-42cb-450d-b304-09d5ceeb69bd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_badb70e5-42cb-450d-b304-09d5ceeb69bd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_badb70e5-42cb-450d-b304-09d5ceeb69bd_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_badb70e5-42cb-450d-b304-09d5ceeb69bd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StudentRosterMember_fef2a885-46c3-4b73-afb0-0fba60248bb4" xlink:href="apei-20231231.xsd#apei_StudentRosterMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_apei_StudentRosterMember_fef2a885-46c3-4b73-afb0-0fba60248bb4" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CurriculaMember_f005a13f-c7a7-4e42-b86d-e0f25571b803" xlink:href="apei-20231231.xsd#apei_CurriculaMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_apei_CurriculaMember_f005a13f-c7a7-4e42-b86d-e0f25571b803" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LeadConversionsMember_e701223a-48c5-4f5d-90a6-a07929721837" xlink:href="apei-20231231.xsd#apei_LeadConversionsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_apei_LeadConversionsMember_e701223a-48c5-4f5d-90a6-a07929721837" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CustomerContractsAndRelationshipsMember_f7325083-2978-44e1-9ddc-9e35a340074b" xlink:href="apei-20231231.xsd#apei_CustomerContractsAndRelationshipsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_apei_CustomerContractsAndRelationshipsMember_f7325083-2978-44e1-9ddc-9e35a340074b" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_ed5e43cf-50f2-4112-8127-0645bd149cd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TradeNamesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_us-gaap_TradeNamesMember_ed5e43cf-50f2-4112-8127-0645bd149cd9" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationLicensingAndTitleFourMember_33c0ceb1-05c3-4e16-ad42-38a12fd64140" xlink:href="apei-20231231.xsd#apei_AccreditationLicensingAndTitleFourMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_c96aa418-f911-4e15-b3dd-1a3eb099a328" xlink:to="loc_apei_AccreditationLicensingAndTitleFourMember_33c0ceb1-05c3-4e16-ad42-38a12fd64140" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_454f7cfd-b124-4bf0-af52-c37e47d6f4a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_454f7cfd-b124-4bf0-af52-c37e47d6f4a0" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_7ce34680-2a09-4601-aed0-218252894a21" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_7ce34680-2a09-4601-aed0-218252894a21" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_2e7acad9-45d5-4b3c-bb45-89fe291fe4d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_2e7acad9-45d5-4b3c-bb45-89fe291fe4d8" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_87f6b26d-d3e5-486d-97ec-e4f9de6a2ba0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_e83f703d-ed71-45e7-bc44-016188b71417" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_87f6b26d-d3e5-486d-97ec-e4f9de6a2ba0" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/AcquisitionActivityProFormaFinancialInformationDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#AcquisitionActivityProFormaFinancialInformationDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/AcquisitionActivityProFormaFinancialInformationDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_5dc064f1-aa89-4b6a-b33a-341399b4fb91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d98758c1-54e0-4389-b942-012a125bf6e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5dc064f1-aa89-4b6a-b33a-341399b4fb91" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d98758c1-54e0-4389-b942-012a125bf6e0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_a38dc644-4b95-4156-9786-e8a3fb7e63a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_d98758c1-54e0-4389-b942-012a125bf6e0" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_a38dc644-4b95-4156-9786-e8a3fb7e63a4" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a38dc644-4b95-4156-9786-e8a3fb7e63a4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a38dc644-4b95-4156-9786-e8a3fb7e63a4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_a38dc644-4b95-4156-9786-e8a3fb7e63a4_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_484ddfe8-b88d-4943-a619-f0df859170e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_a38dc644-4b95-4156-9786-e8a3fb7e63a4" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_484ddfe8-b88d-4943-a619-f0df859170e1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenMember_ef2917ec-6ea3-4bd1-a284-e187efd76e52" xlink:href="apei-20231231.xsd#apei_RasmussenMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_484ddfe8-b88d-4943-a619-f0df859170e1" xlink:to="loc_apei_RasmussenMember_ef2917ec-6ea3-4bd1-a284-e187efd76e52" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_ccdfde71-54f0-4bef-a563-dcada72b5103" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5dc064f1-aa89-4b6a-b33a-341399b4fb91" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_ccdfde71-54f0-4bef-a563-dcada72b5103" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_0c3589d4-1d63-46a6-8da9-39f22e4bcde6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5dc064f1-aa89-4b6a-b33a-341399b4fb91" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_0c3589d4-1d63-46a6-8da9-39f22e4bcde6" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/RevenueNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#RevenueNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/RevenueNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:to="loc_srt_ProductOrServiceAxis_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e" xlink:to="loc_srt_ProductsAndServicesDomain_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_c03cc9b3-f0f2-49bb-8cf1-26ec2bff1563" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_bc2d5ce8-43a9-4ee7-99f7-e2fdbda82f1e" xlink:to="loc_srt_ProductsAndServicesDomain_c03cc9b3-f0f2-49bb-8cf1-26ec2bff1563" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_InstructionalServicesNetOfGrantsAndScholarshipsMember_8df346f1-583c-4e0f-9f9c-5daf3ede7a4c" xlink:href="apei-20231231.xsd#apei_InstructionalServicesNetOfGrantsAndScholarshipsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_c03cc9b3-f0f2-49bb-8cf1-26ec2bff1563" xlink:to="loc_apei_InstructionalServicesNetOfGrantsAndScholarshipsMember_8df346f1-583c-4e0f-9f9c-5daf3ede7a4c" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TextbookAndOtherCourseMaterialsMember_e4d53852-d658-4055-b309-4ef31a19c5d5" xlink:href="apei-20231231.xsd#apei_TextbookAndOtherCourseMaterialsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_c03cc9b3-f0f2-49bb-8cf1-26ec2bff1563" xlink:to="loc_apei_TextbookAndOtherCourseMaterialsMember_e4d53852-d658-4055-b309-4ef31a19c5d5" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8741eded-9626-42d9-b6e0-c2ca9ed67cb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8741eded-9626-42d9-b6e0-c2ca9ed67cb7" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8741eded-9626-42d9-b6e0-c2ca9ed67cb7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8741eded-9626-42d9-b6e0-c2ca9ed67cb7" xlink:to="loc_us-gaap_SegmentDomain_8741eded-9626-42d9-b6e0-c2ca9ed67cb7_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_13910042-a382-417f-bb45-33d1e45ca67d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8741eded-9626-42d9-b6e0-c2ca9ed67cb7" xlink:to="loc_us-gaap_SegmentDomain_13910042-a382-417f-bb45-33d1e45ca67d" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_c49f778c-fb8c-416d-a192-a307f4b32ec0" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13910042-a382-417f-bb45-33d1e45ca67d" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_c49f778c-fb8c-416d-a192-a307f4b32ec0" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversityMember_94e9e293-3de5-4157-b5bd-5d8ee139c3ee" xlink:href="apei-20231231.xsd#apei_RasmussenUniversityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13910042-a382-417f-bb45-33d1e45ca67d" xlink:to="loc_apei_RasmussenUniversityMember_94e9e293-3de5-4157-b5bd-5d8ee139c3ee" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_d0e1b49e-19f5-474b-9cc4-94140883f2de" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13910042-a382-417f-bb45-33d1e45ca67d" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_d0e1b49e-19f5-474b-9cc4-94140883f2de" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationAxis_60428a1e-69ed-468b-80da-56a370111749" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:to="loc_us-gaap_ContractWithCustomerDurationAxis_60428a1e-69ed-468b-80da-56a370111749" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_60428a1e-69ed-468b-80da-56a370111749_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_60428a1e-69ed-468b-80da-56a370111749" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_60428a1e-69ed-468b-80da-56a370111749_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_cd5408dc-d139-4fdf-afc7-60b7dad7c135" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerDurationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_60428a1e-69ed-468b-80da-56a370111749" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_cd5408dc-d139-4fdf-afc7-60b7dad7c135" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_FutureCoursesMember_d8fef26a-942d-4791-b22d-198c029b92cd" xlink:href="apei-20231231.xsd#apei_FutureCoursesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_cd5408dc-d139-4fdf-afc7-60b7dad7c135" xlink:to="loc_apei_FutureCoursesMember_d8fef26a-942d-4791-b22d-198c029b92cd" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CoursesInProgressMember_8e275d03-9ed8-4ee1-87be-0c563b3e67f0" xlink:href="apei-20231231.xsd#apei_CoursesInProgressMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_cd5408dc-d139-4fdf-afc7-60b7dad7c135" xlink:to="loc_apei_CoursesInProgressMember_8e275d03-9ed8-4ee1-87be-0c563b3e67f0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_fbc54a14-76b3-4d19-87e5-4fcf825e5241" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_82b48314-5282-4d74-9cb1-3ff2fa9c4a4e" xlink:to="loc_srt_RangeAxis_fbc54a14-76b3-4d19-87e5-4fcf825e5241" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fbc54a14-76b3-4d19-87e5-4fcf825e5241_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_fbc54a14-76b3-4d19-87e5-4fcf825e5241" xlink:to="loc_srt_RangeMember_fbc54a14-76b3-4d19-87e5-4fcf825e5241_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c1efa6c2-25e5-4295-948d-761af1dfc1f6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_fbc54a14-76b3-4d19-87e5-4fcf825e5241" xlink:to="loc_srt_RangeMember_c1efa6c2-25e5-4295-948d-761af1dfc1f6" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_b24a3818-6365-42ca-8c3d-0be13df0e25d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c1efa6c2-25e5-4295-948d-761af1dfc1f6" xlink:to="loc_srt_MinimumMember_b24a3818-6365-42ca-8c3d-0be13df0e25d" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ffe157ad-43dd-4a05-bd39-25f009c8f022" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c1efa6c2-25e5-4295-948d-761af1dfc1f6" xlink:to="loc_srt_MaximumMember_ffe157ad-43dd-4a05-bd39-25f009c8f022" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RevenueRecognizedTerm_7e47c358-b2ef-4fdd-a811-b783a4d6a3c9" xlink:href="apei-20231231.xsd#apei_RevenueRecognizedTerm"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_apei_RevenueRecognizedTerm_7e47c358-b2ef-4fdd-a811-b783a4d6a3c9" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_NumberOfDaysOfBillDateToReceivePayment_bf3c1820-cf3f-4b55-89e9-2daae6703552" xlink:href="apei-20231231.xsd#apei_NumberOfDaysOfBillDateToReceivePayment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_apei_NumberOfDaysOfBillDateToReceivePayment_bf3c1820-cf3f-4b55-89e9-2daae6703552" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GraduationFeePerDegree_94a8abf7-71d0-4be5-ae1c-2ecf97d27fcd" xlink:href="apei-20231231.xsd#apei_GraduationFeePerDegree"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_apei_GraduationFeePerDegree_94a8abf7-71d0-4be5-ae1c-2ecf97d27fcd" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_24bf4cc7-c394-4ef1-8eb6-9c8589f70c35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerAssetNet"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_24bf4cc7-c394-4ef1-8eb6-9c8589f70c35" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d2b0a3c5-3d6b-4f06-aedb-7ccdca373650" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d2b0a3c5-3d6b-4f06-aedb-7ccdca373650" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_66d8e72a-1edd-4c25-9cfb-c0030382f512" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueRemainingPerformanceObligation"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_66d8e72a-1edd-4c25-9cfb-c0030382f512" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerRefundLiability_47d175f8-be67-4079-b821-b0631d106b97" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerRefundLiability"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_da91ad5f-81d9-4197-b35c-adb3abe443eb" xlink:to="loc_us-gaap_ContractWithCustomerRefundLiability_47d175f8-be67-4079-b821-b0631d106b97" xlink:type="arc" order="6"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#RevenueDisaggregationofRevenueDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/RevenueDisaggregationofRevenueDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_b1e3ed4a-a4bc-4536-a2a9-0b7c67bd5795" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_6d0bb391-86d8-4acc-841a-27cff0972da5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b1e3ed4a-a4bc-4536-a2a9-0b7c67bd5795" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_6d0bb391-86d8-4acc-841a-27cff0972da5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_897ee491-5841-4076-9ddf-33234e94c1ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_6d0bb391-86d8-4acc-841a-27cff0972da5" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_897ee491-5841-4076-9ddf-33234e94c1ee" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_897ee491-5841-4076-9ddf-33234e94c1ee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_897ee491-5841-4076-9ddf-33234e94c1ee" xlink:to="loc_us-gaap_SegmentDomain_897ee491-5841-4076-9ddf-33234e94c1ee_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a2f050fc-f96e-45b2-8fe9-225ae1c5578a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_897ee491-5841-4076-9ddf-33234e94c1ee" xlink:to="loc_us-gaap_SegmentDomain_a2f050fc-f96e-45b2-8fe9-225ae1c5578a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_c8160008-2274-4363-83c2-f6799e18e8f1" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a2f050fc-f96e-45b2-8fe9-225ae1c5578a" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_c8160008-2274-4363-83c2-f6799e18e8f1" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversityMember_0f0a076e-7e11-419d-8989-6403b64c85fb" xlink:href="apei-20231231.xsd#apei_RasmussenUniversityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a2f050fc-f96e-45b2-8fe9-225ae1c5578a" xlink:to="loc_apei_RasmussenUniversityMember_0f0a076e-7e11-419d-8989-6403b64c85fb" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_77ef85ad-fe13-413d-9037-8781749a254a" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a2f050fc-f96e-45b2-8fe9-225ae1c5578a" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_77ef85ad-fe13-413d-9037-8781749a254a" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_6d0bb391-86d8-4acc-841a-27cff0972da5" xlink:to="loc_srt_ConsolidationItemsAxis_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca" xlink:to="loc_srt_ConsolidationItemsDomain_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_bc4d54e9-a2ac-4a5d-bae0-8869131c0291" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_7b5b2443-e2ba-461e-b173-b14b9bf1b4ca" xlink:to="loc_srt_ConsolidationItemsDomain_bc4d54e9-a2ac-4a5d-bae0-8869131c0291" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_5ebd8cda-d2bb-41b1-b072-06d5597254e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_bc4d54e9-a2ac-4a5d-bae0-8869131c0291" xlink:to="loc_us-gaap_OperatingSegmentsMember_5ebd8cda-d2bb-41b1-b072-06d5597254e3" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_c8333b16-e278-4110-b2e1-50280d934b18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntersegmentEliminationMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_bc4d54e9-a2ac-4a5d-bae0-8869131c0291" xlink:to="loc_us-gaap_IntersegmentEliminationMember_c8333b16-e278-4110-b2e1-50280d934b18" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_62ba6250-3416-4615-bd88-57d9cc22fd35" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_6d0bb391-86d8-4acc-841a-27cff0972da5" xlink:to="loc_srt_ProductOrServiceAxis_62ba6250-3416-4615-bd88-57d9cc22fd35" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_62ba6250-3416-4615-bd88-57d9cc22fd35_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_62ba6250-3416-4615-bd88-57d9cc22fd35" xlink:to="loc_srt_ProductsAndServicesDomain_62ba6250-3416-4615-bd88-57d9cc22fd35_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_62ba6250-3416-4615-bd88-57d9cc22fd35" xlink:to="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_InstructionalServicesNetOfGrantsAndScholarshipsMember_e4721816-4168-466b-aef7-c1c720d3a613" xlink:href="apei-20231231.xsd#apei_InstructionalServicesNetOfGrantsAndScholarshipsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:to="loc_apei_InstructionalServicesNetOfGrantsAndScholarshipsMember_e4721816-4168-466b-aef7-c1c720d3a613" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GraduationFeesMember_61dac02e-7951-44d0-9392-8cc86b88b63f" xlink:href="apei-20231231.xsd#apei_GraduationFeesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:to="loc_apei_GraduationFeesMember_61dac02e-7951-44d0-9392-8cc86b88b63f" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TextbookAndOtherCourseMaterialsMember_3e559ff1-4d21-4a81-b104-e2dd9de9b574" xlink:href="apei-20231231.xsd#apei_TextbookAndOtherCourseMaterialsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:to="loc_apei_TextbookAndOtherCourseMaterialsMember_3e559ff1-4d21-4a81-b104-e2dd9de9b574" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_OtherFeesMember_9343fb8e-d776-4af6-9837-b934acf1603f" xlink:href="apei-20231231.xsd#apei_OtherFeesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eadf9c61-6130-4bcd-8c40-e64ba2297952" xlink:to="loc_apei_OtherFeesMember_9343fb8e-d776-4af6-9837-b934acf1603f" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_15d547c9-27c9-497c-952d-00f8d98117ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b1e3ed4a-a4bc-4536-a2a9-0b7c67bd5795" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_15d547c9-27c9-497c-952d-00f8d98117ce" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#PropertyandEquipmentScheduleofPropertyandEquipmentDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_233626aa-ce9f-47c8-a789-8cc3112871fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_233626aa-ce9f-47c8-a789-8cc3112871fa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7edf4348-ce3e-407b-b3e3-635ae6a19281" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_233626aa-ce9f-47c8-a789-8cc3112871fa" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7edf4348-ce3e-407b-b3e3-635ae6a19281" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7edf4348-ce3e-407b-b3e3-635ae6a19281_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7edf4348-ce3e-407b-b3e3-635ae6a19281" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_7edf4348-ce3e-407b-b3e3-635ae6a19281_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_7edf4348-ce3e-407b-b3e3-635ae6a19281" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_c4a151ef-7d55-4181-9a31-882087c0a9bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_LandMember_c4a151ef-7d55-4181-9a31-882087c0a9bd" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_079055e4-a7d7-47b4-bfc2-5d2ec3158de2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_079055e4-a7d7-47b4-bfc2-5d2ec3158de2" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_e36ca171-3d27-44ca-a47c-269eafb4e42e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseholdImprovementsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_e36ca171-3d27-44ca-a47c-269eafb4e42e" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeEquipmentMember_352eea18-afbc-4275-80e8-68414f9c93a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OfficeEquipmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_OfficeEquipmentMember_352eea18-afbc-4275-80e8-68414f9c93a1" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_3fb30f96-e67e-40b3-ac04-368631724742" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComputerEquipmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_ComputerEquipmentMember_3fb30f96-e67e-40b3-ac04-368631724742" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_f0d24100-9525-4dda-8df9-ebcaa4839649" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FurnitureAndFixturesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_f0d24100-9525-4dda-8df9-ebcaa4839649" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCapitalizedPropertyPlantAndEquipmentMember_0bd9ad53-7d89-4755-bbbf-9afd00e1be50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCapitalizedPropertyPlantAndEquipmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_OtherCapitalizedPropertyPlantAndEquipmentMember_0bd9ad53-7d89-4755-bbbf-9afd00e1be50" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_6cc69bf3-6b5f-40b1-a26b-34ac858815ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SoftwareDevelopmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_6cc69bf3-6b5f-40b1-a26b-34ac858815ab" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_ProgramDevelopmentMember_1ddc0cde-1cce-4173-aacc-13d2a4e49b41" xlink:href="apei-20231231.xsd#apei_ProgramDevelopmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_04a89a8d-404a-4c50-8e56-f64db801d916" xlink:to="loc_apei_ProgramDevelopmentMember_1ddc0cde-1cce-4173-aacc-13d2a4e49b41" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_5a8e2eb0-9068-4f85-aff9-fe18586f7115" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_233626aa-ce9f-47c8-a789-8cc3112871fa" xlink:to="loc_srt_RangeAxis_5a8e2eb0-9068-4f85-aff9-fe18586f7115" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5a8e2eb0-9068-4f85-aff9-fe18586f7115_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5a8e2eb0-9068-4f85-aff9-fe18586f7115" xlink:to="loc_srt_RangeMember_5a8e2eb0-9068-4f85-aff9-fe18586f7115_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9832c98b-5145-473f-aab6-10d68feb1d61" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5a8e2eb0-9068-4f85-aff9-fe18586f7115" xlink:to="loc_srt_RangeMember_9832c98b-5145-473f-aab6-10d68feb1d61" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_20a463af-aa20-42e3-bca4-365493285ddb" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9832c98b-5145-473f-aab6-10d68feb1d61" xlink:to="loc_srt_MinimumMember_20a463af-aa20-42e3-bca4-365493285ddb" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_4b80ccff-9dc1-4540-9e16-759f3cba3853" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9832c98b-5145-473f-aab6-10d68feb1d61" xlink:to="loc_srt_MaximumMember_4b80ccff-9dc1-4540-9e16-759f3cba3853" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_fa58446f-2ae6-4329-aaaf-6959cdbdb93f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_fa58446f-2ae6-4329-aaaf-6959cdbdb93f" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1b24fdab-098d-4e4f-b453-f7d9e3239fb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_1b24fdab-098d-4e4f-b453-f7d9e3239fb0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f634bf89-ac03-479a-a917-3b9291be1ced" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f634bf89-ac03-479a-a917-3b9291be1ced" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_abd1065a-36a3-47b7-93be-0eecfca645d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ba69284b-518c-423e-86a4-0882ec8103a6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_abd1065a-36a3-47b7-93be-0eecfca645d0" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/PropertyandEquipmentNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#PropertyandEquipmentNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/PropertyandEquipmentNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_5d4370e9-c680-48fe-9023-ab5a7df23c7d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_2b5998e6-677a-4ce7-a7fd-18f8c8599836" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_5d4370e9-c680-48fe-9023-ab5a7df23c7d" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_2b5998e6-677a-4ce7-a7fd-18f8c8599836" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3e363bc1-f737-4822-9670-49213bab8997" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_2b5998e6-677a-4ce7-a7fd-18f8c8599836" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3e363bc1-f737-4822-9670-49213bab8997" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3e363bc1-f737-4822-9670-49213bab8997_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3e363bc1-f737-4822-9670-49213bab8997" xlink:to="loc_us-gaap_SegmentDomain_3e363bc1-f737-4822-9670-49213bab8997_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_941c2a86-8c26-47c8-a930-6ea3dcbbcc71" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3e363bc1-f737-4822-9670-49213bab8997" xlink:to="loc_us-gaap_SegmentDomain_941c2a86-8c26-47c8-a930-6ea3dcbbcc71" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_115e9964-1869-4879-b090-7f72f25ba354" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_941c2a86-8c26-47c8-a930-6ea3dcbbcc71" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_115e9964-1869-4879-b090-7f72f25ba354" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_7eb3e497-e924-4a7e-be82-4a990676d300" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_5d4370e9-c680-48fe-9023-ab5a7df23c7d" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_7eb3e497-e924-4a7e-be82-4a990676d300" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRealEstateAndRealEstateJointVentures_4d9da591-2118-4f31-b201-4472b2aad16d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromRealEstateAndRealEstateJointVentures"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_5d4370e9-c680-48fe-9023-ab5a7df23c7d" xlink:to="loc_us-gaap_ProceedsFromRealEstateAndRealEstateJointVentures_4d9da591-2118-4f31-b201-4472b2aad16d" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_1369ad2b-0077-4bdd-a348-1ad19b1d074a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_5d4370e9-c680-48fe-9023-ab5a7df23c7d" xlink:to="loc_us-gaap_Depreciation_1369ad2b-0077-4bdd-a348-1ad19b1d074a" xlink:type="arc" order="2"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#GoodwillandIntangibleAssetsNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_c6532868-1ccd-49e5-8749-d70ab2133689" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_c6532868-1ccd-49e5-8749-d70ab2133689" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_3a0a4231-3232-41bc-8d80-374764ddca9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_c6532868-1ccd-49e5-8749-d70ab2133689" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3a0a4231-3232-41bc-8d80-374764ddca9a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3a0a4231-3232-41bc-8d80-374764ddca9a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3a0a4231-3232-41bc-8d80-374764ddca9a" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3a0a4231-3232-41bc-8d80-374764ddca9a_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_12092fad-8d9c-4441-b8aa-34077ee221a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3a0a4231-3232-41bc-8d80-374764ddca9a" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_12092fad-8d9c-4441-b8aa-34077ee221a1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_1b3c1f09-4645-460b-9738-f9bf26a4de4b" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_12092fad-8d9c-4441-b8aa-34077ee221a1" xlink:to="loc_apei_RasmussenUniversitySegmentMember_1b3c1f09-4645-460b-9738-f9bf26a4de4b" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_e947f5e2-6479-4fdf-9966-d800a4fcda0b" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_12092fad-8d9c-4441-b8aa-34077ee221a1" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_e947f5e2-6479-4fdf-9966-d800a4fcda0b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GraduateSchoolUSAMember_0239ecec-a772-43b1-a7c4-2be4fc83eaaa" xlink:href="apei-20231231.xsd#apei_GraduateSchoolUSAMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_12092fad-8d9c-4441-b8aa-34077ee221a1" xlink:to="loc_apei_GraduateSchoolUSAMember_0239ecec-a772-43b1-a7c4-2be4fc83eaaa" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_954e7822-552b-42dc-bc08-2d7bc3ae4ddb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_c6532868-1ccd-49e5-8749-d70ab2133689" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_954e7822-552b-42dc-bc08-2d7bc3ae4ddb" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_954e7822-552b-42dc-bc08-2d7bc3ae4ddb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_954e7822-552b-42dc-bc08-2d7bc3ae4ddb" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_954e7822-552b-42dc-bc08-2d7bc3ae4ddb_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_940d9953-371e-4510-8f07-44962d234114" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_954e7822-552b-42dc-bc08-2d7bc3ae4ddb" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_940d9953-371e-4510-8f07-44962d234114" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationLicensingAndTitleFourMember_7a223d92-9422-4555-b958-2da3fe822450" xlink:href="apei-20231231.xsd#apei_AccreditationLicensingAndTitleFourMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_940d9953-371e-4510-8f07-44962d234114" xlink:to="loc_apei_AccreditationLicensingAndTitleFourMember_7a223d92-9422-4555-b958-2da3fe822450" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_1014c8d8-bc41-44d6-afff-56b06a2a2396" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TradeNamesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_940d9953-371e-4510-8f07-44962d234114" xlink:to="loc_us-gaap_TradeNamesMember_1014c8d8-bc41-44d6-afff-56b06a2a2396" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_09218671-6dc5-4e89-ba71-c4f968dc00a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_Goodwill_09218671-6dc5-4e89-ba71-c4f968dc00a1" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_55d08faf-7323-4d1c-99e3-9a7d6b61d10a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillImpairmentLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_55d08faf-7323-4d1c-99e3-9a7d6b61d10a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_GoodwillImpairmentLossTaxEffect_0cf7bacf-b997-4687-87f7-0064a55a6b18" xlink:href="apei-20231231.xsd#apei_GoodwillImpairmentLossTaxEffect"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_apei_GoodwillImpairmentLossTaxEffect_0cf7bacf-b997-4687-87f7-0064a55a6b18" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_47fc0072-5865-4f24-8ec8-5f6c2a84fcc1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_ReportingUnitAmountOfFairValueInExcessOfCarryingAmount_47fc0072-5865-4f24-8ec8-5f6c2a84fcc1" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_0c0ffafe-e86f-49cf-bb90-000c7a3ab45e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_ReportingUnitPercentageOfFairValueInExcessOfCarryingAmount_0c0ffafe-e86f-49cf-bb90-000c7a3ab45e" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_204bd26e-6cec-46fc-9136-ff2dc45df31b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_204bd26e-6cec-46fc-9136-ff2dc45df31b" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_34dfc758-d706-42c2-9083-cb40657c1d49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_34dfc758-d706-42c2-9083-cb40657c1d49" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_caa9b187-18b9-4948-b114-28dab9d9d18b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_caa9b187-18b9-4948-b114-28dab9d9d18b" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwillFairValueDisclosure_ec755bb9-f734-4f96-ae60-4187c0eb140b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwillFairValueDisclosure"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwillFairValueDisclosure_ec755bb9-f734-4f96-ae60-4187c0eb140b" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_9cd4aa4f-78fc-4507-8e05-7854c59086bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_9cd4aa4f-78fc-4507-8e05-7854c59086bd" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_0b1f9582-26cc-4157-b635-7c0c21f9381f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_53ee77e7-811b-437a-9fc4-5d2f68945765" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_0b1f9582-26cc-4157-b635-7c0c21f9381f" xlink:type="arc" order="10"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofChangesinCarryingAmountofGoodwillbyReportableSegmentDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#GoodwillandIntangibleAssetsScheduleofChangesinCarryingAmountofGoodwillbyReportableSegmentDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofChangesinCarryingAmountofGoodwillbyReportableSegmentDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_a050ee5c-80de-49a5-98c0-c8d0b0bf1366" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_f040bcfc-129c-49a8-9172-53513d9b73a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_a050ee5c-80de-49a5-98c0-c8d0b0bf1366" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_f040bcfc-129c-49a8-9172-53513d9b73a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_30ee1db4-c1d7-4a83-83c6-e9fbad065910" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_f040bcfc-129c-49a8-9172-53513d9b73a3" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_30ee1db4-c1d7-4a83-83c6-e9fbad065910" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_30ee1db4-c1d7-4a83-83c6-e9fbad065910_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_30ee1db4-c1d7-4a83-83c6-e9fbad065910" xlink:to="loc_us-gaap_SegmentDomain_30ee1db4-c1d7-4a83-83c6-e9fbad065910_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b7e2f464-1a2f-417d-ab7c-b177ab6d809e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_30ee1db4-c1d7-4a83-83c6-e9fbad065910" xlink:to="loc_us-gaap_SegmentDomain_b7e2f464-1a2f-417d-ab7c-b177ab6d809e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicUniversitySystemSegmentMember_457218f9-71c2-4e45-b144-ac9eb7bae0a5" xlink:href="apei-20231231.xsd#apei_AmericanPublicUniversitySystemSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_b7e2f464-1a2f-417d-ab7c-b177ab6d809e" xlink:to="loc_apei_AmericanPublicUniversitySystemSegmentMember_457218f9-71c2-4e45-b144-ac9eb7bae0a5" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_b1404ad5-50a0-421e-a5aa-3bf7ea03ef54" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_b7e2f464-1a2f-417d-ab7c-b177ab6d809e" xlink:to="loc_apei_RasmussenUniversitySegmentMember_b1404ad5-50a0-421e-a5aa-3bf7ea03ef54" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_d74ef8d9-8e36-4394-8e70-044b52cbc68a" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_b7e2f464-1a2f-417d-ab7c-b177ab6d809e" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_d74ef8d9-8e36-4394-8e70-044b52cbc68a" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillRollForward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_a050ee5c-80de-49a5-98c0-c8d0b0bf1366" xlink:to="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_f4eab3a1-47eb-42d9-b105-1c4f8285a15a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:to="loc_us-gaap_Goodwill_f4eab3a1-47eb-42d9-b105-1c4f8285a15a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_abc6f987-d83f-462c-b6ca-804207c9084a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_abc6f987-d83f-462c-b6ca-804207c9084a" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_93a89ec4-6958-4a83-b323-9bb65f468d38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillImpairmentLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_93a89ec4-6958-4a83-b323-9bb65f468d38" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_9f6a07ee-504c-474d-bfd8-a1b918b82dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_0410da99-385e-4fde-9daf-e4accb63c159" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_9f6a07ee-504c-474d-bfd8-a1b918b82dc7" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_68625030-cd1b-4ca1-bf42-ae0c1372a18f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofIdentifiedIntangibleAssetswithDefiniteLifeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#GoodwillandIntangibleAssetsScheduleofIdentifiedIntangibleAssetswithDefiniteLifeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofIdentifiedIntangibleAssetswithDefiniteLifeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6ff420be-e3b0-4512-a0cd-d0db83316c29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11f222c2-baa1-447d-b0df-efa32e81b1fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6ff420be-e3b0-4512-a0cd-d0db83316c29" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11f222c2-baa1-447d-b0df-efa32e81b1fc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_45808059-cee8-48c5-bb47-23fd3092c5f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11f222c2-baa1-447d-b0df-efa32e81b1fc" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_45808059-cee8-48c5-bb47-23fd3092c5f4" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_45808059-cee8-48c5-bb47-23fd3092c5f4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_45808059-cee8-48c5-bb47-23fd3092c5f4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_45808059-cee8-48c5-bb47-23fd3092c5f4_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_45808059-cee8-48c5-bb47-23fd3092c5f4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StudentRelationshipsMember_1822e0dd-c2a2-42ba-a45d-a0540bd9153b" xlink:href="apei-20231231.xsd#apei_StudentRelationshipsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_StudentRelationshipsMember_1822e0dd-c2a2-42ba-a45d-a0540bd9153b" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_7a2e42eb-8927-4122-b262-12d1e726b349" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoncompeteAgreementsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_7a2e42eb-8927-4122-b262-12d1e726b349" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CurriculaMember_982982f0-d50a-4c4a-9a21-5b5763a2dd30" xlink:href="apei-20231231.xsd#apei_CurriculaMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_CurriculaMember_982982f0-d50a-4c4a-9a21-5b5763a2dd30" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationAndLicensesMember_6adf8045-9428-49f8-affe-58eaac9fdd86" xlink:href="apei-20231231.xsd#apei_AccreditationAndLicensesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_AccreditationAndLicensesMember_6adf8045-9428-49f8-affe-58eaac9fdd86" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LeadConversionsMember_ce11465b-baa0-43f8-a172-12e017babc9f" xlink:href="apei-20231231.xsd#apei_LeadConversionsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_LeadConversionsMember_ce11465b-baa0-43f8-a172-12e017babc9f" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StudentRosterMember_162c48be-32fc-4633-bd9d-dac0da8f9aa8" xlink:href="apei-20231231.xsd#apei_StudentRosterMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_StudentRosterMember_162c48be-32fc-4633-bd9d-dac0da8f9aa8" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TradenameMember_4339088d-de98-4691-8695-09536d1141aa" xlink:href="apei-20231231.xsd#apei_TradenameMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_be6b2873-1b94-489f-b926-37d114566ee5" xlink:to="loc_apei_TradenameMember_4339088d-de98-4691-8695-09536d1141aa" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ee786d6d-0b68-4079-93d8-5c4da03a5f55" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11f222c2-baa1-447d-b0df-efa32e81b1fc" xlink:to="loc_srt_RangeAxis_ee786d6d-0b68-4079-93d8-5c4da03a5f55" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ee786d6d-0b68-4079-93d8-5c4da03a5f55_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ee786d6d-0b68-4079-93d8-5c4da03a5f55" xlink:to="loc_srt_RangeMember_ee786d6d-0b68-4079-93d8-5c4da03a5f55_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b6d7ebcb-7a1c-496e-b24c-87251e38039f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ee786d6d-0b68-4079-93d8-5c4da03a5f55" xlink:to="loc_srt_RangeMember_b6d7ebcb-7a1c-496e-b24c-87251e38039f" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_ce8dee19-98f9-45aa-b4c7-d7a8a15f9cfb" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b6d7ebcb-7a1c-496e-b24c-87251e38039f" xlink:to="loc_srt_MinimumMember_ce8dee19-98f9-45aa-b4c7-d7a8a15f9cfb" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_544c2658-4bcc-4ae4-81e5-2836d6919bbc" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b6d7ebcb-7a1c-496e-b24c-87251e38039f" xlink:to="loc_srt_MaximumMember_544c2658-4bcc-4ae4-81e5-2836d6919bbc" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_b16041be-3574-4f77-a0b3-59e4447fd287" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_6ff420be-e3b0-4512-a0cd-d0db83316c29" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_b16041be-3574-4f77-a0b3-59e4447fd287" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#GoodwillandIntangibleAssetsScheduleofOtherIntangibleAssetsDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/GoodwillandIntangibleAssetsScheduleofOtherIntangibleAssetsDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7591cea1-75eb-4d97-9e9a-0d033deca665" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c201d181-32ff-4e9a-98ef-32634e30b22e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7591cea1-75eb-4d97-9e9a-0d033deca665" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c201d181-32ff-4e9a-98ef-32634e30b22e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1582ee14-63aa-404c-88a0-2a86fd2babcf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c201d181-32ff-4e9a-98ef-32634e30b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1582ee14-63aa-404c-88a0-2a86fd2babcf" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1582ee14-63aa-404c-88a0-2a86fd2babcf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1582ee14-63aa-404c-88a0-2a86fd2babcf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1582ee14-63aa-404c-88a0-2a86fd2babcf_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1582ee14-63aa-404c-88a0-2a86fd2babcf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StudentRosterMember_244d09b3-41db-4cc4-9a3c-3398dc6a2e02" xlink:href="apei-20231231.xsd#apei_StudentRosterMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_StudentRosterMember_244d09b3-41db-4cc4-9a3c-3398dc6a2e02" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CurriculaMember_4fd92eec-640b-4b5b-8dd8-c8ecdd96f3d3" xlink:href="apei-20231231.xsd#apei_CurriculaMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_CurriculaMember_4fd92eec-640b-4b5b-8dd8-c8ecdd96f3d3" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StudentRelationshipsMember_5244dbdf-335b-4bc5-9e4d-aaaef4f45883" xlink:href="apei-20231231.xsd#apei_StudentRelationshipsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_StudentRelationshipsMember_5244dbdf-335b-4bc5-9e4d-aaaef4f45883" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LeadConversionsMember_c9a37031-0044-4715-b079-d0d9c42b2633" xlink:href="apei-20231231.xsd#apei_LeadConversionsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_LeadConversionsMember_c9a37031-0044-4715-b079-d0d9c42b2633" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_352387f3-b630-41a4-92a4-eb2910f8e7f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoncompeteAgreementsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_352387f3-b630-41a4-92a4-eb2910f8e7f1" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TradenameMember_ffa5092d-be05-4fb7-8e5a-fb4807feb04b" xlink:href="apei-20231231.xsd#apei_TradenameMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_TradenameMember_ffa5092d-be05-4fb7-8e5a-fb4807feb04b" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationAndLicensesMember_247b0780-2e0f-4da7-a536-bad5b5b5b3c4" xlink:href="apei-20231231.xsd#apei_AccreditationAndLicensesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_57e2d152-7102-4d50-83d6-c02f28690b50" xlink:to="loc_apei_AccreditationAndLicensesMember_247b0780-2e0f-4da7-a536-bad5b5b5b3c4" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_66d74892-fb86-42a2-9065-1e1729b25e62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c201d181-32ff-4e9a-98ef-32634e30b22e" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_66d74892-fb86-42a2-9065-1e1729b25e62" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_66d74892-fb86-42a2-9065-1e1729b25e62_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_66d74892-fb86-42a2-9065-1e1729b25e62" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_66d74892-fb86-42a2-9065-1e1729b25e62_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2b1b4a88-b813-4502-a143-47f69cc1db78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_66d74892-fb86-42a2-9065-1e1729b25e62" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2b1b4a88-b813-4502-a143-47f69cc1db78" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_6ac4e742-cfff-40eb-a74c-ec5e496d4163" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TrademarksMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2b1b4a88-b813-4502-a143-47f69cc1db78" xlink:to="loc_us-gaap_TrademarksMember_6ac4e742-cfff-40eb-a74c-ec5e496d4163" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AccreditationLicensingAndTitleFourMember_10d7bb8d-1a1e-4bc4-98e1-c3e9fae64c3e" xlink:href="apei-20231231.xsd#apei_AccreditationLicensingAndTitleFourMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2b1b4a88-b813-4502-a143-47f69cc1db78" xlink:to="loc_apei_AccreditationLicensingAndTitleFourMember_10d7bb8d-1a1e-4bc4-98e1-c3e9fae64c3e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AffiliatesMember_f6af8f3c-7627-4b02-9601-7380b15f8787" xlink:href="apei-20231231.xsd#apei_AffiliatesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2b1b4a88-b813-4502-a143-47f69cc1db78" xlink:to="loc_apei_AffiliatesMember_f6af8f3c-7627-4b02-9601-7380b15f8787" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_c5a9590a-4efc-4bb2-985d-f7ea4fc14cdd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNetAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7591cea1-75eb-4d97-9e9a-0d033deca665" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_c5a9590a-4efc-4bb2-985d-f7ea4fc14cdd" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_05b2bac0-40f0-4527-a122-763b4997239f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_c5a9590a-4efc-4bb2-985d-f7ea4fc14cdd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_05b2bac0-40f0-4527-a122-763b4997239f" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8050aaa0-4264-4877-9a53-2023813f6202" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_c5a9590a-4efc-4bb2-985d-f7ea4fc14cdd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8050aaa0-4264-4877-9a53-2023813f6202" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_dd01417a-f719-44a7-88fa-96e387c81396" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_c5a9590a-4efc-4bb2-985d-f7ea4fc14cdd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_dd01417a-f719-44a7-88fa-96e387c81396" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7591cea1-75eb-4d97-9e9a-0d033deca665" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_IndefiniteLivedIntangibleAssetsExcludingGoodwillBeforeImpairment_2335672f-255e-40d7-868a-4adc4b094aec" xlink:href="apei-20231231.xsd#apei_IndefiniteLivedIntangibleAssetsExcludingGoodwillBeforeImpairment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_apei_IndefiniteLivedIntangibleAssetsExcludingGoodwillBeforeImpairment_2335672f-255e-40d7-868a-4adc4b094aec" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_065fa248-343d-4b10-bc54-0a842c7b6962" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_065fa248-343d-4b10-bc54-0a842c7b6962" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_ImpairmentOfIntangibleAssetIndefiniteLivedExcludingGoodwillStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag_5c154fb0-2c86-4cdb-b72e-c2e70b4e52d0" xlink:href="apei-20231231.xsd#apei_ImpairmentOfIntangibleAssetIndefiniteLivedExcludingGoodwillStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_065fa248-343d-4b10-bc54-0a842c7b6962" xlink:to="loc_apei_ImpairmentOfIntangibleAssetIndefiniteLivedExcludingGoodwillStatementOfIncomeOrComprehensiveIncomeExtensibleEnumerationNotDisclosedFlag_5c154fb0-2c86-4cdb-b72e-c2e70b4e52d0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_25ee91ae-4e2f-46f5-bead-dd5fa228f42f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_25ee91ae-4e2f-46f5-bead-dd5fa228f42f" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_1405d995-0357-4d44-9f17-6176404dca35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_1405d995-0357-4d44-9f17-6176404dca35" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_3fab337d-09fe-4b3c-994e-869064c0c741" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_3fab337d-09fe-4b3c-994e-869064c0c741" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0693ac6d-6072-48a7-8f54-76daeb082f40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_f24a3b7e-1eaf-4273-9631-c6ca82a8b038" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0693ac6d-6072-48a7-8f54-76daeb082f40" xlink:type="arc" order="6"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#LeasesNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/LeasesNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_02565e8b-ea6b-4beb-9608-ea5ef9716975" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_02565e8b-ea6b-4beb-9608-ea5ef9716975" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_b60fdcee-7ad6-4a27-874c-c67c9893436a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_02565e8b-ea6b-4beb-9608-ea5ef9716975" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_b60fdcee-7ad6-4a27-874c-c67c9893436a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b60fdcee-7ad6-4a27-874c-c67c9893436a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b60fdcee-7ad6-4a27-874c-c67c9893436a" xlink:to="loc_us-gaap_SegmentDomain_b60fdcee-7ad6-4a27-874c-c67c9893436a_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_20e17856-fce1-437f-9170-6d68183d50b1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b60fdcee-7ad6-4a27-874c-c67c9893436a" xlink:to="loc_us-gaap_SegmentDomain_20e17856-fce1-437f-9170-6d68183d50b1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_69cd94ab-a5be-4816-a30d-3220236e884e" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_20e17856-fce1-437f-9170-6d68183d50b1" xlink:to="loc_apei_RasmussenUniversitySegmentMember_69cd94ab-a5be-4816-a30d-3220236e884e" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_ed2b4441-33b1-446a-a755-c18fd72fee53" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_20e17856-fce1-437f-9170-6d68183d50b1" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_ed2b4441-33b1-446a-a755-c18fd72fee53" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LesseeOperatingLeaseExtensionTerm_4c00e62d-9af8-4aeb-9221-7b344d1cf993" xlink:href="apei-20231231.xsd#apei_LesseeOperatingLeaseExtensionTerm"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_apei_LesseeOperatingLeaseExtensionTerm_4c00e62d-9af8-4aeb-9221-7b344d1cf993" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_NumberOfCampuses_518fdb78-8337-4064-95fe-c87d6992bd01" xlink:href="apei-20231231.xsd#apei_NumberOfCampuses"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_apei_NumberOfCampuses_518fdb78-8337-4064-95fe-c87d6992bd01" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_NumberOfStates_d0e30c48-d6af-492d-8057-093557f82b0a" xlink:href="apei-20231231.xsd#apei_NumberOfStates"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_apei_NumberOfStates_d0e30c48-d6af-492d-8057-093557f82b0a" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeasePayment_6484806d-0e0f-4195-8e4d-837b1a68929b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableLeasePayment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_VariableLeasePayment_6484806d-0e0f-4195-8e4d-837b1a68929b" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseExpense_f66363f5-1006-4403-9e92-bc4e4194fa2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_OperatingLeaseExpense_f66363f5-1006-4403-9e92-bc4e4194fa2b" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasePayments_2a292fe9-9c96-4308-b074-f12f49f84f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeasePayments"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_OperatingLeasePayments_2a292fe9-9c96-4308-b074-f12f49f84f7b" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_afd9df15-1f97-4c02-802f-4e497f0c2d19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiability"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_FinanceLeaseLiability_afd9df15-1f97-4c02-802f-4e497f0c2d19" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_FinanceLeaseLiabilityInterestRate_18278163-504a-43c5-80f1-adadd2ad634a" xlink:href="apei-20231231.xsd#apei_FinanceLeaseLiabilityInterestRate"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_apei_FinanceLeaseLiabilityInterestRate_18278163-504a-43c5-80f1-adadd2ad634a" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_84429dcb-671e-4d1f-a70a-dc185940d4dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseInterestExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_d0e29ecc-916d-4150-a876-cf6987719780" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_84429dcb-671e-4d1f-a70a-dc185940d4dc" xlink:type="arc" order="8"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LongTermDebtNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#LongTermDebtNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/LongTermDebtNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentRedemptionTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_DebtInstrumentAxis_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1dab5d36-f5d8-4ed8-a20c-74cf839a3f2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_f4d8bbf8-977b-45a4-ac86-cabd035b4d3d" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1dab5d36-f5d8-4ed8-a20c-74cf839a3f2b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SeniorSecuredTermLoanFacilityMember_df17d01c-dcd1-406c-87c0-927fe4e71a08" xlink:href="apei-20231231.xsd#apei_SeniorSecuredTermLoanFacilityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1dab5d36-f5d8-4ed8-a20c-74cf839a3f2b" xlink:to="loc_apei_SeniorSecuredTermLoanFacilityMember_df17d01c-dcd1-406c-87c0-927fe4e71a08" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SubfacilityForSwingLineLoansMember_fa3dab8c-7c7b-47bd-9498-46a32b37c182" xlink:href="apei-20231231.xsd#apei_SubfacilityForSwingLineLoansMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1dab5d36-f5d8-4ed8-a20c-74cf839a3f2b" xlink:to="loc_apei_SubfacilityForSwingLineLoansMember_fa3dab8c-7c7b-47bd-9498-46a32b37c182" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_f60114a0-35cc-4d74-8757-e9c3d9c991db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_f60114a0-35cc-4d74-8757-e9c3d9c991db" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f60114a0-35cc-4d74-8757-e9c3d9c991db_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f60114a0-35cc-4d74-8757-e9c3d9c991db" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f60114a0-35cc-4d74-8757-e9c3d9c991db_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_eadf0ccf-0374-4348-8abf-eeedb78f8780" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f60114a0-35cc-4d74-8757-e9c3d9c991db" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_eadf0ccf-0374-4348-8abf-eeedb78f8780" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_610e0a01-6669-4cc5-9572-4d64ffa68f92" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_eadf0ccf-0374-4348-8abf-eeedb78f8780" xlink:to="loc_us-gaap_SecuredDebtMember_610e0a01-6669-4cc5-9572-4d64ffa68f92" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_2e58cb46-6bf6-492c-bbd1-284766f3a497" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_eadf0ccf-0374-4348-8abf-eeedb78f8780" xlink:to="loc_us-gaap_LineOfCreditMember_2e58cb46-6bf6-492c-bbd1-284766f3a497" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_06fe220c-f178-4422-8e71-ed2cbcd11cc5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_CreditFacilityAxis_06fe220c-f178-4422-8e71-ed2cbcd11cc5" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_06fe220c-f178-4422-8e71-ed2cbcd11cc5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_06fe220c-f178-4422-8e71-ed2cbcd11cc5" xlink:to="loc_us-gaap_CreditFacilityDomain_06fe220c-f178-4422-8e71-ed2cbcd11cc5_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_ec44079e-6564-40d4-950d-07f42976b98b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_06fe220c-f178-4422-8e71-ed2cbcd11cc5" xlink:to="loc_us-gaap_CreditFacilityDomain_ec44079e-6564-40d4-950d-07f42976b98b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_4488a575-f0d6-4f3e-a688-73fb45b4c0bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_ec44079e-6564-40d4-950d-07f42976b98b" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_4488a575-f0d6-4f3e-a688-73fb45b4c0bb" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_b19082e6-79ef-4606-b9be-86a5258d9a91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_VariableRateAxis_b19082e6-79ef-4606-b9be-86a5258d9a91" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_b19082e6-79ef-4606-b9be-86a5258d9a91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_b19082e6-79ef-4606-b9be-86a5258d9a91" xlink:to="loc_us-gaap_VariableRateDomain_b19082e6-79ef-4606-b9be-86a5258d9a91_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_b6845d00-13f6-41f4-9bcf-94b4c0f9dc7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_b19082e6-79ef-4606-b9be-86a5258d9a91" xlink:to="loc_us-gaap_VariableRateDomain_b6845d00-13f6-41f4-9bcf-94b4c0f9dc7c" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LondonInterbankOfferedRateLIBOR1Member_c1bb437d-dc06-4eb4-b0b6-171f5b181b6e" xlink:href="apei-20231231.xsd#apei_LondonInterbankOfferedRateLIBOR1Member"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_b6845d00-13f6-41f4-9bcf-94b4c0f9dc7c" xlink:to="loc_apei_LondonInterbankOfferedRateLIBOR1Member_c1bb437d-dc06-4eb4-b0b6-171f5b181b6e" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SecuredOvernightFinancingRateSOFRMember_a98f663d-7009-43eb-a23f-348b7eba00d6" xlink:href="apei-20231231.xsd#apei_SecuredOvernightFinancingRateSOFRMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_b6845d00-13f6-41f4-9bcf-94b4c0f9dc7c" xlink:to="loc_apei_SecuredOvernightFinancingRateSOFRMember_a98f663d-7009-43eb-a23f-348b7eba00d6" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_9a422434-9099-44a4-82b3-1cc8d77e542e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_b6845d00-13f6-41f4-9bcf-94b4c0f9dc7c" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_9a422434-9099-44a4-82b3-1cc8d77e542e" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_699e458c-92ec-4f74-af0a-6b8440e4f505" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_699e458c-92ec-4f74-af0a-6b8440e4f505" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_699e458c-92ec-4f74-af0a-6b8440e4f505_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_699e458c-92ec-4f74-af0a-6b8440e4f505" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_699e458c-92ec-4f74-af0a-6b8440e4f505_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_582363db-c12c-42f8-8784-a826e4248f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_699e458c-92ec-4f74-af0a-6b8440e4f505" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_582363db-c12c-42f8-8784-a826e4248f9b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_79488cd1-db6d-49b6-9ef3-7ece005a48b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateCapMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_582363db-c12c-42f8-8784-a826e4248f9b" xlink:to="loc_us-gaap_InterestRateCapMember_79488cd1-db6d-49b6-9ef3-7ece005a48b9" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_e90f30fe-2394-432c-ab0b-9671cfa3b275" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_e90f30fe-2394-432c-ab0b-9671cfa3b275" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_e90f30fe-2394-432c-ab0b-9671cfa3b275_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_e90f30fe-2394-432c-ab0b-9671cfa3b275" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_e90f30fe-2394-432c-ab0b-9671cfa3b275_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_6244a129-c87f-4051-9baf-f794a9084b96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_e90f30fe-2394-432c-ab0b-9671cfa3b275" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_6244a129-c87f-4051-9baf-f794a9084b96" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_3eff03bf-23c6-43fb-ac42-4ea0bea341fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_6244a129-c87f-4051-9baf-f794a9084b96" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_3eff03bf-23c6-43fb-ac42-4ea0bea341fd" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_61c222d9-67e0-41f6-a70e-806018846e48" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentRedemptionTable_4a624544-4ee8-4239-8a7a-db49587bb5d8" xlink:to="loc_srt_RangeAxis_61c222d9-67e0-41f6-a70e-806018846e48" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_61c222d9-67e0-41f6-a70e-806018846e48_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_61c222d9-67e0-41f6-a70e-806018846e48" xlink:to="loc_srt_RangeMember_61c222d9-67e0-41f6-a70e-806018846e48_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_27377d36-8a4f-4d1e-88c6-eb42c44b6aa0" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_61c222d9-67e0-41f6-a70e-806018846e48" xlink:to="loc_srt_RangeMember_27377d36-8a4f-4d1e-88c6-eb42c44b6aa0" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_b538b7f7-ef17-46e2-b777-198aaa2407b1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_27377d36-8a4f-4d1e-88c6-eb42c44b6aa0" xlink:to="loc_srt_MinimumMember_b538b7f7-ef17-46e2-b777-198aaa2407b1" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_8426a25f-b25d-4179-8047-677f5220a567" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_27377d36-8a4f-4d1e-88c6-eb42c44b6aa0" xlink:to="loc_srt_MaximumMember_8426a25f-b25d-4179-8047-677f5220a567" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_f70625a1-2355-4836-bdc9-3aecac655d10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_f70625a1-2355-4836-bdc9-3aecac655d10" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_98b91e09-0efd-4fee-afd8-d1eb0f0569b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_98b91e09-0efd-4fee-afd8-d1eb0f0569b3" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_2333ea4a-e568-4b12-a491-5d37ff44540b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_2333ea4a-e568-4b12-a491-5d37ff44540b" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_be7fd250-779e-403e-b338-613d3989cfce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_be7fd250-779e-403e-b338-613d3989cfce" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentCovenantMaximumFirstLienNetLeverageRatio_6b0ea15d-de9b-44a3-adec-947fd6db4fec" xlink:href="apei-20231231.xsd#apei_DebtInstrumentCovenantMaximumFirstLienNetLeverageRatio"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentCovenantMaximumFirstLienNetLeverageRatio_6b0ea15d-de9b-44a3-adec-947fd6db4fec" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentCovenantMaximumTotalNetLeverageRatio_8025d41a-1f6e-4af7-9a5b-8927b9625914" xlink:href="apei-20231231.xsd#apei_DebtInstrumentCovenantMaximumTotalNetLeverageRatio"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentCovenantMaximumTotalNetLeverageRatio_8025d41a-1f6e-4af7-9a5b-8927b9625914" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentCovenantMaximumSecuredNetLeverageRatio_301d1ebc-ba21-4330-bf58-279af596342e" xlink:href="apei-20231231.xsd#apei_DebtInstrumentCovenantMaximumSecuredNetLeverageRatio"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentCovenantMaximumSecuredNetLeverageRatio_301d1ebc-ba21-4330-bf58-279af596342e" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentCovenantMinimumInterestCoverageRatio_32218636-c359-4765-88f2-52b625299e9f" xlink:href="apei-20231231.xsd#apei_DebtInstrumentCovenantMinimumInterestCoverageRatio"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentCovenantMinimumInterestCoverageRatio_32218636-c359-4765-88f2-52b625299e9f" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentCovenantMinimumUnrestrictedCashAndCashEquivalentsUsedToCalculateNetLeverageRatio_79d457d9-20a8-41f2-9974-f0205bacf930" xlink:href="apei-20231231.xsd#apei_DebtInstrumentCovenantMinimumUnrestrictedCashAndCashEquivalentsUsedToCalculateNetLeverageRatio"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentCovenantMinimumUnrestrictedCashAndCashEquivalentsUsedToCalculateNetLeverageRatio_79d457d9-20a8-41f2-9974-f0205bacf930" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a8c7f57e-9d6b-4e84-9eb5-e52cd720cb95" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_a8c7f57e-9d6b-4e84-9eb5-e52cd720cb95" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentFloorInterestRate_808661a5-c2f6-402b-900f-1e96234ebae8" xlink:href="apei-20231231.xsd#apei_DebtInstrumentFloorInterestRate"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentFloorInterestRate_808661a5-c2f6-402b-900f-1e96234ebae8" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DebtInstrumentBasisSpreadOnVariableRatePastDueObligations_9d5749fd-1e35-460d-9d28-1f481824ca01" xlink:href="apei-20231231.xsd#apei_DebtInstrumentBasisSpreadOnVariableRatePastDueObligations"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_DebtInstrumentBasisSpreadOnVariableRatePastDueObligations_9d5749fd-1e35-460d-9d28-1f481824ca01" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_51046616-e1a2-487b-8dd0-9389dec62cdb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_51046616-e1a2-487b-8dd0-9389dec62cdb" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPayment_c2e48398-5cde-4bf7-a6e1-eaaa9da5f984" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentPeriodicPayment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPayment_c2e48398-5cde-4bf7-a6e1-eaaa9da5f984" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PaymentsOfInterestDebtIssuanceCostsAndCommitmentFees_2842dc3a-9bb1-4881-95af-c59a709a44d7" xlink:href="apei-20231231.xsd#apei_PaymentsOfInterestDebtIssuanceCostsAndCommitmentFees"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_PaymentsOfInterestDebtIssuanceCostsAndCommitmentFees_2842dc3a-9bb1-4881-95af-c59a709a44d7" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_22317305-9d1a-45bf-b094-11de077ee306" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebt"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_22317305-9d1a-45bf-b094-11de077ee306" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WriteOffOfDeferredDebtIssuanceCost_ae15988d-0982-4087-86e5-8c284fff7cd2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_WriteOffOfDeferredDebtIssuanceCost"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_WriteOffOfDeferredDebtIssuanceCost_ae15988d-0982-4087-86e5-8c284fff7cd2" xlink:type="arc" order="16"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_d3561a4a-7515-49e7-b404-7f18141b3d28" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNotionalAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DerivativeNotionalAmount_d3561a4a-7515-49e7-b404-7f18141b3d28" xlink:type="arc" order="17"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCapInterestRate_5487636b-3c9e-4d6d-90a6-11569b7accde" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCapInterestRate"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DerivativeCapInterestRate_5487636b-3c9e-4d6d-90a6-11569b7accde" xlink:type="arc" order="18"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_3752e4b1-d3d1-4e07-b9dc-112f364c7061" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_DerivativeAssets_3752e4b1-d3d1-4e07-b9dc-112f364c7061" xlink:type="arc" order="19"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_3e53a76c-4234-47e5-98a9-a1cba3aa26ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_3e53a76c-4234-47e5-98a9-a1cba3aa26ce" xlink:type="arc" order="20"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_abd1910b-cc9a-4987-984b-6e5641c74c1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_us-gaap_InterestExpense_abd1910b-cc9a-4987-984b-6e5641c74c1e" xlink:type="arc" order="21"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_InterestExpenseExpectedToBeReclassifiedOverNextTwelveMonths_d0603b49-b169-4a5c-b5b8-9e630ef6621d" xlink:href="apei-20231231.xsd#apei_InterestExpenseExpectedToBeReclassifiedOverNextTwelveMonths"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionLineItems_d008a856-0677-4466-ba00-507970fe3314" xlink:to="loc_apei_InterestExpenseExpectedToBeReclassifiedOverNextTwelveMonths_d0603b49-b169-4a5c-b5b8-9e630ef6621d" xlink:type="arc" order="22"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/LongTermDebtLongtermdebtDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#LongTermDebtLongtermdebtDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/LongTermDebtLongtermdebtDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_1932644b-c13f-4cea-bb86-0b40e8cf1ad3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_DebtInstrumentTable_1932644b-c13f-4cea-bb86-0b40e8cf1ad3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_d82f6035-d7f7-4d58-a9d6-c19a1dd76838" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1932644b-c13f-4cea-bb86-0b40e8cf1ad3" xlink:to="loc_us-gaap_DebtInstrumentAxis_d82f6035-d7f7-4d58-a9d6-c19a1dd76838" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d82f6035-d7f7-4d58-a9d6-c19a1dd76838_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_d82f6035-d7f7-4d58-a9d6-c19a1dd76838" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d82f6035-d7f7-4d58-a9d6-c19a1dd76838_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_36421401-a0a5-4f62-8be4-780bd510c84a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_d82f6035-d7f7-4d58-a9d6-c19a1dd76838" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_36421401-a0a5-4f62-8be4-780bd510c84a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SeniorSecuredTermLoanFacilityMember_74bff37a-c992-41e5-b77f-317fc24afc2c" xlink:href="apei-20231231.xsd#apei_SeniorSecuredTermLoanFacilityMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_36421401-a0a5-4f62-8be4-780bd510c84a" xlink:to="loc_apei_SeniorSecuredTermLoanFacilityMember_74bff37a-c992-41e5-b77f-317fc24afc2c" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b1e54535-82f2-4acd-b66a-aaddfcfcfafb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1932644b-c13f-4cea-bb86-0b40e8cf1ad3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b1e54535-82f2-4acd-b66a-aaddfcfcfafb" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b1e54535-82f2-4acd-b66a-aaddfcfcfafb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b1e54535-82f2-4acd-b66a-aaddfcfcfafb" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b1e54535-82f2-4acd-b66a-aaddfcfcfafb_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_12128e14-70a4-4a8f-8140-673b89c41ec2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b1e54535-82f2-4acd-b66a-aaddfcfcfafb" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_12128e14-70a4-4a8f-8140-673b89c41ec2" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_76c27b52-8660-4c92-b74e-43d98c352e01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_12128e14-70a4-4a8f-8140-673b89c41ec2" xlink:to="loc_us-gaap_SecuredDebtMember_76c27b52-8660-4c92-b74e-43d98c352e01" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1a657a29-92d6-4cb8-a4d4-1e19aff20ed4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_1a657a29-92d6-4cb8-a4d4-1e19aff20ed4" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_66c84105-2691-4842-8c47-5a5b1d03ed49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsGross"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_66c84105-2691-4842-8c47-5a5b1d03ed49" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_224a0de1-96ed-4146-8c54-453bfc9249dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_LongTermDebt_224a0de1-96ed-4146-8c54-453bfc9249dd" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_e75dc57f-6769-47e4-95db-388a3f962f60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_LongTermDebtCurrent_e75dc57f-6769-47e4-95db-388a3f962f60" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_45413ab6-1eb9-46dc-b597-801aec4ec840" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_610e2b49-f828-4392-9fd2-130abde32b7c" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_45413ab6-1eb9-46dc-b597-801aec4ec840" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/IncomeTaxesNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#IncomeTaxesNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/IncomeTaxesNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_b745fe40-3b56-4614-953b-f2d1fd137156" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxContingencyLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_80238f1d-da64-462c-b446-54a328703f1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxContingencyTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_b745fe40-3b56-4614-953b-f2d1fd137156" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_80238f1d-da64-462c-b446-54a328703f1b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_6f228fb6-b260-439e-a3f4-39f879cf288a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_80238f1d-da64-462c-b446-54a328703f1b" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_6f228fb6-b260-439e-a3f4-39f879cf288a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_6f228fb6-b260-439e-a3f4-39f879cf288a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_6f228fb6-b260-439e-a3f4-39f879cf288a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_6f228fb6-b260-439e-a3f4-39f879cf288a_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_4229f213-3be9-4376-8e29-fdd518dfad56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_6f228fb6-b260-439e-a3f4-39f879cf288a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_4229f213-3be9-4376-8e29-fdd518dfad56" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_b0c86222-f537-41a4-9a26-c390ef668cda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StateAndLocalJurisdictionMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_4229f213-3be9-4376-8e29-fdd518dfad56" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_b0c86222-f537-41a4-9a26-c390ef668cda" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_ac38de05-d83e-492e-a118-3d3b8937e837" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DomesticCountryMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_4229f213-3be9-4376-8e29-fdd518dfad56" xlink:to="loc_us-gaap_DomesticCountryMember_ac38de05-d83e-492e-a118-3d3b8937e837" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_a82d234a-6707-4436-99ce-6658c112f92e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwards"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_b745fe40-3b56-4614-953b-f2d1fd137156" xlink:to="loc_us-gaap_OperatingLossCarryforwards_a82d234a-6707-4436-99ce-6658c112f92e" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_db01a5e5-ac54-4200-a3a0-1bec9c7e0815" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_b745fe40-3b56-4614-953b-f2d1fd137156" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration_db01a5e5-ac54-4200-a3a0-1bec9c7e0815" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#OtherEmployeeBenefitsNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_621919c7-84a8-453d-9ba8-7654d24f2ca2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_621919c7-84a8-453d-9ba8-7654d24f2ca2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_14d6020b-ac20-4577-ab63-9cc8979d1393" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_621919c7-84a8-453d-9ba8-7654d24f2ca2" xlink:to="loc_us-gaap_PlanNameAxis_14d6020b-ac20-4577-ab63-9cc8979d1393" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_14d6020b-ac20-4577-ab63-9cc8979d1393_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_14d6020b-ac20-4577-ab63-9cc8979d1393" xlink:to="loc_us-gaap_PlanNameDomain_14d6020b-ac20-4577-ab63-9cc8979d1393_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_d9c58abe-b81c-4fe2-950c-316c53e3fada" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_14d6020b-ac20-4577-ab63-9cc8979d1393" xlink:to="loc_us-gaap_PlanNameDomain_d9c58abe-b81c-4fe2-950c-316c53e3fada" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember_c11fb52c-c0e9-4ccb-b256-dafc84602975" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_d9c58abe-b81c-4fe2-950c-316c53e3fada" xlink:to="loc_apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember_c11fb52c-c0e9-4ccb-b256-dafc84602975" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_54e2d325-bd92-4f44-8951-05b65a3a5388" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_54e2d325-bd92-4f44-8951-05b65a3a5388" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_e8d2331a-f4ba-423f-a95a-878a159a6a47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_e8d2331a-f4ba-423f-a95a-878a159a6a47" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_EmployeeStockPurchasePlanTerminationPeriod_4b95e931-4b24-49f0-b8fa-ecea548197e5" xlink:href="apei-20231231.xsd#apei_EmployeeStockPurchasePlanTerminationPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_apei_EmployeeStockPurchasePlanTerminationPeriod_4b95e931-4b24-49f0-b8fa-ecea548197e5" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_f5fe6ce7-16a4-4281-b5fb-d2061b931f99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_f5fe6ce7-16a4-4281-b5fb-d2061b931f99" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_EmployeeStockPurchasePlanMaximumAmountOfAnnualCompensationToPurchaseSharesByEligibleParticipants_cd58e155-7d10-4abc-a09c-0cb57ac7a5fc" xlink:href="apei-20231231.xsd#apei_EmployeeStockPurchasePlanMaximumAmountOfAnnualCompensationToPurchaseSharesByEligibleParticipants"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_apei_EmployeeStockPurchasePlanMaximumAmountOfAnnualCompensationToPurchaseSharesByEligibleParticipants_cd58e155-7d10-4abc-a09c-0cb57ac7a5fc" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_EmployeeStockPurchasePlanMaximumAnnualFairValueOfSharesPurchasedByParticipant_7359395f-4b6a-4583-bac0-1b8c64a85bdf" xlink:href="apei-20231231.xsd#apei_EmployeeStockPurchasePlanMaximumAnnualFairValueOfSharesPurchasedByParticipant"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1a3cc854-d033-4b0b-a8d8-4c70d7e281ac" xlink:to="loc_apei_EmployeeStockPurchasePlanMaximumAnnualFairValueOfSharesPurchasedByParticipant_7359395f-4b6a-4583-bac0-1b8c64a85bdf" xlink:type="arc" order="5"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsScheduleofSharesPurchasedinOpenMarketforEmployeesDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#OtherEmployeeBenefitsScheduleofSharesPurchasedinOpenMarketforEmployeesDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/OtherEmployeeBenefitsScheduleofSharesPurchasedinOpenMarketforEmployeesDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e71ba41d-5050-4a86-bdb3-0191471e10b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e71ba41d-5050-4a86-bdb3-0191471e10b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_d58185da-3809-4541-b225-f7c3ab4d7011" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e71ba41d-5050-4a86-bdb3-0191471e10b6" xlink:to="loc_us-gaap_PlanNameAxis_d58185da-3809-4541-b225-f7c3ab4d7011" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_d58185da-3809-4541-b225-f7c3ab4d7011_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_d58185da-3809-4541-b225-f7c3ab4d7011" xlink:to="loc_us-gaap_PlanNameDomain_d58185da-3809-4541-b225-f7c3ab4d7011_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_611f8d97-1886-4666-a870-e221c03db513" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_d58185da-3809-4541-b225-f7c3ab4d7011" xlink:to="loc_us-gaap_PlanNameDomain_611f8d97-1886-4666-a870-e221c03db513" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember_37160d9c-3a95-4907-980e-2205b31e5ae9" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_611f8d97-1886-4666-a870-e221c03db513" xlink:to="loc_apei_AmericanPublicEducationIncEmployeeStockPurchasePlanMember_37160d9c-3a95-4907-980e-2205b31e5ae9" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward_be854616-3262-4f2f-b5e0-001494954374" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward_be854616-3262-4f2f-b5e0-001494954374" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_EmployeeStockPurchasePlanFairValuePerShareOfSharesPurchasedByParticipants_07855d29-0c4f-4cc6-a78b-0687cb43a48e" xlink:href="apei-20231231.xsd#apei_EmployeeStockPurchasePlanFairValuePerShareOfSharesPurchasedByParticipants"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:to="loc_apei_EmployeeStockPurchasePlanFairValuePerShareOfSharesPurchasedByParticipants_07855d29-0c4f-4cc6-a78b-0687cb43a48e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_EmployeeStockPurchasePlanCostPerShareOfSharesPurchasedByParticipants_57012667-2d68-492c-abe3-aca96a151f6c" xlink:href="apei-20231231.xsd#apei_EmployeeStockPurchasePlanCostPerShareOfSharesPurchasedByParticipants"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:to="loc_apei_EmployeeStockPurchasePlanCostPerShareOfSharesPurchasedByParticipants_57012667-2d68-492c-abe3-aca96a151f6c" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_cdfae382-9869-4234-be02-9cba87ff7f8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f94828b1-67ec-4edd-8205-331a30fa397c" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_cdfae382-9869-4234-be02-9cba87ff7f8d" xlink:type="arc" order="3"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/StockholdersEquityNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#StockholdersEquityNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_fce0b984-8f1a-4b12-85fc-77e319871ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:to="loc_us-gaap_PlanNameAxis_fce0b984-8f1a-4b12-85fc-77e319871ef4" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_fce0b984-8f1a-4b12-85fc-77e319871ef4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_fce0b984-8f1a-4b12-85fc-77e319871ef4" xlink:to="loc_us-gaap_PlanNameDomain_fce0b984-8f1a-4b12-85fc-77e319871ef4_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_afc99931-ecd5-4854-8144-1898d8e8ae81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_fce0b984-8f1a-4b12-85fc-77e319871ef4" xlink:to="loc_us-gaap_PlanNameDomain_afc99931-ecd5-4854-8144-1898d8e8ae81" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TwentySeventeenIncentivePlanMember_bce1e961-0fe7-4d56-9876-73026d36317c" xlink:href="apei-20231231.xsd#apei_TwentySeventeenIncentivePlanMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_afc99931-ecd5-4854-8144-1898d8e8ae81" xlink:to="loc_apei_TwentySeventeenIncentivePlanMember_bce1e961-0fe7-4d56-9876-73026d36317c" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmendedAmericanPublicEducationInc2017OmnibusPlanMember_1e9fb4c0-2539-4d9a-b84b-bb6ef77b74ff" xlink:href="apei-20231231.xsd#apei_AmendedAmericanPublicEducationInc2017OmnibusPlanMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_afc99931-ecd5-4854-8144-1898d8e8ae81" xlink:to="loc_apei_AmendedAmericanPublicEducationInc2017OmnibusPlanMember_1e9fb4c0-2539-4d9a-b84b-bb6ef77b74ff" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d40ff3f7-65ae-40af-867f-63b05638b2a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:to="loc_us-gaap_AwardTypeAxis_d40ff3f7-65ae-40af-867f-63b05638b2a7" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d40ff3f7-65ae-40af-867f-63b05638b2a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d40ff3f7-65ae-40af-867f-63b05638b2a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d40ff3f7-65ae-40af-867f-63b05638b2a7_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ffd0b3a1-308d-4068-a98e-1e5b2143c853" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d40ff3f7-65ae-40af-867f-63b05638b2a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ffd0b3a1-308d-4068-a98e-1e5b2143c853" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RestrictedStockandRestrictedStockUnitsMember_a7a5d04c-ed5f-4937-811e-cc2cb42ff6b8" xlink:href="apei-20231231.xsd#apei_RestrictedStockandRestrictedStockUnitsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ffd0b3a1-308d-4068-a98e-1e5b2143c853" xlink:to="loc_apei_RestrictedStockandRestrictedStockUnitsMember_a7a5d04c-ed5f-4937-811e-cc2cb42ff6b8" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_493e0b52-1998-467b-83b6-7a2eb26f3f65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ffd0b3a1-308d-4068-a98e-1e5b2143c853" xlink:to="loc_us-gaap_EmployeeStockOptionMember_493e0b52-1998-467b-83b6-7a2eb26f3f65" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0b91baef-dbba-4745-b81e-a105aae263c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0b91baef-dbba-4745-b81e-a105aae263c6" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0b91baef-dbba-4745-b81e-a105aae263c6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0b91baef-dbba-4745-b81e-a105aae263c6" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_0b91baef-dbba-4745-b81e-a105aae263c6_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b7aac575-4e63-4ce5-8294-3f5849483333" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0b91baef-dbba-4745-b81e-a105aae263c6" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b7aac575-4e63-4ce5-8294-3f5849483333" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_ba5728ff-7ed3-42dd-a742-9ba573929f59" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeStockOptionMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b7aac575-4e63-4ce5-8294-3f5849483333" xlink:to="loc_us-gaap_EmployeeStockOptionMember_ba5728ff-7ed3-42dd-a742-9ba573929f59" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_db069dfa-7c52-499c-9963-c43595e366de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_db069dfa-7c52-499c-9963-c43595e366de" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_db069dfa-7c52-499c-9963-c43595e366de_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_db069dfa-7c52-499c-9963-c43595e366de" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_db069dfa-7c52-499c-9963-c43595e366de_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_a3038d14-d987-489d-a4dc-061052bc4866" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareRepurchaseProgramDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_db069dfa-7c52-499c-9963-c43595e366de" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_a3038d14-d987-489d-a4dc-061052bc4866" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_ProgramRestrictedByConsentOfShareholdersMember_5e86ebe2-f23b-4ec7-9ab0-1a9bc0e254f0" xlink:href="apei-20231231.xsd#apei_ProgramRestrictedByConsentOfShareholdersMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_a3038d14-d987-489d-a4dc-061052bc4866" xlink:to="loc_apei_ProgramRestrictedByConsentOfShareholdersMember_5e86ebe2-f23b-4ec7-9ab0-1a9bc0e254f0" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_cb37846a-54e7-4cf0-a82d-d3f9967a95b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0c567d5b-ae93-4340-ab7a-a6cb0e6bd1f9" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_cb37846a-54e7-4cf0-a82d-d3f9967a95b5" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_cb37846a-54e7-4cf0-a82d-d3f9967a95b5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_cb37846a-54e7-4cf0-a82d-d3f9967a95b5" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_cb37846a-54e7-4cf0-a82d-d3f9967a95b5_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_edc7b154-f8e5-4b39-a096-d5a8912a472a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_cb37846a-54e7-4cf0-a82d-d3f9967a95b5" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_edc7b154-f8e5-4b39-a096-d5a8912a472a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_816683dd-f78e-4a16-9795-8ea9dcc97387" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_edc7b154-f8e5-4b39-a096-d5a8912a472a" xlink:to="loc_us-gaap_SubsequentEventMember_816683dd-f78e-4a16-9795-8ea9dcc97387" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_8ff6fd4e-fc97-46ab-938c-e95bbb6d01d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_8ff6fd4e-fc97-46ab-938c-e95bbb6d01d7" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_dd470a96-08b1-4d24-9b8c-901c76518469" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_dd470a96-08b1-4d24-9b8c-901c76518469" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_975a27ae-bd07-4986-ba82-09484bb69969" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_975a27ae-bd07-4986-ba82-09484bb69969" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SharebasedCompensationArrangementBySharebasedPaymentAwardAcceleratedServicePeriod_f58ac777-773e-40e6-99f2-7fc99ad5f613" xlink:href="apei-20231231.xsd#apei_SharebasedCompensationArrangementBySharebasedPaymentAwardAcceleratedServicePeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_apei_SharebasedCompensationArrangementBySharebasedPaymentAwardAcceleratedServicePeriod_f58ac777-773e-40e6-99f2-7fc99ad5f613" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_d580207c-9ec5-4e85-92ea-8b163ccff364" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_d580207c-9ec5-4e85-92ea-8b163ccff364" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_abb7af4c-40f5-43bc-8f07-e494a211b21f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_abb7af4c-40f5-43bc-8f07-e494a211b21f" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9dc6f664-1f74-4ec2-bb84-5f2426030fba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9dc6f664-1f74-4ec2-bb84-5f2426030fba" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_a4840f6f-7734-4d98-83c9-1d0c33cf498e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation_a4840f6f-7734-4d98-83c9-1d0c33cf498e" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SharesPaidForTaxWithholdingForShareBasedCompensationValue_335ffc63-bbc1-444d-99ad-4ebfdfbef566" xlink:href="apei-20231231.xsd#apei_SharesPaidForTaxWithholdingForShareBasedCompensationValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_apei_SharesPaidForTaxWithholdingForShareBasedCompensationValue_335ffc63-bbc1-444d-99ad-4ebfdfbef566" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_f1ccdcee-0346-408c-99f4-e4112866f301" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_f1ccdcee-0346-408c-99f4-e4112866f301" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_99f04248-0c93-4a13-85aa-6c31a297cad3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_99f04248-0c93-4a13-85aa-6c31a297cad3" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_36682222-52e3-44ff-85f6-6565b3c1d801" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_36682222-52e3-44ff-85f6-6565b3c1d801" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_StockRepurchaseProgramAdditionalAuthorizedAmount_dc5adc78-8a92-41b6-bc46-771e60b883ed" xlink:href="apei-20231231.xsd#apei_StockRepurchaseProgramAdditionalAuthorizedAmount"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_apei_StockRepurchaseProgramAdditionalAuthorizedAmount_dc5adc78-8a92-41b6-bc46-771e60b883ed" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_72fb7c41-11af-4aa2-a26d-ba52e4599cd3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_72fb7c41-11af-4aa2-a26d-ba52e4599cd3" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimumPercentage_20a2a35e-6e66-434c-8712-a671750b0f66" xlink:href="apei-20231231.xsd#apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimumPercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimumPercentage_20a2a35e-6e66-434c-8712-a671750b0f66" xlink:type="arc" order="14"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_17d7d0f3-1a3a-4604-914e-2b79c4762647" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_17d7d0f3-1a3a-4604-914e-2b79c4762647" xlink:type="arc" order="15"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_7eac5562-094e-4d6c-911f-1266c080d152" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_7eac5562-094e-4d6c-911f-1266c080d152" xlink:type="arc" order="16"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_7ac7f3ce-7a0f-46b8-b9b8-d5edb87e1d57" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c4f41f62-9149-457b-a465-d5554cf5faf4" xlink:to="loc_us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased_7ac7f3ce-7a0f-46b8-b9b8-d5edb87e1d57" xlink:type="arc" order="17"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/StockholdersEquitySummaryofRestrictedStockandRestrictedStockUnitsActivityDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#StockholdersEquitySummaryofRestrictedStockandRestrictedStockUnitsActivityDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/StockholdersEquitySummaryofRestrictedStockandRestrictedStockUnitsActivityDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a4665dbe-e3d0-4c98-bf5f-15f992ed81fc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9d973ef4-eeae-40e0-8346-155d4651fab0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a4665dbe-e3d0-4c98-bf5f-15f992ed81fc" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9d973ef4-eeae-40e0-8346-155d4651fab0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_e9357d78-cef4-40c4-8fa5-1d56479be673" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9d973ef4-eeae-40e0-8346-155d4651fab0" xlink:to="loc_us-gaap_AwardTypeAxis_e9357d78-cef4-40c4-8fa5-1d56479be673" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e9357d78-cef4-40c4-8fa5-1d56479be673_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_e9357d78-cef4-40c4-8fa5-1d56479be673" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e9357d78-cef4-40c4-8fa5-1d56479be673_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d19d6546-b144-4bd8-aefc-e26a20236a08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_e9357d78-cef4-40c4-8fa5-1d56479be673" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d19d6546-b144-4bd8-aefc-e26a20236a08" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RestrictedStockandRestrictedStockUnitsMember_afd2384e-de4c-41bd-993b-bc090fb4be4a" xlink:href="apei-20231231.xsd#apei_RestrictedStockandRestrictedStockUnitsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d19d6546-b144-4bd8-aefc-e26a20236a08" xlink:to="loc_apei_RestrictedStockandRestrictedStockUnitsMember_afd2384e-de4c-41bd-993b-bc090fb4be4a" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a4665dbe-e3d0-4c98-bf5f-15f992ed81fc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c35b7f22-aa4a-4031-b560-ef135986d409" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c35b7f22-aa4a-4031-b560-ef135986d409" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_54486be9-e258-4917-b2e9-2679d56a9ead" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_54486be9-e258-4917-b2e9-2679d56a9ead" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_a6d1acea-6665-40ee-8c97-7def9b5d1578" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_a6d1acea-6665-40ee-8c97-7def9b5d1578" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_ece391d4-8ec1-462a-bcb4-e9df5b8fb5b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b71f88bc-e642-4012-a723-db2a1041aa61" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_ece391d4-8ec1-462a-bcb4-e9df5b8fb5b2" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8c4adbde-1bbb-483f-8d04-848370c75a37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a4665dbe-e3d0-4c98-bf5f-15f992ed81fc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_dd001a71-3eec-4ebf-b5dd-43f59d9b75f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_dd001a71-3eec-4ebf-b5dd-43f59d9b75f1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_cdbacf1c-9ca9-42b9-ab94-2db1e2e498ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_cdbacf1c-9ca9-42b9-ab94-2db1e2e498ca" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_498e5f24-365d-4d8e-9abf-ae910593b05a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_498e5f24-365d-4d8e-9abf-ae910593b05a" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_c9004efe-2cce-4b3d-98c2-88204fa301a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_f17edff1-2cb5-4b7b-801b-202f9c341792" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_c9004efe-2cce-4b3d-98c2-88204fa301a5" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_9726b4f7-6863-4067-91cc-77fdd25ead1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/StockholdersEquitySummaryofStockbasedCompensationDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#StockholdersEquitySummaryofStockbasedCompensationDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/StockholdersEquitySummaryofStockbasedCompensationDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5c0ed4e7-eda2-44e6-ab41-cfd566eacd54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_f74cbcac-4bbc-4734-b25d-b68b9652ef11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5c0ed4e7-eda2-44e6-ab41-cfd566eacd54" xlink:to="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_f74cbcac-4bbc-4734-b25d-b68b9652ef11" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_b1b11fb4-d0a1-4c39-b530-73c74e23f669" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable_f74cbcac-4bbc-4734-b25d-b68b9652ef11" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_b1b11fb4-d0a1-4c39-b530-73c74e23f669" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b1b11fb4-d0a1-4c39-b530-73c74e23f669_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b1b11fb4-d0a1-4c39-b530-73c74e23f669" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b1b11fb4-d0a1-4c39-b530-73c74e23f669_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_04cd6851-1545-44f2-8040-7651229b37ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b1b11fb4-d0a1-4c39-b530-73c74e23f669" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_04cd6851-1545-44f2-8040-7651229b37ab" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_InstructionalCostsAndExpensesMember_ce95e5d8-e2c7-4374-a699-f2815fe72911" xlink:href="apei-20231231.xsd#apei_InstructionalCostsAndExpensesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_04cd6851-1545-44f2-8040-7651229b37ab" xlink:to="loc_apei_InstructionalCostsAndExpensesMember_ce95e5d8-e2c7-4374-a699-f2815fe72911" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_f1219e16-a6a8-4b2f-8922-7c243fed732f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingAndMarketingExpenseMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_04cd6851-1545-44f2-8040-7651229b37ab" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_f1219e16-a6a8-4b2f-8922-7c243fed732f" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_eba7b0a0-a3ed-4af9-a9da-0df84f88f176" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_04cd6851-1545-44f2-8040-7651229b37ab" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_eba7b0a0-a3ed-4af9-a9da-0df84f88f176" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_8beb309d-3120-463b-b87b-508a3644e727" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems_5c0ed4e7-eda2-44e6-ab41-cfd566eacd54" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_8beb309d-3120-463b-b87b-508a3644e727" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/PreferredStockNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#PreferredStockNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/PreferredStockNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_d44a14e7-1478-4780-a4da-d3b2e96d90f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementClassOfStockAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:to="loc_us-gaap_StatementClassOfStockAxis_d44a14e7-1478-4780-a4da-d3b2e96d90f1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_d44a14e7-1478-4780-a4da-d3b2e96d90f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_d44a14e7-1478-4780-a4da-d3b2e96d90f1" xlink:to="loc_us-gaap_ClassOfStockDomain_d44a14e7-1478-4780-a4da-d3b2e96d90f1_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_9ad419ac-bce4-4629-87b9-04d6f51bc538" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_d44a14e7-1478-4780-a4da-d3b2e96d90f1" xlink:to="loc_us-gaap_ClassOfStockDomain_9ad419ac-bce4-4629-87b9-04d6f51bc538" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_3e1038e6-6622-4d15-b90c-9fde23a7eec7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesAPreferredStockMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9ad419ac-bce4-4629-87b9-04d6f51bc538" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_3e1038e6-6622-4d15-b90c-9fde23a7eec7" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_bbd8536a-233f-454c-8e60-5da7726c16f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_bbd8536a-233f-454c-8e60-5da7726c16f1" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_bbd8536a-233f-454c-8e60-5da7726c16f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_bbd8536a-233f-454c-8e60-5da7726c16f1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_bbd8536a-233f-454c-8e60-5da7726c16f1_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_9b623089-e168-46d4-ba38-c29b726015c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_bbd8536a-233f-454c-8e60-5da7726c16f1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_9b623089-e168-46d4-ba38-c29b726015c9" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentTrustCertificateMember_76891cf4-0936-454a-9578-087b3b951bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquipmentTrustCertificateMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_9b623089-e168-46d4-ba38-c29b726015c9" xlink:to="loc_us-gaap_EquipmentTrustCertificateMember_76891cf4-0936-454a-9578-087b3b951bf9" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_65aa0bb9-e024-4e12-9a33-98537eee7f94" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:to="loc_us-gaap_VariableRateAxis_65aa0bb9-e024-4e12-9a33-98537eee7f94" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_65aa0bb9-e024-4e12-9a33-98537eee7f94_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_65aa0bb9-e024-4e12-9a33-98537eee7f94" xlink:to="loc_us-gaap_VariableRateDomain_65aa0bb9-e024-4e12-9a33-98537eee7f94_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_faf2621c-9b20-4ac7-a99c-cad23a4fa66d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_65aa0bb9-e024-4e12-9a33-98537eee7f94" xlink:to="loc_us-gaap_VariableRateDomain_faf2621c-9b20-4ac7-a99c-cad23a4fa66d" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_SecuredOvernightFinancingRateSOFRMember_b350f290-f075-43b7-a085-47b7f1d97a53" xlink:href="apei-20231231.xsd#apei_SecuredOvernightFinancingRateSOFRMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_faf2621c-9b20-4ac7-a99c-cad23a4fa66d" xlink:to="loc_apei_SecuredOvernightFinancingRateSOFRMember_b350f290-f075-43b7-a085-47b7f1d97a53" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_330d9ced-da34-4f8f-b5aa-a046821efe0d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4a787421-3cb7-4b38-8eab-4ff2b5058340" xlink:to="loc_srt_RangeAxis_330d9ced-da34-4f8f-b5aa-a046821efe0d" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_330d9ced-da34-4f8f-b5aa-a046821efe0d_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_330d9ced-da34-4f8f-b5aa-a046821efe0d" xlink:to="loc_srt_RangeMember_330d9ced-da34-4f8f-b5aa-a046821efe0d_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_de3897c1-8b83-48aa-87c6-1c2b64415fbc" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_330d9ced-da34-4f8f-b5aa-a046821efe0d" xlink:to="loc_srt_RangeMember_de3897c1-8b83-48aa-87c6-1c2b64415fbc" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_fe3afcb0-5a3b-4a20-a4cb-63bd04d96cb1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_de3897c1-8b83-48aa-87c6-1c2b64415fbc" xlink:to="loc_srt_MinimumMember_fe3afcb0-5a3b-4a20-a4cb-63bd04d96cb1" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6c256fcf-fe64-4850-b281-c9e724f83959" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_de3897c1-8b83-48aa-87c6-1c2b64415fbc" xlink:to="loc_srt_MaximumMember_6c256fcf-fe64-4850-b281-c9e724f83959" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueOther_c7a28201-4dca-4b9a-860e-3d13c86ce27e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueOther"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueOther_c7a28201-4dca-4b9a-860e-3d13c86ce27e" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_651b9ea6-77c5-424f-81ea-47dd7e9108d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_651b9ea6-77c5-424f-81ea-47dd7e9108d2" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockBasisSpreadDividendRatePercentage_5262779f-e652-4d10-8620-afc96e51c0bb" xlink:href="apei-20231231.xsd#apei_PreferredStockBasisSpreadDividendRatePercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockBasisSpreadDividendRatePercentage_5262779f-e652-4d10-8620-afc96e51c0bb" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockPeriodUntilDividendRateIncrease_3b9669c2-2567-4375-902e-bddbd0fd6481" xlink:href="apei-20231231.xsd#apei_PreferredStockPeriodUntilDividendRateIncrease"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockPeriodUntilDividendRateIncrease_3b9669c2-2567-4375-902e-bddbd0fd6481" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockAnnualIncreaseDecreaseInDividendRatePercentage_dc4d2127-0c7f-4c8a-8be6-24828405197d" xlink:href="apei-20231231.xsd#apei_PreferredStockAnnualIncreaseDecreaseInDividendRatePercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockAnnualIncreaseDecreaseInDividendRatePercentage_dc4d2127-0c7f-4c8a-8be6-24828405197d" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockQuarterlyIncreaseDecreaseInDividendRatePercentage_b3c8ce40-3303-42ca-8404-28056dae6103" xlink:href="apei-20231231.xsd#apei_PreferredStockQuarterlyIncreaseDecreaseInDividendRatePercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockQuarterlyIncreaseDecreaseInDividendRatePercentage_b3c8ce40-3303-42ca-8404-28056dae6103" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_5614b0d6-45a2-4f10-83a4-6038ceb020b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockDividendRatePercentage"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_5614b0d6-45a2-4f10-83a4-6038ceb020b0" xlink:type="arc" order="6"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockDividendPeriod_2002fae8-eb4b-4ca8-8bf5-a2e1d883a42c" xlink:href="apei-20231231.xsd#apei_PreferredStockDividendPeriod"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockDividendPeriod_2002fae8-eb4b-4ca8-8bf5-a2e1d883a42c" xlink:type="arc" order="7"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStockCash_cbf82a90-3ae0-4832-b1f5-37e00afb2d2d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DividendsPreferredStockCash"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_DividendsPreferredStockCash_cbf82a90-3ae0-4832-b1f5-37e00afb2d2d" xlink:type="arc" order="8"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockLiquidationPreferenceValue_98a3f438-90a0-44bc-a655-bc19d81fa2c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockLiquidationPreferenceValue"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_PreferredStockLiquidationPreferenceValue_98a3f438-90a0-44bc-a655-bc19d81fa2c2" xlink:type="arc" order="9"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockLiquidationPreferenceMakeWholePayment_ce481924-304c-4761-afd6-c29b590be2d5" xlink:href="apei-20231231.xsd#apei_PreferredStockLiquidationPreferenceMakeWholePayment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockLiquidationPreferenceMakeWholePayment_ce481924-304c-4761-afd6-c29b590be2d5" xlink:type="arc" order="10"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockLiquidationPreferenceDividendRateSpread_7ef6c6e5-7136-4c3e-8203-298c0adcb8bd" xlink:href="apei-20231231.xsd#apei_PreferredStockLiquidationPreferenceDividendRateSpread"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockLiquidationPreferenceDividendRateSpread_7ef6c6e5-7136-4c3e-8203-298c0adcb8bd" xlink:type="arc" order="11"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PreferredStockVotingRightsPercentageRequiredForApproval_5890b49d-2968-4655-8a30-db212f77e2e8" xlink:href="apei-20231231.xsd#apei_PreferredStockVotingRightsPercentageRequiredForApproval"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_PreferredStockVotingRightsPercentageRequiredForApproval_5890b49d-2968-4655-8a30-db212f77e2e8" xlink:type="arc" order="12"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RatioOfIndebtednessToNetCapital1_aafe8bd9-31b5-4c33-8fb5-eb48378c7f39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RatioOfIndebtednessToNetCapital1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_us-gaap_RatioOfIndebtednessToNetCapital1_aafe8bd9-31b5-4c33-8fb5-eb48378c7f39" xlink:type="arc" order="13"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimum_40c6e37b-3382-48ae-9c8c-dc4fa484cbe5" xlink:href="apei-20231231.xsd#apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimum"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_d1c8a3bf-628d-488a-810c-861cac129204" xlink:to="loc_apei_RepurchaseOfCommonStockSubjectToStockholderApprovalMinimum_40c6e37b-3382-48ae-9c8c-dc4fa484cbe5" xlink:type="arc" order="14"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConcentrationNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#ConcentrationNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/ConcentrationNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_c8b0e3ed-d09d-41c7-8b5e-a95aa2b9aab4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_f6460187-f091-4639-badf-b89d8aed6a40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_c8b0e3ed-d09d-41c7-8b5e-a95aa2b9aab4" xlink:to="loc_us-gaap_ConcentrationRiskTable_f6460187-f091-4639-badf-b89d8aed6a40" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_33ad59bc-923c-4b2b-a594-4201375f7553" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_f6460187-f091-4639-badf-b89d8aed6a40" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_33ad59bc-923c-4b2b-a594-4201375f7553" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_33ad59bc-923c-4b2b-a594-4201375f7553_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_33ad59bc-923c-4b2b-a594-4201375f7553" xlink:to="loc_us-gaap_SegmentDomain_33ad59bc-923c-4b2b-a594-4201375f7553_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d50ff487-5229-471f-8a09-ce7a2accff1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_33ad59bc-923c-4b2b-a594-4201375f7553" xlink:to="loc_us-gaap_SegmentDomain_d50ff487-5229-471f-8a09-ce7a2accff1b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicUniversitySystemSegmentMember_cf1772b8-5ffe-4cbd-a920-baea4aa1d954" xlink:href="apei-20231231.xsd#apei_AmericanPublicUniversitySystemSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d50ff487-5229-471f-8a09-ce7a2accff1b" xlink:to="loc_apei_AmericanPublicUniversitySystemSegmentMember_cf1772b8-5ffe-4cbd-a920-baea4aa1d954" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_PercentageOfStudentsServedInMilitaryOnActiveDutyAtTimeOfInitialEnrollment_8cf182c3-231f-4696-a109-e4e53ebb20f6" xlink:href="apei-20231231.xsd#apei_PercentageOfStudentsServedInMilitaryOnActiveDutyAtTimeOfInitialEnrollment"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_c8b0e3ed-d09d-41c7-8b5e-a95aa2b9aab4" xlink:to="loc_apei_PercentageOfStudentsServedInMilitaryOnActiveDutyAtTimeOfInitialEnrollment_8cf182c3-231f-4696-a109-e4e53ebb20f6" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ConcentrationSummaryofSegmentRevenueDerivedfromStudentsbyPrimaryFundingSourceDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#ConcentrationSummaryofSegmentRevenueDerivedfromStudentsbyPrimaryFundingSourceDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/ConcentrationSummaryofSegmentRevenueDerivedfromStudentsbyPrimaryFundingSourceDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_042b2023-f895-44a2-997e-9dd2df307954" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_042b2023-f895-44a2-997e-9dd2df307954" xlink:to="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0bf99232-daf7-4b33-aaa3-42c6baae02b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0bf99232-daf7-4b33-aaa3-42c6baae02b6" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0bf99232-daf7-4b33-aaa3-42c6baae02b6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0bf99232-daf7-4b33-aaa3-42c6baae02b6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_0bf99232-daf7-4b33-aaa3-42c6baae02b6_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1c308714-d876-457c-a3df-bcfada9a7903" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0bf99232-daf7-4b33-aaa3-42c6baae02b6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1c308714-d876-457c-a3df-bcfada9a7903" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_d57120b0-2975-4fd1-8670-8cdf8e59c273" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1c308714-d876-457c-a3df-bcfada9a7903" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_d57120b0-2975-4fd1-8670-8cdf8e59c273" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_42ba632f-becb-4a35-aa68-8eabd24b3ce4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_42ba632f-becb-4a35-aa68-8eabd24b3ce4" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_42ba632f-becb-4a35-aa68-8eabd24b3ce4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_42ba632f-becb-4a35-aa68-8eabd24b3ce4" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_42ba632f-becb-4a35-aa68-8eabd24b3ce4_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_ca6cafff-fed7-4da9-af9f-299746bc6629" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_42ba632f-becb-4a35-aa68-8eabd24b3ce4" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_ca6cafff-fed7-4da9-af9f-299746bc6629" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_e2c48ee7-b5bb-45cb-bbc0-ffff613deea4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerConcentrationRiskMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_ca6cafff-fed7-4da9-af9f-299746bc6629" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_e2c48ee7-b5bb-45cb-bbc0-ffff613deea4" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_1e4abdd2-21ea-47d1-989e-3c4f132f6c56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_1e4abdd2-21ea-47d1-989e-3c4f132f6c56" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_1e4abdd2-21ea-47d1-989e-3c4f132f6c56_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1e4abdd2-21ea-47d1-989e-3c4f132f6c56" xlink:to="loc_us-gaap_SegmentDomain_1e4abdd2-21ea-47d1-989e-3c4f132f6c56_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c903d5ab-738c-4bf2-b98e-4d077ee795db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_1e4abdd2-21ea-47d1-989e-3c4f132f6c56" xlink:to="loc_us-gaap_SegmentDomain_c903d5ab-738c-4bf2-b98e-4d077ee795db" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_291bc980-12ed-4e43-9f6a-05763a09914c" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c903d5ab-738c-4bf2-b98e-4d077ee795db" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_291bc980-12ed-4e43-9f6a-05763a09914c" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_7e588649-09f2-4612-999f-221f28837bba" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c903d5ab-738c-4bf2-b98e-4d077ee795db" xlink:to="loc_apei_RasmussenUniversitySegmentMember_7e588649-09f2-4612-999f-221f28837bba" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_8901835a-8e44-4270-9af1-00c8c48a4e91" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_c903d5ab-738c-4bf2-b98e-4d077ee795db" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_8901835a-8e44-4270-9af1-00c8c48a4e91" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_fd2d9be4-9a5b-4eae-ace2-b9129a425156" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_054827e3-168f-489a-b962-fbee20528adc" xlink:to="loc_srt_MajorCustomersAxis_fd2d9be4-9a5b-4eae-ace2-b9129a425156" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_fd2d9be4-9a5b-4eae-ace2-b9129a425156_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_fd2d9be4-9a5b-4eae-ace2-b9129a425156" xlink:to="loc_srt_NameOfMajorCustomerDomain_fd2d9be4-9a5b-4eae-ace2-b9129a425156_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_fd2d9be4-9a5b-4eae-ace2-b9129a425156" xlink:to="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_DepartmentOfDefenseTuitionAssistanceProgramsMember_39f5f8a6-3e2d-4d37-b25a-b5395ef0f722" xlink:href="apei-20231231.xsd#apei_DepartmentOfDefenseTuitionAssistanceProgramsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:to="loc_apei_DepartmentOfDefenseTuitionAssistanceProgramsMember_39f5f8a6-3e2d-4d37-b25a-b5395ef0f722" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_VeteranEducationBenefitsMember_6fd48d80-c273-4ab5-99b1-8c6f5d6e0441" xlink:href="apei-20231231.xsd#apei_VeteranEducationBenefitsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:to="loc_apei_VeteranEducationBenefitsMember_6fd48d80-c273-4ab5-99b1-8c6f5d6e0441" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_TitleIVProgramsMember_e120557a-ca75-498f-bb21-eefb75f74dac" xlink:href="apei-20231231.xsd#apei_TitleIVProgramsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:to="loc_apei_TitleIVProgramsMember_e120557a-ca75-498f-bb21-eefb75f74dac" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_CashAndOtherSourcesMember_bcce0615-a529-47e0-998e-f20513b2cdd5" xlink:href="apei-20231231.xsd#apei_CashAndOtherSourcesMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_16dbf7bd-5f67-4916-bb1d-1b7a3dd77772" xlink:to="loc_apei_CashAndOtherSourcesMember_bcce0615-a529-47e0-998e-f20513b2cdd5" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_a6428048-b8bb-4be1-89b0-3dc1364345cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_042b2023-f895-44a2-997e-9dd2df307954" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_a6428048-b8bb-4be1-89b0-3dc1364345cc" xlink:type="arc" order="0"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SegmentInformationSummaryofFinancialInformationDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SegmentInformationSummaryofFinancialInformationDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SegmentInformationSummaryofFinancialInformationDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f7df396-e5c9-4eb8-a24b-22146a3e8dde" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f7df396-e5c9-4eb8-a24b-22146a3e8dde" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_34edaf1e-e322-4b70-957b-53452a62d33f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f7df396-e5c9-4eb8-a24b-22146a3e8dde" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_34edaf1e-e322-4b70-957b-53452a62d33f" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_34edaf1e-e322-4b70-957b-53452a62d33f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_34edaf1e-e322-4b70-957b-53452a62d33f" xlink:to="loc_us-gaap_SegmentDomain_34edaf1e-e322-4b70-957b-53452a62d33f_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_532fc0c3-17a9-49e8-ba8c-8e25f50c8654" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_34edaf1e-e322-4b70-957b-53452a62d33f" xlink:to="loc_us-gaap_SegmentDomain_532fc0c3-17a9-49e8-ba8c-8e25f50c8654" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_5ad4640e-c89f-456c-be23-1256225e4112" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_532fc0c3-17a9-49e8-ba8c-8e25f50c8654" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_5ad4640e-c89f-456c-be23-1256225e4112" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_0df0a162-83f2-4d2e-86f2-2609691dab67" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_532fc0c3-17a9-49e8-ba8c-8e25f50c8654" xlink:to="loc_apei_RasmussenUniversitySegmentMember_0df0a162-83f2-4d2e-86f2-2609691dab67" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_e549dfd1-15a5-48ba-9c01-028c5f818200" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_532fc0c3-17a9-49e8-ba8c-8e25f50c8654" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_e549dfd1-15a5-48ba-9c01-028c5f818200" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_5e9676d9-9123-4c54-9d4b-056e2150fa0b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f7df396-e5c9-4eb8-a24b-22146a3e8dde" xlink:to="loc_srt_ConsolidationItemsAxis_5e9676d9-9123-4c54-9d4b-056e2150fa0b" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_5e9676d9-9123-4c54-9d4b-056e2150fa0b_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_5e9676d9-9123-4c54-9d4b-056e2150fa0b" xlink:to="loc_srt_ConsolidationItemsDomain_5e9676d9-9123-4c54-9d4b-056e2150fa0b_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_c9199d22-8ad2-402e-8539-32e6d9ec255b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_5e9676d9-9123-4c54-9d4b-056e2150fa0b" xlink:to="loc_srt_ConsolidationItemsDomain_c9199d22-8ad2-402e-8539-32e6d9ec255b" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_72d912e8-29b2-4c19-90f5-e39d7f064061" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_c9199d22-8ad2-402e-8539-32e6d9ec255b" xlink:to="loc_us-gaap_OperatingSegmentsMember_72d912e8-29b2-4c19-90f5-e39d7f064061" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_3300a9c6-a2f9-4503-95ea-f3d0894db5eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateNonSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_c9199d22-8ad2-402e-8539-32e6d9ec255b" xlink:to="loc_us-gaap_CorporateNonSegmentMember_3300a9c6-a2f9-4503-95ea-f3d0894db5eb" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_d9aa884d-429a-497f-991c-12cd38cb2473" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenuesAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_RevenuesAbstract_d9aa884d-429a-497f-991c-12cd38cb2473" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_d1819da0-7f85-49f6-a5ea-1c813092fb1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_d9aa884d-429a-497f-991c-12cd38cb2473" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_d1819da0-7f85-49f6-a5ea-1c813092fb1a" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortizationAbstract_d3d33481-acdb-4b5e-af39-d0699d26bab1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationAndAmortizationAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_DepreciationAndAmortizationAbstract_d3d33481-acdb-4b5e-af39-d0699d26bab1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_11cc928b-fd89-4f99-8713-aecbc8dad198" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationAndAmortization"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DepreciationAndAmortizationAbstract_d3d33481-acdb-4b5e-af39-d0699d26bab1" xlink:to="loc_us-gaap_DepreciationAndAmortization_11cc928b-fd89-4f99-8713-aecbc8dad198" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLossAbstract_eecb1313-8239-4334-b67e-704822520685" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLossAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_OperatingIncomeLossAbstract_eecb1313-8239-4334-b67e-704822520685" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_32b51356-733f-4618-bcb0-785536d89ba7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingIncomeLossAbstract_eecb1313-8239-4334-b67e-704822520685" xlink:to="loc_us-gaap_OperatingIncomeLoss_32b51356-733f-4618-bcb0-785536d89ba7" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNetAbstract_2ae056e0-aaad-4751-b787-62ffdfdfea13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNetAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_InterestIncomeExpenseNetAbstract_2ae056e0-aaad-4751-b787-62ffdfdfea13" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_4769242b-aad8-49d2-9a9b-40f1425f2ccf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InterestIncomeExpenseNetAbstract_2ae056e0-aaad-4751-b787-62ffdfdfea13" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_4769242b-aad8-49d2-9a9b-40f1425f2ccf" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract_88b8d830-cadd-4dc8-aeed-6f1daa0c1cca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract_88b8d830-cadd-4dc8-aeed-6f1daa0c1cca" xlink:type="arc" order="4"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_54da6239-cf7d-4b94-834b-df4ec1d5ced5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract_88b8d830-cadd-4dc8-aeed-6f1daa0c1cca" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_54da6239-cf7d-4b94-834b-df4ec1d5ced5" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssetsAbstract_00ed9c99-21fa-4231-b5c9-413279ac3996" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireProductiveAssetsAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_97b8c70c-296d-426c-96f3-de97331b8d43" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssetsAbstract_00ed9c99-21fa-4231-b5c9-413279ac3996" xlink:type="arc" order="5"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_ed2d3ddd-eb73-4a59-8f3f-99e4082ff70d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentExpenditureAdditionToLongLivedAssets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PaymentsToAcquireProductiveAssetsAbstract_00ed9c99-21fa-4231-b5c9-413279ac3996" xlink:to="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_ed2d3ddd-eb73-4a59-8f3f-99e4082ff70d" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SegmentInformationSummaryofConsolidatedAssetsDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SegmentInformationSummaryofConsolidatedAssetsDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SegmentInformationSummaryofConsolidatedAssetsDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_11b3d635-dcab-491c-ac43-374a8fe17619" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_11061bf5-9fae-4ecf-8fa5-44aaa9fca677" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_11b3d635-dcab-491c-ac43-374a8fe17619" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_11061bf5-9fae-4ecf-8fa5-44aaa9fca677" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_b514f9ce-5134-409b-91a3-38411ffdd08e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_11061bf5-9fae-4ecf-8fa5-44aaa9fca677" xlink:to="loc_srt_ConsolidationItemsAxis_b514f9ce-5134-409b-91a3-38411ffdd08e" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b514f9ce-5134-409b-91a3-38411ffdd08e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_b514f9ce-5134-409b-91a3-38411ffdd08e" xlink:to="loc_srt_ConsolidationItemsDomain_b514f9ce-5134-409b-91a3-38411ffdd08e_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_791aeaa0-e27e-4cb9-83f5-f231fe201fc3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_b514f9ce-5134-409b-91a3-38411ffdd08e" xlink:to="loc_srt_ConsolidationItemsDomain_791aeaa0-e27e-4cb9-83f5-f231fe201fc3" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_acd84e2c-305d-4e1c-a6e4-9f5d35309e9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_791aeaa0-e27e-4cb9-83f5-f231fe201fc3" xlink:to="loc_us-gaap_OperatingSegmentsMember_acd84e2c-305d-4e1c-a6e4-9f5d35309e9b" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_28ac58e5-c85d-401c-83b8-5081feb5b783" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateNonSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_791aeaa0-e27e-4cb9-83f5-f231fe201fc3" xlink:to="loc_us-gaap_CorporateNonSegmentMember_28ac58e5-c85d-401c-83b8-5081feb5b783" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_11061bf5-9fae-4ecf-8fa5-44aaa9fca677" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497" xlink:to="loc_us-gaap_SegmentDomain_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_92d6b48d-4252-40a6-bf38-a3d1614403c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_81dff57c-b8db-4fe4-b5aa-de2eb0dd6497" xlink:to="loc_us-gaap_SegmentDomain_92d6b48d-4252-40a6-bf38-a3d1614403c2" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_b6039e8d-c4b2-40d2-be6a-fca8a0912215" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_92d6b48d-4252-40a6-bf38-a3d1614403c2" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_b6039e8d-c4b2-40d2-be6a-fca8a0912215" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_e9c6abf2-f19e-48c6-9e2e-f386e7a2c4d1" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_92d6b48d-4252-40a6-bf38-a3d1614403c2" xlink:to="loc_apei_RasmussenUniversitySegmentMember_e9c6abf2-f19e-48c6-9e2e-f386e7a2c4d1" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_3fda018e-66b0-45eb-93e4-84baaed4db0f" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_92d6b48d-4252-40a6-bf38-a3d1614403c2" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_3fda018e-66b0-45eb-93e4-84baaed4db0f" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_4a101a06-ac55-4393-98fb-d508f349b412" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_11b3d635-dcab-491c-ac43-374a8fe17619" xlink:to="loc_us-gaap_AssetsAbstract_4a101a06-ac55-4393-98fb-d508f349b412" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d4534e94-a577-4f4a-8eea-4a724b36c674" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4a101a06-ac55-4393-98fb-d508f349b412" xlink:to="loc_us-gaap_Assets_d4534e94-a577-4f4a-8eea-4a724b36c674" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/SubsequentEventsNarrativeDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#SubsequentEventsNarrativeDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/SubsequentEventsNarrativeDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_77355fad-01e2-4bd9-be5f-d337de0c5525" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_1263a34c-7639-478a-8e5d-39d9dd914968" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_77355fad-01e2-4bd9-be5f-d337de0c5525" xlink:to="loc_us-gaap_SubsequentEventTable_1263a34c-7639-478a-8e5d-39d9dd914968" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_26ac18cc-bd2e-40be-8a9c-d140d5e29df9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_1263a34c-7639-478a-8e5d-39d9dd914968" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_26ac18cc-bd2e-40be-8a9c-d140d5e29df9" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_26ac18cc-bd2e-40be-8a9c-d140d5e29df9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_26ac18cc-bd2e-40be-8a9c-d140d5e29df9" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_26ac18cc-bd2e-40be-8a9c-d140d5e29df9_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6448da32-bb12-4dfb-92f8-ef8410f7d554" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_26ac18cc-bd2e-40be-8a9c-d140d5e29df9" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6448da32-bb12-4dfb-92f8-ef8410f7d554" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_38bc084e-fd84-4ad0-9f5d-f988ee60d5f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6448da32-bb12-4dfb-92f8-ef8410f7d554" xlink:to="loc_us-gaap_SubsequentEventMember_38bc084e-fd84-4ad0-9f5d-f988ee60d5f2" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_OperatingLeaseTerminationFee_833a26fe-26f3-44f2-bed4-613f31189fe5" xlink:href="apei-20231231.xsd#apei_OperatingLeaseTerminationFee"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_77355fad-01e2-4bd9-be5f-d337de0c5525" xlink:to="loc_apei_OperatingLeaseTerminationFee_833a26fe-26f3-44f2-bed4-613f31189fe5" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnTerminationOfLease_8eeb0f2c-f1f8-4cc4-a12c-0bf2d593c946" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnTerminationOfLease"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_77355fad-01e2-4bd9-be5f-d337de0c5525" xlink:to="loc_us-gaap_GainLossOnTerminationOfLease_8eeb0f2c-f1f8-4cc4-a12c-0bf2d593c946" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://www.americanpubliceducation.com/role/ScheduleIIValuationandQualifyingAccountsDetails" xlink:type="simple" xlink:href="apei-20231231.xsd#ScheduleIIValuationandQualifyingAccountsDetails"/> |
| <link:definitionLink xlink:role="http://www.americanpubliceducation.com/role/ScheduleIIValuationandQualifyingAccountsDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_5a5ee248-2d9b-4978-9cc6-f45be62e9592" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ValuationAndQualifyingAccountsDisclosureLineItems"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_326b3671-f52d-4106-bee7-3b89df329a75" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ValuationAndQualifyingAccountsDisclosureTable"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_5a5ee248-2d9b-4978-9cc6-f45be62e9592" xlink:to="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_326b3671-f52d-4106-bee7-3b89df329a75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0de66e3a-f30e-44ad-964b-3892a56123ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_326b3671-f52d-4106-bee7-3b89df329a75" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0de66e3a-f30e-44ad-964b-3892a56123ce" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0de66e3a-f30e-44ad-964b-3892a56123ce_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0de66e3a-f30e-44ad-964b-3892a56123ce" xlink:to="loc_us-gaap_SegmentDomain_0de66e3a-f30e-44ad-964b-3892a56123ce_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0de66e3a-f30e-44ad-964b-3892a56123ce" xlink:to="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_AmericanPublicEducationIncSegmentMember_30a7b626-e60f-4274-a1ba-344e3cfba6ea" xlink:href="apei-20231231.xsd#apei_AmericanPublicEducationIncSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:to="loc_apei_AmericanPublicEducationIncSegmentMember_30a7b626-e60f-4274-a1ba-344e3cfba6ea" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RasmussenUniversitySegmentMember_6e01b905-8b7a-4891-af4f-ac37db410c64" xlink:href="apei-20231231.xsd#apei_RasmussenUniversitySegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:to="loc_apei_RasmussenUniversitySegmentMember_6e01b905-8b7a-4891-af4f-ac37db410c64" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_HondrosCollegeOfNursingSegmentMember_6d0f356c-39ce-4eb9-adfe-13a7f7af1c09" xlink:href="apei-20231231.xsd#apei_HondrosCollegeOfNursingSegmentMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:to="loc_apei_HondrosCollegeOfNursingSegmentMember_6d0f356c-39ce-4eb9-adfe-13a7f7af1c09" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateAndOtherMember_878b3ee3-4749-4dd4-b480-84a77f35eaad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateAndOtherMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_93da17b1-49f5-4c5d-8778-358012379033" xlink:to="loc_us-gaap_CorporateAndOtherMember_878b3ee3-4749-4dd4-b480-84a77f35eaad" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_61462746-face-412a-8369-ccbb99794f9d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureTable_326b3671-f52d-4106-bee7-3b89df329a75" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_61462746-face-412a-8369-ccbb99794f9d" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_61462746-face-412a-8369-ccbb99794f9d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_61462746-face-412a-8369-ccbb99794f9d" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_61462746-face-412a-8369-ccbb99794f9d_default" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_da6ade5e-f643-48b4-acb9-3aa0ab7419e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesDomain"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_61462746-face-412a-8369-ccbb99794f9d" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_da6ade5e-f643-48b4-acb9-3aa0ab7419e5" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForCreditLossMember_ba03694b-4417-4641-af77-bd7fd3d7795c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForCreditLossMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_da6ade5e-f643-48b4-acb9-3aa0ab7419e5" xlink:to="loc_us-gaap_AllowanceForCreditLossMember_ba03694b-4417-4641-af77-bd7fd3d7795c" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_799e7cfa-94f0-4ed0-96dc-8fde3b3b9c48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_5a5ee248-2d9b-4978-9cc6-f45be62e9592" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_799e7cfa-94f0-4ed0-96dc-8fde3b3b9c48" xlink:type="arc" order="0"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_df06ab53-c114-4f2a-9520-94932ac76fbe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ValuationAndQualifyingAccountsDisclosureLineItems_5a5ee248-2d9b-4978-9cc6-f45be62e9592" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_df06ab53-c114-4f2a-9520-94932ac76fbe" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_00ef2542-fcd6-46ac-a6db-916a09039b63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_96511447-cf0e-4f4e-b10b-8e459cb8afcc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_df06ab53-c114-4f2a-9520-94932ac76fbe" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_96511447-cf0e-4f4e-b10b-8e459cb8afcc" xlink:type="arc" order="2"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDeductions_646a2611-7364-4829-a8cb-7ea95366eb49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesDeductions"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_df06ab53-c114-4f2a-9520-94932ac76fbe" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDeductions_646a2611-7364-4829-a8cb-7ea95366eb49" xlink:type="arc" order="3"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_2d30c754-619c-4c2a-b893-0ddc585e4fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd#eedm"/> |
| <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrentAbstract"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LeaseLiabilityCurrent_3a89a10b-4d27-428c-bb1b-05e4dfa3f6ac" xlink:href="apei-20231231.xsd#apei_LeaseLiabilityCurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_apei_LeaseLiabilityCurrent_3a89a10b-4d27-428c-bb1b-05e4dfa3f6ac" xlink:type="arc" order="1"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesNoncurrentAbstract"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_LeaseLiabilityNoncurrent_e4ebafdd-6066-402d-89bc-f81440fafb83" xlink:href="apei-20231231.xsd#apei_LeaseLiabilityNoncurrent"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract" xlink:to="loc_apei_LeaseLiabilityNoncurrent_e4ebafdd-6066-402d-89bc-f81440fafb83" xlink:type="arc" order="1"/> |
| | </link:definitionLink> |
| <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#AwardTypeOnly"/> |
| <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_apei_RestrictedStockandRestrictedStockUnitsMember_5f00894b-ef89-44f6-a192-37f63d21d725" xlink:href="apei-20231231.xsd#apei_RestrictedStockandRestrictedStockUnitsMember"/> |
| | <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_apei_RestrictedStockandRestrictedStockUnitsMember_5f00894b-ef89-44f6-a192-37f63d21d725" xlink:type="arc" order="4"/> |
| | </link:definitionLink> |
| </link:linkbase> |