<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>299</ContextCount>
  <ElementCount>315</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>49</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/Coverpage</Role>
      <ShortName>Cover page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - ORGANIZATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ORGANIZATION</Role>
      <ShortName>ORGANIZATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2103102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2116103 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2124104 - Disclosure - ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ALLOWANCEFORCREDITLOSSES</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2127105 - Disclosure - ACQUISITIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONS</Role>
      <ShortName>ACQUISITIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2133106 - Disclosure - INVESTMENTS AND FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INVESTMENTSANDFAIRVALUEMEASUREMENTS</Role>
      <ShortName>INVESTMENTS AND FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2135107 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASES</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2141108 - Disclosure - GOODWILL</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/GOODWILL</Role>
      <ShortName>GOODWILL</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2145109 - Disclosure - INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INTANGIBLEASSETS</Role>
      <ShortName>INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2148110 - Disclosure - LONG-TERM DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LONGTERMDEBT</Role>
      <ShortName>LONG-TERM DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2153111 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2155112 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/COMMITMENTSANDCONTINGENCIES</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2158113 - Disclosure - SEGMENT REPORTING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTING</Role>
      <ShortName>SEGMENT REPORTING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2164114 - Disclosure - STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/STOCKHOLDERSEQUITY</Role>
      <ShortName>STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2166115 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUBSEQUENTEVENTS</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2204201 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2317302 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2325303 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ALLOWANCEFORCREDITLOSSESTables</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/ALLOWANCEFORCREDITLOSSES</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2328304 - Disclosure - ACQUISITIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONSTables</Role>
      <ShortName>ACQUISITIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/ACQUISITIONS</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2336305 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASESTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/LEASES</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2342306 - Disclosure - GOODWILL (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/GOODWILLTables</Role>
      <ShortName>GOODWILL (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/GOODWILL</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2346307 - Disclosure - INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INTANGIBLEASSETSTables</Role>
      <ShortName>INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/INTANGIBLEASSETS</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2349308 - Disclosure - LONG-TERM DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LONGTERMDEBTTables</Role>
      <ShortName>LONG-TERM DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/LONGTERMDEBT</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2356309 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/COMMITMENTSANDCONTINGENCIESTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/COMMITMENTSANDCONTINGENCIES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2359310 - Disclosure - SEGMENT REPORTING (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTINGTables</Role>
      <ShortName>SEGMENT REPORTING (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.costar.com/role/SEGMENTREPORTING</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2402401 - Disclosure - ORGANIZATION (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ORGANIZATIONDetails</Role>
      <ShortName>ORGANIZATION (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ORGANIZATION</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Common Stock Split) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESCommonStockSplitDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Common Stock Split) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Revenue Recognition) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRevenueRecognitionDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Revenue Recognition) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Foreign Currency Translation and Accumulated Other Comprehensive Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESForeignCurrencyTranslationandAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Foreign Currency Translation and Accumulated Other Comprehensive Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2409405 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Advertising Costs) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESAdvertisingCostsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Advertising Costs) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2410406 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Net Income Per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNetIncomePerShareDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Net Income Per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2411407 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Anti-dilutive Shares) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESAntidilutiveSharesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Anti-dilutive Shares) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2412408 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Stock-Based Compensation) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESStockBasedCompensationDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Stock-Based Compensation) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2413409 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Cash, Cash Equivalents and Restricted Cash Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESCashCashEquivalentsandRestrictedCashNarrativeDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Cash, Cash Equivalents and Restricted Cash Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2414410 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Allowance for Credit Losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESAllowanceforCreditLossesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Allowance for Credit Losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2415411 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Recent Accounting Pronouncements) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRecentAccountingPronouncementsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Recent Accounting Pronouncements) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2418412 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Disaggregated Revenue) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSDisaggregatedRevenueDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Disaggregated Revenue) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2419413 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Contract Assets and Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSContractAssetsandLiabilitiesDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Contract Assets and Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2420414 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Contract Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSContractAssetsDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Contract Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2421415 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2422416 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Commissions) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSCommissionsDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Commissions) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2423417 - Disclosure - REVENUE FROM CONTRACTS WITH CUSTOMERS (Unsatisfied Performance Obligations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSUnsatisfiedPerformanceObligationsDetails</Role>
      <ShortName>REVENUE FROM CONTRACTS WITH CUSTOMERS (Unsatisfied Performance Obligations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2426418 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ALLOWANCEFORCREDITLOSSESDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ALLOWANCEFORCREDITLOSSESTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2429419 - Disclosure - ACQUISITIONS (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONSNarrativeDetails</Role>
      <ShortName>ACQUISITIONS (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ACQUISITIONSTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2430420 - Disclosure - ACQUISITIONS (Schedule of Recognized Identified Assets Acquired and Liabilities Assumed) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONSScheduleofRecognizedIdentifiedAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>ACQUISITIONS (Schedule of Recognized Identified Assets Acquired and Liabilities Assumed) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ACQUISITIONSTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2431421 - Disclosure - ACQUISITIONS (Intangible Assets Acquired) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONSIntangibleAssetsAcquiredDetails</Role>
      <ShortName>ACQUISITIONS (Intangible Assets Acquired) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ACQUISITIONSTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2432422 - Disclosure - ACQUISITIONS (Business Acquisition, Pro Forma Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/ACQUISITIONSBusinessAcquisitionProFormaInformationDetails</Role>
      <ShortName>ACQUISITIONS (Business Acquisition, Pro Forma Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/ACQUISITIONSTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2434423 - Disclosure - INVESTMENTS AND FAIR VALUE MEASUREMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INVESTMENTSANDFAIRVALUEMEASUREMENTSDetails</Role>
      <ShortName>INVESTMENTS AND FAIR VALUE MEASUREMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/INVESTMENTSANDFAIRVALUEMEASUREMENTS</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2437424 - Disclosure - LEASES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASESNarrativeDetails</Role>
      <ShortName>LEASES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LEASESTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2438425 - Disclosure - LEASES (Lease Cost) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASESLeaseCostDetails</Role>
      <ShortName>LEASES (Lease Cost) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LEASESTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2439426 - Disclosure - LEASES (Supplemental Balance Sheet Information Related to Leases) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASESSupplementalBalanceSheetInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES (Supplemental Balance Sheet Information Related to Leases) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LEASESTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2440427 - Disclosure - LEASES (Supplemental Cash Flow Information Related to Leases) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LEASESSupplementalCashFlowInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES (Supplemental Cash Flow Information Related to Leases) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LEASESTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2443428 - Disclosure - GOODWILL (Goodwill by Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/GOODWILLGoodwillbySegmentDetails</Role>
      <ShortName>GOODWILL (Goodwill by Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/GOODWILLTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2444429 - Disclosure - GOODWILL (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/GOODWILLNarrativeDetails</Role>
      <ShortName>GOODWILL (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/GOODWILLTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2447430 - Disclosure - INTANGIBLE ASSETS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INTANGIBLEASSETSDetails</Role>
      <ShortName>INTANGIBLE ASSETS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/INTANGIBLEASSETSTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2450431 - Disclosure - LONG-TERM DEBT (Schedule of Debt) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LONGTERMDEBTScheduleofDebtDetails</Role>
      <ShortName>LONG-TERM DEBT (Schedule of Debt) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LONGTERMDEBTTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2451432 - Disclosure - LONG-TERM DEBT (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LONGTERMDEBTNarrativeDetails</Role>
      <ShortName>LONG-TERM DEBT (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LONGTERMDEBTTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2452433 - Disclosure - LONG-TERM DEBT (Interest) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/LONGTERMDEBTInterestDetails</Role>
      <ShortName>LONG-TERM DEBT (Interest) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/LONGTERMDEBTTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2454434 - Disclosure - INCOME TAXES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/INCOMETAXESDetails</Role>
      <ShortName>INCOME TAXES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/INCOMETAXES</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2457435 - Disclosure - COMMITMENTS AND CONTINGENCIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/COMMITMENTSANDCONTINGENCIESDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/COMMITMENTSANDCONTINGENCIESTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2460436 - Disclosure - SEGMENT REPORTING (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTINGNarrativeDetails</Role>
      <ShortName>SEGMENT REPORTING (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SEGMENTREPORTINGTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2461437 - Disclosure - SEGMENT REPORTING (EBITDA) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTINGEBITDADetails</Role>
      <ShortName>SEGMENT REPORTING (EBITDA) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SEGMENTREPORTINGTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2462438 - Disclosure - SEGMENT REPORTING (Reconciliation of Net Income (Loss) to EBITDA) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTINGReconciliationofNetIncomeLosstoEBITDADetails</Role>
      <ShortName>SEGMENT REPORTING (Reconciliation of Net Income (Loss) to EBITDA) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SEGMENTREPORTINGTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2463439 - Disclosure - SEGMENT REPORTING (Summarized Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/SEGMENTREPORTINGSummarizedInformationDetails</Role>
      <ShortName>SEGMENT REPORTING (Summarized Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/SEGMENTREPORTINGTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="csgp-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2465440 - Disclosure - STOCKHOLDERS' EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.costar.com/role/STOCKHOLDERSEQUITYDetails</Role>
      <ShortName>STOCKHOLDERS' EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.costar.com/role/STOCKHOLDERSEQUITY</ParentRole>
      <Position>72</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 2 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:ContractWithCustomerLiabilityRevenueRecognized -  csgp-20220930.htm 4</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="csgp-20220930.htm">csgp-20220930.htm</File>
    <File>csgp-093022xex311.htm</File>
    <File>csgp-093022xex312.htm</File>
    <File>csgp-093022xex321.htm</File>
    <File>csgp-093022xex322.htm</File>
    <File>csgp-20220930.xsd</File>
    <File>csgp-20220930_cal.xml</File>
    <File>csgp-20220930_def.xml</File>
    <File>csgp-20220930_lab.xml</File>
    <File>csgp-20220930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>csgp-20220930_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="876">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
