<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ddog-20260421.xsd" xlink:type="simple"/>
    <context id="duration_2026-04-21_to_2026-04-21">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001561550</identifier>
        </entity>
        <period>
            <startDate>2026-04-21</startDate>
            <endDate>2026-04-21</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-354">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-04-21_to_2026-04-21"
      id="Hidden_dei_EntityCentralIndexKey">0001561550</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate
      contextRef="duration_2026-04-21_to_2026-04-21"
      id="Hidden_dei_CurrentFiscalYearEndDate_duration_2026-04-21_to_2026-04-21">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-366">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-367">2026-04-21</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-368">DATADOG, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-369">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-370">001-39051</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-371">27-2825503</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-71">620 8th Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-372">45th Floor</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-373">New York</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-374">NY</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-375">10018</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-376">(866)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-377">329-4466</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-378">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-379">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-380">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-381">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-382">Class&#160;A Common Stock, par value $0.00001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-383">DDOG</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-384">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-04-21_to_2026-04-21" id="ixv-385">false</dei:EntityEmergingGrowthCompany>
</xbrl>
