<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>543</ContextCount>
  <ElementCount>291</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>125</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>13</UnitCount>
  <MyReports>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED STATEMENTS OF INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOMEParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Statement - CONSOLIDATED STATEMENT OF CHANGES IN EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTOFCHANGESINEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENT OF CHANGES IN EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - MAGELLAN ACQUISITION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITION</Role>
      <ShortName>MAGELLAN ACQUISITION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - MEDFORD INCIDENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MEDFORDINCIDENT</Role>
      <ShortName>MEDFORD INCIDENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTS</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVES</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITY</Role>
      <ShortName>EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE LOSS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/ACCUMULATEDOTHERCOMPREHENSIVELOSS</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE LOSS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHARE</Role>
      <ShortName>EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - UNCONSOLIDATED AFFILIATES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATES</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIES</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - REVENUES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUES</Role>
      <ShortName>REVENUES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - SEGMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTS</Role>
      <ShortName>SEGMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - MAGELLAN ACQUISITION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONTables</Role>
      <ShortName>MAGELLAN ACQUISITION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/MAGELLANACQUISITION</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/FAIRVALUEMEASUREMENTS</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESTables</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVES</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/DEBT</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/ACCUMULATEDOTHERCOMPREHENSIVELOSSTables</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/ACCUMULATEDOTHERCOMPREHENSIVELOSS</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHARETables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EARNINGSPERSHARE</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - UNCONSOLIDATED AFFILIATES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESTables</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - REVENUES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESTables</Role>
      <ShortName>REVENUES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/REVENUES</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - SEGMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSTables</Role>
      <ShortName>SEGMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/SEGMENTS</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - MAGELLAN ACQUISITION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONNarrativeDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - MAGELLAN ACQUISITION - Acquisition Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionConsiderationDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - MAGELLAN ACQUISITION - Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - MAGELLAN ACQUISITION - Goodwill Related To Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONGoodwillRelatedToAcquisitionDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Goodwill Related To Acquisition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - MAGELLAN ACQUISITION - Acquisition Related Transaction Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionRelatedTransactionCostsDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition Related Transaction Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - MAGELLAN ACQUISITION - Acquisition, Pro Forma Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionProFormaFinancialInformationDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition, Pro Forma Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - MEDFORD INCIDENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MEDFORDINCIDENTDetails</Role>
      <ShortName>MEDFORD INCIDENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/MEDFORDINCIDENT</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - FAIR VALUE MEASUREMENTS - Recurring Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSRecurringFairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Recurring Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - FAIR VALUE MEASUREMENTS - Reconciliation of Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSReconciliationofFairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Reconciliation of Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - FAIR VALUE MEASUREMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSNarrativeDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNarrativeDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Fair Value of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESFairValueofDerivativeInstrumentsDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Fair Value of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Notional Quantities For Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNotionalQuantitiesForDerivativeInstrumentsDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Notional Quantities For Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Cash Flow Hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESCashFlowHedgesDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Cash Flow Hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - DEBT - Schedule of Consolidated Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTScheduleofConsolidatedDebtDetails</Role>
      <ShortName>DEBT - Schedule of Consolidated Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - DEBT - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTNarrativeDetails</Role>
      <ShortName>DEBT - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITYDetails</Role>
      <ShortName>EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EQUITY</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE LOSS - Accumulated Other Comprehensive Income, Before and After Reclassification (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/ACCUMULATEDOTHERCOMPREHENSIVELOSSAccumulatedOtherComprehensiveIncomeBeforeandAfterReclassificationDetails</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE LOSS - Accumulated Other Comprehensive Income, Before and After Reclassification (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE LOSS - AOCI Representing Unrealized Gains (Loss) Related to Risk Management (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/ACCUMULATEDOTHERCOMPREHENSIVELOSSAOCIRepresentingUnrealizedGainsLossRelatedtoRiskManagementDetails</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE LOSS - AOCI Representing Unrealized Gains (Loss) Related to Risk Management (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - EARNINGS PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHAREDetails</Role>
      <ShortName>EARNINGS PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EARNINGSPERSHARETables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - UNCONSOLIDATED AFFILIATES - Equity in Net Earnings from Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESEquityinNetEarningsfromInvestmentsDetails</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES - Equity in Net Earnings from Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - UNCONSOLIDATED AFFILIATES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESNarrativeDetails</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - REVENUES - Contract Assets and Contract Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESContractAssetsandContractLiabilitiesDetails</Role>
      <ShortName>REVENUES - Contract Assets and Contract Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - REVENUES - Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESPerformanceObligationsDetails</Role>
      <ShortName>REVENUES - Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - SEGMENTS - Operating Segments Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSOperatingSegmentsFinancialInformationDetails</Role>
      <ShortName>SEGMENTS - Operating Segments Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - SEGMENTS - Reconciliations for Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSReconciliationsforSegmentsDetails</Role>
      <ShortName>SEGMENTS - Reconciliations for Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="oke-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - SEGMENTS - Reconciliation of Net Income to Total Segment Adjusted EBITDA (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSReconciliationofNetIncometoTotalSegmentAdjustedEBITDADetails</Role>
      <ShortName>SEGMENTS - Reconciliation of Net Income to Total Segment Adjusted EBITDA (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="oke-20230930.htm">oke-20230930.htm</File>
    <File>oke-20230930.xsd</File>
    <File>oke-20230930_cal.xml</File>
    <File>oke-20230930_def.xml</File>
    <File>oke-20230930_lab.xml</File>
    <File>oke-20230930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>oke-20230930_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1462">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
