7Baggers

MongoDB, Inc
(NASDAQ:MDB) 

MDB stock logo

MongoDB, Inc. provides general purpose database platform worldwide. The company offers MongoDB Enterprise Advanced, a commercial database server for enterprise customers to run in the cloud, on-premise, or in a hybrid environment; MongoDB Atlas, a hosted multi-cloud database-as-a-service solution; a...

Founded: 2007
IPO Price: $24 (Oct 20, 2017)
Full Time Employees: 4,619 (Jan 2023)
Founder: Kevin P. Ryan, Eliot Horowitz, Dwight Merriman 
CEO: Chirantan Desai  
Sector: Technology
Industry: Software-Infrastructure
blind

Share this website to your friends
• Market Cap:
• Exchange:
• Shs Outstanding:
• Employees:
• Beta:
• Return on Equity (ROE) ttm:
• Return on Assets (ROA) ttm:
• EPS ttm:
• Book value per Share:
• Cash per Share:
• Current ast per Share:
• P/E ttm:
• P/E forward:
• P/E ttm high:
• P/E ttm low:
• P/S ttm:
• P/B ttm:
• P/FCF ttm:
• PEG ratio:
• Cash Ratio ttm:
• Quick Ratio ttm:
• Current Ratio ttm:
• Gross Mgn ttm:
• EBITDA Mgn ttm:
• Operating Mgn ttm:
• Net Income Mgn ttm:
• Trailing Div yield:
• Forward Div yield:
• Payout Ratio ttm:
• Ex-Dividend date:
• Target Price High:
• Target Price Low:
• Target Price Mean:
• Number of Analysts:
• Debt Ratio ttm:
• Debt to Equity ttm:
• Total Net Debt:
At a glance:
  • Cloud-First Strategy Drives Revenue Growth: MongoDB Atlas, the company's fully managed cloud database service, remains the primary engine for strong subscription revenue growth and customer expansion, reflecting the broader shift to cloud-native solutions.
  • Improving Path Towards Profitability: While still often reporting GAAP losses and negative free cash flow, MongoDB has demonstrated improving operating leverage and narrowing cash burn, signaling progress towards sustainable profitability.
  • Strong Developer Adoption and Market Leadership: MongoDB maintains a dominant position in the NoSQL document database market, leveraging its open-source roots and developer-friendly platform to foster widespread adoption and mindshare.
  • Expanding Data Platform Capabilities: The company is strategically broadening its platform beyond the core database, integrating features like search, analytics, and mobile synchronization to address a wider range of data management needs and increase customer stickiness.
Bull Thesis:
  • Dominant Cloud Database-as-a-Service (DBaaS) Growth with MongoDB Atlas: MongoDB Atlas continues to be the primary growth engine, demonstrating robust adoption and revenue expansion. Its fully managed, multi-cloud offering simplifies database operations, attracting a wide range of developers and enterprises seeking scalability, reliability, and ease of use, driving significant recurring revenue and high retention rates.
  • Unrivaled Developer Mindshare and Ecosystem Lock-in: MongoDB maintains its position as one of the most popular databases among developers due to its flexible document model and intuitive API. This strong developer preference creates a powerful network effect, leading to widespread adoption, a rich ecosystem of tools, and high switching costs for organizations once deeply integrated into their applications.
  • Expanding Enterprise Adoption and Workload Diversity: Beyond its startup roots, MongoDB is increasingly being adopted by large enterprises for mission-critical applications. The company's continuous innovation, including features like Atlas Search, Time Series, and Column Store, allows it to address a broader range of use cases and compete effectively against traditional relational databases and other specialized data stores.
  • Strategic Partnerships and Global Market Expansion: MongoDB is actively forging strategic partnerships with major cloud providers and system integrators, enhancing its go-to-market reach and making it easier for customers to deploy and manage their databases. Its global presence and localized support enable it to capture market share in international markets, further diversifying its revenue streams and growth opportunities.
Bear Thesis:
  • Intense Competition from Hyperscalers and Open Source Alternatives: MongoDB faces significant competitive pressure from cloud providers like AWS (DocumentDB), Azure (Cosmos DB), and Google Cloud, which offer their own document-oriented databases, often deeply integrated into their ecosystems and potentially at lower costs. Additionally, other open-source NoSQL databases and forks present viable alternatives, potentially commoditizing the market.
  • High Valuation and Persistent Profitability Concerns: Despite strong revenue growth, MongoDB's stock often trades at a premium valuation based on high revenue multiples. The company has historically struggled to achieve consistent GAAP profitability and positive free cash flow, raising questions about its long-term financial sustainability and potential vulnerability in a market less tolerant of unprofitable growth.
  • Macroeconomic Headwinds and Potential for IT Spending Slowdown: A global economic slowdown or recession could lead to reduced IT budgets and delayed project implementations across enterprises. This could impact MongoDB's new customer acquisition, expansion within existing accounts, and overall revenue growth rates, particularly for its consumption-based Atlas service, which is sensitive to usage fluctuations.
  • Licensing Model Scrutiny and Open Source Community Friction: While MongoDB changed its license to SSPL to protect its intellectual property from cloud providers, this move has created some friction within the open-source community and could deter some potential users or partners who prefer more permissive licenses. This might limit broader adoption in certain segments or encourage the use of alternative solutions.
Main Competitors:
  • Amazon Web Services (AWS) ($AMZN) (Amazon DynamoDB, Amazon DocumentDB (with MongoDB compatibility), Amazon Aurora), AWS competes broadly across the database landscape. Amazon DocumentDB is a direct, MongoDB-compatible database service, allowing users to run MongoDB workloads within AWS without using MongoDB Atlas. Amazon DynamoDB is a highly scalable NoSQL key-value and document database that competes for high-performance, low-latency applications. AWS also offers relational databases like Amazon Aurora and RDS, which compete for general-purpose application backends. Their competitive advantage lies in deep integration with the vast AWS ecosystem, global infrastructure, and a 'pay-as-you-go' model.
  • Microsoft Azure ($MSFT) (Azure Cosmos DB (with MongoDB API), Azure SQL Database, Azure Database for PostgreSQL), Microsoft Azure offers Azure Cosmos DB, a globally distributed, multi-model database service that includes a native MongoDB API. This allows developers to use MongoDB drivers and tools to interact with Cosmos DB, directly competing with MongoDB Atlas for cloud-native applications. Azure also provides a suite of relational databases like Azure SQL Database and managed PostgreSQL, which compete for traditional and modern application backends, leveraging Azure's integrated services and global network.
  • Google Cloud Platform (GCP) ($GOOGL) (Google Cloud Firestore, Google Cloud Spanner, Google Cloud SQL), GCP competes with its own set of cloud-native database services. Google Cloud Firestore is a flexible, scalable NoSQL document database that directly competes with MongoDB for new application development, especially those leveraging Google's ecosystem for analytics and AI/ML. Google Cloud Spanner offers a unique globally distributed relational database, and Cloud SQL provides managed instances of popular open-source relational databases, all vying for the same application data storage needs.
  • DataStax (Astra DB, DataStax Enterprise (based on Apache Cassandra)), DataStax provides enterprise-grade distributions and managed services (Astra DB) for Apache Cassandra, a wide-column NoSQL database. While Cassandra has a different data model, it competes with MongoDB for applications requiring massive scale, high write throughput, and always-on availability, particularly in use cases like IoT, real-time analytics, and operational data stores where MongoDB might also be considered. Astra DB directly competes with MongoDB Atlas as a fully managed NoSQL database service.
  • PostgreSQL (and related managed services) (PostgreSQL (with JSONB support)), PostgreSQL is a powerful open-source relational database that has evolved to include robust JSONB support, allowing it to handle semi-structured data effectively. This makes it a strong competitor for many use cases where developers might consider MongoDB, especially when ACID guarantees and SQL querying capabilities are also desired. Various companies offer managed PostgreSQL services (e.g., EDB, Neon, Supabase), providing cloud-native alternatives that challenge MongoDB's position, particularly for developers seeking a versatile, open-source-backed solution.
Moat:
MongoDB's primary moat lies in its strong developer mindshare, the flexibility and scalability of its document data model, and the comprehensive, fully managed MongoDB Atlas platform which offers multi-cloud deployment and a rich ecosystem of features (search, analytics, mobile). However, it faces intense competition from major cloud providers (AWS, Azure, GCP) who offer their own NoSQL databases (e.g., DynamoDB, Cosmos DB, Firestore) and often provide MongoDB-compatible services (e.g., DocumentDB, Cosmos DB's MongoDB API), leveraging their vast ecosystems, integrated services, and competitive pricing. Other NoSQL databases (like Cassandra) and increasingly capable relational databases (like PostgreSQL with JSONB support) also compete for various use cases, challenging MongoDB's position as the go-to database for modern applications.
Income Statements:
Quarterly
Annual
    Unit: USD2026-04-30 2026-01-31 2025-10-31 2025-07-31 2025-04-30 2025-01-31 2024-10-31 2024-07-31 2024-04-30 2024-01-31 2023-10-31 2023-07-31 2023-04-30 2023-01-31 2022-10-31 2022-07-31 2022-04-30 2022-01-31 2021-10-31 2021-07-31 2021-04-30 2021-01-31 2020-10-31 2020-07-31 2020-04-30 2020-01-31 2019-10-31 2019-07-31 2019-04-30 2019-01-31 2018-10-31 2018-07-31 2018-04-30 2018-01-31 2017-10-31 
                                       
      revenue:
                                       
      subscription
    666,138,000 673,100,000 609,067,000 572,355,000 531,455,000 530,958,000 512,205,000 463,805,000 436,896,000 444,939,000 418,339,000 409,334,000 354,714,000 348,178,000 320,756,000 291,607,000 274,581,000 258,225,000 217,871,000 191,381,000 174,570,000 163,946,000 144,069,000 132,478,000 124,856,000 117,849,000 103,827,000 94,156,000 83,994,000 90,803,000 60,090,000 52,933,000 44,565,000 41,887,000 37,885,000 
      services
    21,478,000 21,972,000 19,242,000 19,047,000 17,559,000 17,440,000 17,170,000 14,304,000 13,665,000 13,063,000 14,599,000 14,457,000 13,566,000 13,134,000 12,865,000 12,053,000 10,866,000 8,269,000 9,022,000 7,366,000 7,078,000 7,053,000 6,702,000 5,803,000 5,473,000 5,674,000 5,614,000 5,212,000 5,394,000 5,516,000 4,895,000 4,557,000 3,657,000 3,154,000 3,603,000 
      total revenue
    687,616,000 695,072,000 628,309,000 591,402,000 549,014,000 548,398,000 529,375,000 478,109,000 450,561,000 458,002,000 432,938,000 423,791,000 368,280,000 361,312,000 333,621,000 303,660,000 285,447,000 266,494,000 226,893,000 198,747,000 181,648,000 170,999,000 150,771,000 138,281,000 130,329,000 123,523,000 109,441,000 99,368,000 89,388,000 96,319,000 64,985,000 57,490,000 48,222,000 45,041,000 41,488,000 
      yoy
    25.25% 26.75% 18.69% 23.70% 21.85% 19.74% 22.28% 12.82% 22.34% 26.76% 29.77% 39.56% 29.02% 35.58% 47.04% 52.79% 57.14% 55.85% 50.49% 43.73% 39.38% 38.43% 37.76% 39.16% 45.80% 28.24% 68.41% 72.84% 85.37% 113.85% 56.64%     
      qoq
    -1.07% 10.63% 6.24% 7.72% 0.11% 3.59% 10.72% 6.11% -1.62% 5.79% 2.16% 15.07% 1.93% 8.30% 9.87% 6.38% 7.11% 17.45% 14.16% 9.41% 6.23% 13.42% 9.03% 6.10% 5.51% 12.87% 10.14% 11.16% -7.20% 48.22% 13.04% 19.22% 7.06% 8.56%  
      cost of revenue:
                                       
      total cost of revenue
    191,441,000 187,412,000 179,177,000 171,428,000 158,041,000 149,015,000 135,331,000 128,253,000 122,697,000 114,641,000 107,058,000 105,337,000 97,449,000 89,160,000 93,652,000 88,277,000 78,215,000 75,798,000 68,464,000 60,702,000 54,528,000 50,985,000 46,110,000 42,304,000 37,677,000 34,791,000 32,191,000 30,202,000 28,172,000 25,567,000 17,758,000 16,494,000 13,749,000 12,401,000 11,071,000 
      gross profit
    496,175,000 507,660,000 449,132,000 419,974,000 390,973,000 399,383,000 394,044,000 349,856,000 327,864,000 343,361,000 325,880,000 318,454,000 270,831,000 272,152,000 239,969,000 215,383,000 207,232,000 190,696,000 158,429,000 138,045,000 127,120,000 120,014,000 104,661,000 95,977,000 92,652,000 88,732,000 77,250,000 69,166,000 61,216,000 70,752,000 47,227,000 40,996,000 34,473,000 32,640,000 30,417,000 
      yoy
    26.91% 27.11% 13.98% 20.04% 19.25% 16.32% 20.92% 9.86% 21.06% 26.17% 35.80% 47.85% 30.69% 42.72% 51.47% 56.02% 63.02% 58.89% 51.37% 43.83% 37.20% 35.25% 35.48% 38.76% 51.35% 25.41% 63.57% 68.71% 77.58% 116.76% 55.27%     
      qoq
    -2.26% 13.03% 6.94% 7.42% -2.11% 1.35% 12.63% 6.71% -4.51% 5.36% 2.33% 17.58% -0.49% 13.41% 11.42% 3.93% 8.67% 20.37% 14.77% 8.59% 5.92% 14.67% 9.05% 3.59% 4.42% 14.86% 11.69% 12.99% -13.48% 49.81% 15.20% 18.92% 5.62% 7.31%  
      gross margin %
    72.16% 73.04% 71.48% 71.01% 71.21% 72.83% 74.44% 73.17% 72.77% 74.97% 75.27% 75.14% 73.54% 75.32% 71.93% 70.93% 72.60% 71.56% 69.83% 69.46% 69.98% 70.18% 69.42% 69.41% 71.09% 71.83% 70.59% 69.61% 68.48% 73.46% 72.67% 71.31% 71.49% 72.47% 73.32% 
      operating expenses:
                                       
      sales and marketing
    249,334,000 248,537,000 230,864,000 244,065,000 220,923,000 212,211,000 217,954,000 221,539,000 219,444,000 211,116,000 192,977,000 195,934,000 182,733,000 189,916,000 177,419,000 181,598,000 150,268,000 144,263,000 120,360,000 109,377,000 97,890,000 97,683,000 83,214,000 75,078,000 69,125,000 67,234,000 57,015,000 53,524,000 46,120,000 38,411,000 38,116,000 37,880,000 33,889,000 32,863,000 28,050,000 
      research and development
    200,409,000 189,125,000 176,610,000 181,739,000 168,829,000 150,400,000 151,410,000 148,967,000 146,060,000 145,553,000 128,150,000 125,420,000 116,817,000 110,891,000 106,392,000 108,037,000 96,372,000 89,417,000 82,256,000 72,396,000 64,751,000 55,911,000 54,363,000 49,255,000 45,632,000 41,638,000 39,387,000 37,140,000 30,868,000 26,600,000 23,179,000 21,430,000 18,645,000 16,788,000 16,588,000 
      general and administrative
    71,236,000 69,694,000 60,082,000 59,464,000 54,775,000 55,334,000 52,556,000 50,790,000 60,546,000 57,658,000 49,969,000 46,103,000 39,828,000 44,294,000 39,081,000 40,591,000 36,532,000 35,635,000 32,581,000 28,803,000 25,925,000 25,813,000 25,175,000 21,424,000 19,935,000 20,763,000 19,562,000 16,174,000 14,805,000 14,596,000 14,986,000 12,254,000 11,227,000 10,242,000 9,829,000 
      total operating expenses
    520,979,000 507,356,000 467,556,000 485,268,000 444,527,000 417,945,000 421,920,000 421,296,000 426,050,000 414,327,000 371,096,000 367,457,000 339,378,000 345,101,000 322,892,000 330,226,000 283,172,000 269,315,000 235,197,000 210,576,000 188,566,000 179,407,000 162,752,000 145,757,000 134,692,000 129,635,000 115,964,000 106,838,000 91,793,000 79,607,000 76,281,000 71,564,000 63,761,000 59,893,000 54,467,000 
      income from operations
    -24,804,000 304,000 -18,424,000 -65,294,000 -53,554,000 -18,562,000 -27,876,000 -71,440,000 -98,186,000 -70,966,000 -45,216,000 -49,003,000 -68,547,000 -72,949,000 -82,923,000 -114,843,000 -75,940,000 -78,619,000 -76,768,000 -72,531,000 -61,446,000 -59,393,000 -58,091,000 -49,780,000 -42,040,000 -40,903,000 -38,714,000 -37,672,000 -30,577,000 -8,855,000 -29,054,000 -30,568,000 -29,288,000 -27,253,000 -24,050,000 
      yoy
    -53.68% -101.64% -33.91% -8.60% -45.46% -73.84% -38.35% 45.79% 43.24% -2.72% -45.47% -57.33% -9.74% -7.21% 8.02% 58.34% 23.59% 32.37% 32.15% 45.70% 46.16% 45.20% 50.05% 32.14% 37.49% 361.92% 33.25% 23.24% 4.40% -67.51% 20.81%     
      qoq
    -8259.21% -101.65% -71.78% 21.92% 188.51% -33.41% -60.98% -27.24% 38.36% 56.95% -7.73% -28.51% -6.03% -12.03% -27.79% 51.23% -3.41% 2.41% 5.84% 18.04% 3.46% 2.24% 16.70% 18.41% 2.78% 5.65% 2.77% 23.20% 245.31% -69.52% -4.95% 4.37% 7.47% 13.32%  
      operating margin %
    -3.61% 0.04% -2.93% -11.04% -9.75% -3.38% -5.27% -14.94% -21.79% -15.49% -10.44% -11.56% -18.61% -20.19% -24.86% -37.82% -26.60% -29.50% -33.83% -36.49% -33.83% -34.73% -38.53% -36.00% -32.26% -33.11% -35.37% -37.91% -34.21% -9.19% -44.71% -53.17% -60.74% -60.51% -57.97% 
      other income:
                                       
      interest income
    19,351,000 20,338,000 21,160,000 23,637,000 23,458,000 24,447,000 23,869,000 24,260,000 23,111,000 22,373,000 20,358,000 19,470,000 18,037,000 15,712,000 6,932,000 1,680,000 624,000 392,000 204,000 157,000 173,000 238,000 572,000 1,032,000 2,727,000 2,036,000 1,986,000 2,231,000 2,303,000 2,227,000 2,459,000 1,518,000 959,000 752,000 227,000 
      interest expense
    -853,000 212,000 -801,000 -1,473,000 -1,066,000 -1,635,000 -2,278,000 -2,282,000 -1,897,000 -2,419,000 -1,964,000 -2,611,000 -2,393,000 -2,418,000 -2,497,000 -2,429,000 -2,453,000 -2,505,000 -2,597,000 -2,556,000 -3,658,000 -14,269,000 -14,093,000 -13,950,000 -13,795,000 -6,541,000 -4,813,000 -4,940,000 -4,689,000 -4,638,000 -4,358,000 -1,294,000    
      other income
    15,100,000 -1,451,000 -585,000 10,000 -2,162,000 -96,000 -824,000 -1,170,000 -1,040,000 -1,074,000 1,160,000 -1,865,000 1,144,000 -1,829,000 -1,318,000 -224,000 1,621,000 -2,150,000 117,000 -665,000 -437,000 -268,000 -113,000 -845,000 -625,000 -14,891,000 -283,000 -296,000 -415,000 -13,000 -400,000 -656,000 -368,000 597,000 -57,000 
      income before provision for income taxes
    8,794,000 19,403,000 1,350,000 -43,120,000 -33,324,000 4,154,000 -7,109,000 -50,632,000 -78,012,000 -52,086,000 -25,662,000 -34,009,000 -51,759,000 -61,484,000 -79,806,000 -115,816,000 -76,148,000 -82,882,000 -79,044,000 -75,595,000 -65,368,000 -73,692,000 -71,725,000 -63,543,000 -53,733,000 -60,299,000 -41,824,000 -40,677,000 -33,378,000 -11,279,000 -31,353,000 -31,000,000 -28,697,000 -25,904,000 -23,880,000 
      provision for income taxes
    4,360,000 3,873,000 3,357,000 3,928,000 4,302,000 -11,672,000 2,667,000 3,897,000 2,581,000 3,374,000 3,635,000 3,588,000 2,487,000 2,914,000 5,035,000 3,049,000 1,146,000 1,566,000 2,249,000 1,538,000 -1,376,000 2,109,000 926,000 982,000 234,000 2,264,000 559,000 -3,341,000 -138,000 -3,998,000 -33,000 246,000 467,000 470,000 336,000 
      net income
    4,434,000 15,530,000 -2,007,000 -47,048,000 -37,626,000 15,826,000 -9,776,000 -54,529,000 -80,593,000 -55,460,000 -29,297,000 -37,597,000 -54,246,000 -64,398,000 -84,841,000 -118,865,000 -77,294,000 -84,448,000 -81,293,000 -77,133,000 -63,992,000 -75,801,000 -72,651,000 -64,525,000 -53,967,000 -62,563,000 -42,383,000 -37,336,000 -33,240,000 -7,281,000 -31,320,000 -31,246,000 -29,164,000 -26,374,000 -24,216,000 
      yoy
    -111.78% -1.87% -79.47% -13.72% -53.31% -128.54% -66.63% 45.04% 48.57% -13.88% -65.47% -68.37% -29.82% -23.74% 4.36% 54.10% 20.79% 11.41% 11.90% 19.54% 18.58% 21.16% 71.42% 72.82% 62.36% 759.26% 35.32% 19.49% 13.98% -72.39% 29.34%     
      qoq
    -71.45% -873.79% -95.73% 25.04% -337.75% -261.89% -82.07% -32.34% 45.32% 89.30% -22.08% -30.69% -15.76% -24.10% -28.62% 53.78% -8.47% 3.88% 5.39% 20.54% -15.58% 4.34% 12.59% 19.56% -13.74% 47.61% 13.52% 12.32% 356.53% -76.75% 0.24% 7.14% 10.58% 8.91%  
      net income margin %
    0.64% 2.23% -0.32% -7.96% -6.85% 2.89% -1.85% -11.41% -17.89% -12.11% -6.77% -8.87% -14.73% -17.82% -25.43% -39.14% -27.08% -31.69% -35.83% -38.81% -35.23% -44.33% -48.19% -46.66% -41.41% -50.65% -38.73% -37.57% -37.19% -7.56% -48.20% -54.35% -60.48% -58.56% -58.37% 
      net income per share
     0.19 -0.02 -0.58 -0.46 0.24 -0.13 -0.74 -1.1 -0.77 -0.41 -0.53 -0.77 -0.92 -1.23 -1.74 -1.14 -1.26 -1.22 -1.22 -1.04 -1.26 -1.22 -1.1 -0.94 -1.11 -0.75 -0.67 -0.61 -0.12 -0.59 -0.61 -0.58 0.68 -1.39 
      basic
    0.06                                   
      diluted
    0.05                                   
      weighted-average shares used for eps calculation
     81,246,520 81,401,853 81,078,234 81,060,822 74,555,001 74,020,593 73,543,427 72,990,141 71,248,982 71,560,023 70,874,117 70,177,499 68,628,267 68,916,813 68,334,464 67,706,502 64,563,032 66,386,379 63,426,694 61,361,670 58,984,604 59,368,167 58,393,894 57,649,524 55,939,032 56,411,779 55,647,707 54,710,746 52,034,596 52,702,526 51,185,258 50,350,052 23,718,391 17,421,642 
      basic
    80,357,498                                   
      diluted
    81,581,387                                   
      net income per share
     0.19 -0.02 -0.58 -0.46 0.24 -0.13 -0.74 -1.1 -0.77 -0.41 -0.53 -0.77 -0.92 -1.23 -1.74 -1.14 -1.26 -1.22 -1.22 -1.04 -1.26 -1.22 -1.1 -0.94 -1.11 -0.75 -0.67 -0.61 -0.12 -0.59 -0.61 -0.58 0.68 -1.39 
      weighted-average shares used for eps calculation
     81,246,520 81,401,853 81,078,234 81,060,822 74,555,001 74,020,593 73,543,427 72,990,141 71,248,982 71,560,023 70,874,117 70,177,499 68,628,267 68,916,813 68,334,464 67,706,502 64,563,032 66,386,379 63,426,694 61,361,670 58,984,604 59,368,167 58,393,894 57,649,524 55,939,032 56,411,779 55,647,707 54,710,746 52,034,596 52,702,526 51,185,258 50,350,052 23,718,391 17,421,642 
                                       
    Balance Sheets:
    Quarterly
    Annual
      Unit: USD2026-04-30 2026-01-31 2025-10-31 2025-07-31 2025-04-30 2025-01-31 2024-10-31 2024-07-31 2024-04-30 2024-01-31 2023-10-31 2023-07-31 2023-04-30 2023-01-31 2022-10-31 2022-07-31 2022-04-30 2022-01-31 2021-10-31 2021-07-31 2021-04-30 2021-01-31 2020-10-31 2020-07-31 2020-04-30 2020-01-31 2019-10-31 2019-07-31 2019-04-30 2019-01-31 2018-10-31 2018-07-31 2018-04-30 2018-01-31 2017-10-31 
                                         
        assets
                                         
        current assets:
                                         
        cash and cash equivalents
      1,036,354,000 1,083,540,000 834,092,000 647,139,000 657,809,000 490,133,000 673,054,000 1,290,901,000 815,704,000 802,959,000 477,675,000 607,175,000 721,787,000 455,826,000 999,674,000 651,420,000 456,275,000 473,904,000 748,140,000 1,160,996,000 407,055,000 429,697,000 414,762,000 469,492,000 700,645,000 706,192,000 151,307,000 186,684,000 158,060,000 147,831,000 139,490,000 122,771,000 111,617,000 61,902,000 242,745,000 
        short-term investments
      1,390,799,000 1,303,701,000 1,471,669,000 1,698,247,000 1,796,129,000 1,846,444,000 1,629,038,000 973,933,000 1,258,292,000 1,212,448,000 1,447,036,000 1,293,926,000 1,181,641,000 1,380,804,000 787,858,000 1,144,192,000 1,372,420,000 1,352,019,000 1,054,746,000 653,829,000 527,988,000 528,045,000 551,539,000 505,404,000 276,372,000 280,326,000 274,560,000 249,369,000 318,346,000 318,139,000 382,681,000 399,906,000 159,371,000 217,072,000 45,810,000 
        accounts receivable
      387,294,000 499,002,000 416,494,000 349,656,000 313,215,000 393,099,000 334,629,000 311,166,000 266,025,000 325,610,000 271,679,000 272,392,000 211,575,000 285,192,000 231,260,000 213,267,000 164,885,000 195,383,000 182,701,000 120,152,000 100,646,000 135,176,000 91,784,000 87,193,000 80,760,000 85,554,000 67,506,000 66,783,000 61,600,000 72,808,000 37,497,000 38,340,000 32,475,000 46,872,000 35,233,000 
        deferred commissions
      129,894,000 131,442,000 122,882,000 119,597,000 116,291,000 112,632,000 103,715,000 97,644,000 93,390,000 92,512,000 87,221,000 84,140,000 82,867,000 83,550,000 77,446,000 72,069,000 66,754,000 63,523,000 49,537,000 43,358,000 39,595,000 36,619,000 30,090,000 27,453,000 25,737,000 24,219,000 19,717,000 18,093,000 16,932,000 15,878,000 19,143,000 14,857,000 13,155,000 11,820,000 9,850,000 
        prepaid expenses and other current assets
      115,277,000 97,170,000 87,177,000 89,900,000 89,086,000 81,214,000 53,827,000 48,403,000 218,914,000 50,107,000 36,982,000 37,329,000 34,424,000 31,212,000 26,017,000 27,566,000 35,973,000 32,573,000 19,446,000 17,776,000 20,738,000 12,350,000 15,611,000 15,281,000 16,892,000 16,905,000 12,531,000 12,444,000 12,251,000 11,580,000 8,653,000 7,832,000 9,101,000 5,884,000 5,221,000 
        total current assets
      3,059,618,000 3,114,855,000 2,932,314,000 2,904,539,000 2,972,530,000 2,923,522,000 2,794,263,000 2,722,047,000 2,652,325,000 2,483,636,000 2,320,593,000 2,294,962,000 2,232,294,000 2,236,584,000 2,122,255,000 2,108,514,000 2,096,307,000 2,117,402,000 2,054,570,000 1,996,111,000 1,096,022,000 1,141,887,000 1,103,786,000 1,104,823,000 1,100,406,000 1,113,196,000 525,621,000 533,373,000 567,189,000 566,236,000 587,464,000 583,706,000 325,719,000 343,550,000 338,859,000 
        property and equipment
      40,900,000 39,773,000 40,704,000 41,792,000 43,718,000 46,377,000 47,345,000 48,389,000 50,214,000 53,042,000 54,892,000 53,866,000 55,212,000 57,841,000 59,489,000 61,604,000 62,761,000 62,625,000 61,797,000 60,830,000 60,906,000 62,364,000 63,588,000 62,154,000 57,914,000 58,316,000 59,418,000 59,629,000 60,309,000 73,664,000 73,191,000 70,374,000 63,335,000 59,557,000 4,430,000 
        operating lease right-of-use assets
      26,606,000 28,978,000 30,914,000 31,565,000 33,702,000 34,607,000 35,859,000 36,873,000 34,807,000 37,365,000 39,181,000 42,218,000 40,072,000 41,194,000 43,485,000 46,418,000 45,248,000 41,745,000 42,291,000 43,248,000 45,019,000 34,587,000 36,909,000 40,481,000 32,965,000 11,147,000 12,151,000 11,698,000 12,378,000       
        goodwill
      191,397,000 191,397,000 189,641,000 189,641,000 189,641,000 69,679,000 69,679,000 69,679,000 69,679,000 69,679,000 69,679,000 57,779,000 57,779,000 57,779,000 57,779,000 57,779,000 57,775,000 57,775,000 57,775,000 57,775,000 57,775,000 55,830,000 55,830,000 55,830,000 55,830,000 55,830,000 55,484,000 55,484,000 41,878,000 41,878,000 1,700,000 1,700,000 1,700,000 1,700,000 1,700,000 
        intangible assets
      30,851,000 34,502,000 38,308,000 42,113,000 45,919,000 24,597,000                              
        deferred tax assets
      26,061,000 26,021,000 23,012,000 23,542,000 22,410,000 20,810,000 5,575,000 4,765,000 4,524,000 4,116,000 3,837,000 3,565,000 3,041,000 2,564,000 1,657,000 2,163,000 1,963,000 1,939,000 2,170,000 1,762,000 1,006,000 997,000 728,000 744,000 680,000 615,000 2,206,000 1,897,000 1,753,000 1,193,000 701,000 300,000 323,000 326,000 102,000 
        other assets
      317,258,000 323,322,000 311,756,000 308,869,000 316,500,000 310,701,000 271,101,000 248,344,000 221,577,000 217,847,000 198,708,000 189,006,000 182,994,000 181,503,000 168,798,000 159,102,000 152,174,000 147,494,000 110,106,000 96,487,000 89,406,000 85,555,000 66,620,000 60,606,000 56,397,000 54,684,000 43,123,000 39,414,000 36,511,000 34,611,000 6,649,000 6,665,000 7,744,000 8,436,000 7,056,000 
        total assets
      3,692,691,000 3,758,848,000 3,566,649,000 3,542,061,000 3,624,420,000 3,430,293,000 3,224,785,000 3,131,230,000 3,034,429,000 2,869,642,000 2,694,017,000 2,648,234,000 2,580,525,000 2,588,893,000 2,467,186,000 2,451,598,000 2,434,541,000 2,449,588,000 2,351,612,000 2,281,411,000 1,377,627,000 1,407,495,000 1,355,861,000 1,355,163,000 1,336,842,000 1,328,567,000 734,985,000 741,597,000 734,241,000 733,476,000 670,670,000 663,930,000 400,227,000 415,196,000 353,995,000 
        liabilities and stockholders’ equity
                                         
        current liabilities:
                                         
        accounts payable
      41,664,000 20,269,000 14,811,000 9,868,000 8,562,000 10,467,000 11,444,000 10,135,000 9,349,000 9,905,000 9,340,000 8,156,000 7,986,000 8,295,000 7,734,000 7,303,000 6,204,000 5,234,000 5,237,000 4,564,000 4,358,000 4,144,000 3,644,000 3,631,000 3,184,000 2,849,000 2,124,000 2,658,000 2,080,000 2,153,000 1,942,000 2,256,000 1,429,000 2,261,000 3,147,000 
        accrued compensation and benefits
      115,563,000 143,046,000 131,760,000 110,916,000 102,725,000 120,354,000 120,598,000 112,063,000 110,234,000 112,579,000 100,591,000 91,316,000 78,300,000 90,112,000 84,443,000 83,806,000 87,717,000 112,568,000 93,951,000 71,063,000 59,482,000 70,210,000 56,802,000 43,377,000 33,649,000 41,427,000 31,335,000 25,670,000 24,122,000 25,982,000 21,615,000 14,981,000 14,773,000 17,433,000 10,870,000 
        operating lease liabilities
      9,360,000 9,259,000 9,145,000 9,508,000 8,914,000 9,126,000 10,787,000 11,048,000 9,881,000 9,797,000 9,592,000 9,438,000 8,605,000 8,686,000 8,645,000 9,163,000 8,671,000 8,084,000 7,298,000 6,985,000 6,432,000 2,343,000 4,314,000 4,863,000 4,005,000 3,750,000 4,180,000 3,729,000 3,575,000       
        other accrued liabilities
      110,516,000 109,803,000 101,444,000 103,664,000 89,062,000 87,659,000 86,795,000 100,795,000 84,110,000 74,831,000 66,715,000 55,031,000 50,470,000 52,672,000 52,826,000 73,916,000 49,216,000 48,848,000 46,472,000 35,072,000 27,369,000 56,440,000 27,457,000 24,625,000 27,112,000 26,860,000 29,094,000 25,921,000 20,138,000 14,169,000 12,169,000 13,473,000 8,518,000 8,423,000 10,788,000 
        deferred revenue
      341,076,000 387,119,000 300,873,000 275,877,000 295,735,000 334,381,000 286,431,000 307,114,000 323,920,000 357,108,000 303,325,000 348,355,000 387,206,000 428,747,000 364,159,000 350,709,000 351,914,000 352,001,000 279,241,000 230,219,000 231,040,000 221,404,000 179,322,000 176,165,000 173,067,000 167,498,000 137,789,000 131,024,000 128,252,000 122,333,000 136,609,000 125,526,000 119,936,000 114,500,000 92,447,000 
        total current liabilities
      618,179,000 669,496,000 558,033,000 509,833,000 504,998,000 561,987,000 1,640,775,000 541,155,000 537,494,000 564,220,000 489,563,000 512,296,000 532,567,000 588,512,000 517,807,000 524,897,000 503,722,000 526,735,000 432,199,000 347,903,000 328,681,000 354,541,000 271,539,000 252,661,000 241,017,000 242,384,000 204,522,000 189,002,000 178,167,000 164,637,000 172,335,000 156,236,000 144,656,000 142,617,000 117,252,000 
        deferred tax liability
      358,000 352,000 560,000 707,000 577,000 262,000 1,030,000 1,061,000 770,000                           
        other liabilities
      26,891,000 29,454,000 27,964,000 29,037,000 33,482,000 33,042,000 34,884,000 36,501,000 38,157,000                           
        total liabilities
      757,731,000 806,490,000 678,210,000 599,087,000 591,470,000 648,069,000 1,722,809,000 1,768,183,000 1,765,173,000 1,800,653,000 1,726,477,000 1,763,149,000 1,788,096,000 1,849,385,000 1,782,904,000 1,783,430,000 1,761,662,000 1,782,888,000 1,688,707,000 1,607,687,000 1,645,991,000 1,407,814,000 1,334,057,000 1,307,012,000 1,273,801,000 1,245,709,000 516,150,000 502,254,000 486,373,000 468,910,000 473,425,000 455,306,000 227,720,000 221,703,000 140,810,000 
        commitments and contingencies
                                         
        stockholders’ equity:
                                         
        common stock
      81,000 81,000 81,000 81,000 80,000 78,000 73,000 73,000 73,000 73,000 72,000 72,000 71,000 70,000 69,000 69,000 68,000                   
        additional paid-in capital
      4,843,315,000 5,345,494,000 5,152,122,000 5,064,031,000 4,899,504,000 4,625,093,000 3,357,146,000 3,210,146,000 3,068,730,000 2,777,322,000 2,634,381,000 2,517,249,000 2,382,121,000 2,276,694,000 2,159,957,000 2,059,405,000 1,945,737,000 1,860,514,000 1,770,635,000 1,699,150,000 680,413,000 932,332,000 883,002,000 836,293,000 785,730,000 752,127,000 825,577,000 804,224,000 775,185,000 754,612,000 734,381,000 714,401,000 646,973,000 638,680,000 632,055,000 
        treasury stock
      -8,283,000 -494,569,000 -346,654,000 -201,341,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 -1,319,000 
        accumulated other comprehensive income
      7,268,000 13,207,000 10,275,000 5,581,000 13,015,000 -924,000 2,606,000 901,000 -6,003,000 4,545,000   834,000         -704,000 -337,000 69,000 998,000 225,000 189,000         
        accumulated deficit
      -1,907,421,000 -1,911,855,000 -1,927,385,000 -1,925,378,000 -1,878,330,000 -1,840,704,000 -1,856,530,000 -1,846,754,000 -1,792,225,000 -1,711,632,000 -1,656,172,000 -1,626,875,000 -1,589,278,000 -1,535,032,000 -1,470,634,000 -1,385,793,000 -1,266,928,000 -1,189,634,000 -1,105,186,000 -1,023,893,000 -946,760,000 -935,403,000 -859,602,000 -786,951,000 -722,426,000 -668,232,000 -605,669,000 -563,286,000 -525,950,000 -488,607,000 -535,490,000 -504,170,000 -472,924,000 -443,760,000 -417,386,000 
        total stockholders’ equity
      2,934,960,000 2,952,358,000 2,888,439,000 2,942,974,000 3,032,950,000 2,782,224,000 1,501,976,000 1,363,047,000 1,269,256,000 1,068,989,000 967,540,000 885,085,000 792,429,000 739,508,000 684,282,000 668,168,000 672,879,000 666,700,000 662,905,000 673,724,000  -5,033,000 21,804,000 48,151,000 63,041,000 82,858,000 218,835,000 239,343,000 247,868,000 264,566,000 197,245,000 208,624,000 172,507,000 193,493,000 213,185,000 
        total liabilities and stockholders’ equity
      3,692,691,000 3,758,848,000 3,566,649,000 3,542,061,000 3,624,420,000 3,430,293,000 3,224,785,000 3,131,230,000 3,034,429,000 2,869,642,000 2,694,017,000 2,648,234,000 2,580,525,000 2,588,893,000 2,467,186,000 2,451,598,000 2,434,541,000      1,355,861,000 1,355,163,000 1,336,842,000 1,328,567,000 734,985,000 741,597,000 734,241,000 733,476,000 670,670,000 663,930,000 400,227,000   
        convertible senior notes
            1,124,720,000 1,144,977,000 1,144,125,000 1,143,273,000 1,142,423,000 1,141,574,000 1,140,727,000 1,139,880,000 1,139,042,000 1,138,200,000 1,137,361,000 1,136,521,000 1,135,684,000 1,136,697,000 1,192,488,000 937,729,000 947,652,000 935,292,000 923,098,000 911,075,000 226,690,000 223,356,000 220,079,000 216,858,000 213,692,000 210,553,000    
        acquired intangible assets
            963,000 1,133,000 1,303,000 3,957,000 7,127,000 6,838,000 9,133,000 11,428,000 13,723,000 16,018,000 18,313,000 20,608,000 22,903,000 25,198,000 27,493,000 26,275,000 28,400,000 30,525,000 32,650,000 34,779,000 36,982,000 40,102,000 14,223,000 15,894,000 965,000 1,185,000 1,406,000 1,627,000 1,848,000 
        deferred tax liability, non-current
               285,000 1,134,000 907,000 598,000 225,000 406,000 95,000 93,000 81,000 128,000 76,000 73,000 773,000 828,000 826,000 821,000 821,000 114,000 114,000 109,000 106,000 42,000 39,000 19,000 18,000 259,000 
        operating lease liabilities, non-current
               30,918,000 33,131,000 36,959,000 35,611,000 36,264,000 37,261,000 40,437,000 40,279,000 38,707,000 41,072,000 43,312,000 45,835,000 39,095,000 36,501,000 38,873,000 29,625,000 8,113,000 9,044,000 9,002,000 9,827,000       
        deferred revenue, non-current
               20,296,000 17,436,000 20,286,000 25,547,000 31,524,000 34,014,000 24,462,000 23,555,000 23,179,000 18,704,000 19,058,000 17,263,000 16,547,000 16,497,000 18,851,000 19,954,000 23,281,000 14,601,000 19,175,000 15,443,000 15,343,000 17,229,000 20,235,000 21,909,000 22,930,000 22,326,000 
        other liabilities, non-current
               41,661,000 42,790,000 51,127,000 53,046,000 52,980,000 54,374,000 55,339,000 56,652,000 57,665,000 60,920,000 60,641,000 61,651,000 59,129,000 61,040,000 60,509,000 59,286,000 60,035,000 61,179,000 61,605,000 62,748,000 69,399,000 67,944,000 66,401,000 59,739,000 55,213,000  
        accumulated other comprehensive loss
                -9,422,000 -4,042,000  -905,000 -3,791,000 -4,194,000 -4,679,000 -2,928,000 -1,292,000 -280,000 -760,000       -332,000 -103,000 -174,000 -380,000 -340,000 -274,000 -159,000 -216,000 
        temporary equity, convertible senior notes
                           4,714,000              
        stockholders’ equity
                                         
        class a common stock
                       67,000 67,000 66,000 62,000 61,000 60,000 59,000 50,000 48,000 48,000 47,000 42,000 36,000 35,000 30,000 24,000 13,000 9,000 
        total liabilities, temporary equity and stockholders’ equity
                       2,449,588,000 2,351,612,000 2,281,411,000  1,407,495,000              
        liabilities and stockholders’ deficit
                                         
        stockholders’ deficit:
                                         
        total stockholders’ deficit
                          -268,364,000               
        total liabilities, temporary equity and stockholders’ deficit
                          1,377,627,000               
        class b common stock
                              8,000 9,000 9,000 9,000 13,000 18,000 18,000 22,000 27,000 38,000 42,000 
        deferred rent, non-current
                                   2,567,000 2,183,000 1,842,000 1,397,000 925,000 973,000 
        liabilities, redeemable convertible preferred stock and stockholders’ equity
                                         
        redeemable convertible preferred stock
                                         
        redeemable convertible preferred stock, par value 0.001 per share...
                                         
        total liabilities, redeemable convertible preferred stock and stockholders’ equity
                                       415,196,000 353,995,000 
                                         
      Cashflow Statements:
      Quarterly
      Annual
        Unit: USD2026-04-30 2026-01-31 2025-10-31 2025-07-31 2025-04-30 2025-01-31 2024-10-31 2024-07-31 2024-04-30 2024-01-31 2023-10-31 2023-07-31 2023-04-30 2023-01-31 2022-10-31 2022-07-31 2022-04-30 2022-01-31 2021-10-31 2021-07-31 2021-04-30 2021-01-31 2020-10-31 2020-07-31 2020-04-30 2020-01-31 2019-10-31 2019-07-31 2019-04-30 2019-01-31 2018-10-31 2018-07-31 2018-04-30 2018-01-31 
                                          
          cash flows from operating activities
                                          
          net income
        4,434,000                                  
          adjustments to reconcile net income to net cash from operating activities:
                                          
          depreciation and amortization
        5,555,000 5,740,000 5,668,000 5,677,000 5,309,000 2,171,000 2,405,000 2,349,000 4,826,000 5,682,000 4,711,000 4,173,000 4,373,000 4,198,000 4,167,000 3,958,000 3,787,000 3,682,000 3,367,000 3,371,000 3,251,000 4,662,000 3,793,000 2,858,000 2,864,000 2,959,000 3,795,000 3,706,000 2,323,000 2,458,000 1,711,000 806,000 817,000 914,000 
          stock-based compensation
        137,830,000 143,993,000 133,630,000 140,400,000 132,431,000 125,042,000 125,712,000 122,423,000 120,763,000 123,811,000 115,829,000 113,312,000 103,955,000 102,136,000 99,198,000 96,554,000 83,566,000 73,742,000 68,708,000 57,705,000 50,914,000 41,269,000 39,952,000 37,525,000 30,567,000 24,738,000 19,367,000 17,662,000 14,009,000 10,553,000 10,264,000 9,078,000 7,508,000 6,169,000 
          amortization of finance right-of-use assets
        994,000 993,000 995,000 993,000 993,000 993,000 994,000 994,000 993,000 994,000 994,000 993,000 994,000 993,000 994,000 993,000 994,000 993,000 993,000 994,000 994,000 994,000 993,000 994,000 994,000 994,000 994,000 994,000 994,000      
          amortization of operating right-of-use assets
        2,578,000 2,546,000 2,899,000 2,841,000 2,758,000 2,948,000 3,229,000 2,592,000 2,479,000 2,430,000 2,302,000 2,254,000 2,225,000 2,309,000 2,331,000 2,440,000 2,018,000 1,800,000 1,778,000 1,710,000 1,522,000 1,633,000 1,893,000 1,482,000 1,372,000 960,000         
          deferred income taxes
        19,000 -2,471,000 447,000 -1,159,000 25,000 -15,995,000 -825,000 19,000 7,000 -1,002,000 -195,000 -189,000 -188,000 -976,000 716,000 -241,000 -61,000 132,000 -333,000 -793,000 -1,585,000 -276,000 60,000 142,000 -290,000 1,249,000 -309,000 -3,675,000 -557,000 -4,609,000 -398,000 43,000 4,000 -465,000 
          amortization of premium and accretion of discount on short-term investments
        -1,084,000 -2,094,000 -2,210,000 -2,739,000 -3,800,000 -5,942,000 -5,656,000 -5,680,000 -7,781,000 -8,151,000 -10,896,000 -12,279,000 -13,230,000                      
          realized and unrealized loss on financial instruments
        -16,420,000 500,000 291,000 272,000                              
          unrealized foreign exchange loss
        148,000 1,078,000 -171,000 -759,000 1,970,000 -2,956,000 788,000 1,089,000 115,000   870,000 429,000 2,814,000 -410,000 -1,725,000 581,000   729,000 315,000              
          change in operating assets and liabilities:
                                          
          accounts receivable
        112,951,000 -81,222,000 -66,993,000 -38,090,000 79,895,000 -57,978,000 -24,557,000 -46,027,000 59,326,000 -53,400,000 -397,000 -61,206,000 73,364,000 -53,190,000 -18,780,000 -48,220,000 28,740,000 -15,385,000 -63,215,000 -18,822,000 35,145,000 -43,476,000 -1,749,000 -6,045,000 3,637,000 -17,815,000 -1,097,000 -4,740,000 10,960,000 -28,712,000 1,238,000 -6,283,000 14,312,000 -11,248,000 
          prepaid expenses and other current assets
        -13,388,000 -9,173,000 2,773,000 317,000 -4,973,000 -24,231,000 -1,964,000 149,000 1,233,000 -12,908,000 3,485,000 124,000 -2,909,000 -3,867,000 1,274,000 8,201,000 -3,293,000 -12,645,000 -1,371,000 3,178,000 -9,027,000 4,577,000 -1,599,000 1,612,000 234,000 -3,983,000 314,000 135,000 -260,000 -1,344,000 -2,108,000 1,336,000 -3,246,000 -475,000 
          deferred commissions
        12,239,000 -20,743,000 -3,548,000 6,728,000 7,772,000 -30,333,000 -18,821,000 -15,153,000 -4,820,000 -24,670,000 -12,720,000 -7,104,000 2,664,000 -19,168,000 -13,354,000 -11,833,000 -4,722,000 -49,923,000 -18,363,000 -10,574,000 -5,882,000 -24,462,000 -8,168,000 -5,930,000 -3,063,000 -16,157,000 -5,159,000 -4,059,000 -2,987,000 -10,620,000 -4,194,000 -744,000 -576,000 -3,328,000 
          other long-term assets
        1,125,000 992,000 -2,931,000 1,525,000 -12,593,000 -12,973,000 -8,395,000 -9,475,000 166,000 4,000 -77,000 -92,000 -46,000 934,000 -171,000 -504,000 -358,000 524,000 -239,000 -75,000 23,000 -977,000 39,000 14,000 -170,000 95,000 -175,000 -5,000 32,000 -181,000 -79,000 116,000 -70,000 -17,000 
          accounts payable
        20,496,000 5,361,000 4,993,000 1,040,000 -2,478,000 -1,028,000 1,370,000 746,000 -547,000 601,000 1,434,000 -52,000 -304,000 527,000 475,000 1,138,000 1,023,000 19,000 680,000 223,000 224,000 473,000 2,153,000 -1,629,000 219,000 665,000 -592,000 708,000 -268,000 -748,000 229,000 245,000 -639,000 -1,058,000 
          accrued liabilities
        -22,802,000 16,907,000 13,525,000 16,751,000 -19,353,000 2,760,000 -6,719,000 22,687,000 6,526,000 19,188,000 16,855,000 16,090,000 -12,631,000 2,580,000 -18,568,000 22,815,000 -23,016,000 25,110,000 32,671,000 18,619,000 -17,152,000 15,226,000 16,240,000 6,172,000 -2,779,000 4,263,000 7,891,000 4,961,000 3,324,000 6,380,000 5,227,000 3,924,000 -1,967,000 5,952,000 
          operating lease liabilities
        -2,476,000 -2,784,000 -3,570,000 -2,063,000 -2,688,000 -2,931,000 -3,777,000 -3,183,000 -2,185,000 -2,889,000 -2,333,000 -2,262,000 -2,394,000 -2,588,000 -2,555,000 -2,357,000 -2,192,000 -2,523,000 -1,748,000 -1,568,000 -1,027,000 -1,277,000 -2,699,000 1,088,000 -1,126,000 -1,312,000 -897,000        
          deferred revenue
        -39,864,000 102,907,000 58,989,000 -9,906,000 -39,624,000 54,990,000 -17,039,000 -16,882,000 -37,431,000 56,313,000 -47,374,000 -44,084,000 -47,266,000 61,786,000 23,642,000 179,000 152,000 78,743,000 48,707,000 42,000 9,749,000 42,474,000 809,000 1,607,000 3,349,000 38,156,000 2,565,000 6,066,000 6,267,000 20,163,000 7,683,000 4,334,000 4,500,000 22,266,000 
          other liabilities, non-current
        -704,000 1,544,000 730,000 -2,403,000 1,639,000 -78,000 92,000 -3,996,000 163,000 860,000 -3,127,000 -32,000 319,000 7,000 415,000 49,000 329,000 -1,932,000 1,583,000 277,000 3,791,000 2,110,000 1,765,000 2,439,000 451,000 38,000         
          net cash from operating activities
        201,631,000 179,604,000 143,510,000 72,105,000 109,929,000 50,538,000 37,438,000 -1,398,000 63,613,000 54,627,000 38,422,000 -25,302,000 53,730,000 25,871,000 -5,744,000 -44,671,000 11,574,000 22,311,000 -5,790,000 -19,758,000 10,217,000 -18,645,000 -8,120,000 -10,030,000 -5,878,000 -8,618,000 -11,543,000 -12,593,000 3,214,000 -9,480,000 -7,608,000 -16,852,000 -8,049,000 -7,712,000 
          capital expenditures
        322,000 -145,000 -1,233,000 146,000 -1,337,000 -1,981,000 -1,051,000 -539,000 -2,738,000 -2,078,000 -635,000 -623,000 -711,000 -1,381,000 -2,614,000 -2,538,000 -3,556,000 -2,184,000 -1,705,000 -627,000 -831,000 -5,646,000 -3,791,000 -1,505,000 -1,214,000 -754,000 -1,207,000 -106,000 -3,150,000 -2,137,000 -1,194,000 -367,000 -421,000 
          free cash flows
        201,953,000 179,459,000 142,277,000 72,251,000 108,592,000 50,538,000 35,457,000 -2,449,000 63,074,000 51,889,000 36,344,000 -25,937,000 53,107,000 25,160,000 -7,125,000 -47,285,000 9,036,000 18,755,000 -7,974,000 -21,463,000 9,590,000 -19,476,000 -13,766,000 -13,821,000 -7,383,000 -9,832,000 -12,297,000 -13,800,000 3,108,000 -12,630,000 -9,745,000 -18,046,000 -8,416,000 -8,133,000 
          cash flows from investing activities
                                          
          purchases of property, equipment and other assets
        -2,319,000 -1,134,000 -1,678,000 -537,000 -1,611,000                              
          investments in non-marketable securities
        -3,000,000 -866,000 -3,500,000 -4,822,000 -5,500,000 -250,000                            
          business combination, net of cash acquired
          -2,032,000                              
          proceeds from maturities of marketable securities
        259,800,000 249,000,000 105,000,000 292,310,000 198,660,000 182,600,000 135,000,000 310,000,000 125,000,000 255,000,000 435,000,000 475,000,000 280,000,000 350,000,000 675,000,000 325,000,000 75,000,000 150,000,000 125,000,000 175,000,000 100,000,000 200,000,000 255,000,000 120,000,000 165,000,000 60,000,000 130,000,000 140,000,000 140,000,000 244,000,000 88,000,000 60,000,000 58,000,000 8,000,000 
          proceeds from non-marketable securities
        10,718,000                                  
          purchases of marketable securities
        -352,122,000 -80,343,000 -198,668,000 -138,624,000 -442,421,000 -786,170,000 -13,029,000 -172,604,000 -583,252,000 -583,810,000 -66,789,000 -933,919,000 -316,433,000 -97,468,000 -100,146,000 -453,008,000 -528,264,000 -302,507,000 -101,479,000 -177,809,000 -302,568,000 -349,723,000 -160,283,000 -65,922,000 -154,505,000 -70,001,000 -139,024,000 -178,178,000 -69,269,000   -179,503,000 
          net cash from investing activities
        -86,923,000 166,657,000 230,982,000 89,605,000 51,571,000 -246,316,000 -653,401,000 290,420,000 -48,143,000 252,262,000 -165,330,000 -110,195,000 211,282,000 -585,005,000 355,582,000 224,918,000 -28,803,000 -308,564,000 -406,655,000 -129,412,000 -7,511,000 21,360,000 -53,714,000 -233,514,000 3,212,000 -7,136,000 -25,259,000 30,163,000 587,000 7,155,000 16,594,000 -241,661,000 57,633,000 -171,924,000 
          cash flows from financing activities
                                          
          repurchases of common stock
        -100,255,000 -57,254,000 -148,633,000                                
          proceeds from exercise of stock options
        461,000 861,000 533,000 1,210,000 579,000  315,000 353,000 953,000  1,303,000 2,037,000 1,472,000  1,352,000 1,332,000 1,656,000                  
          taxes paid related to net share settlement of equity awards
        -58,317,000 -60,078,000                                 
          principal payments of finance leases
        -1,764,000 -1,739,000 -1,715,000 -1,691,000 -2,394,000 -1,645,000 -895,000                            
          net cash from financing activities
        -159,875,000 -100,303,000 -188,311,000 -172,010,000 -1,815,000 15,744,000 -580,000 188,036,000 -1,140,000 17,731,000 -77,000 20,457,000 130,000 13,270,000 47,000 15,822,000 1,061,000 12,397,000 232,000 903,517,000 -25,254,000 11,579,000 6,437,000 11,855,000 -2,290,000 570,394,000 1,131,000 11,306,000 6,407,000 10,614,000 7,748,000 269,738,000 136,000 -1,311,000 
          effect of exchange rate changes on cash, cash equivalents and restricted cash
        -1,698,000 3,497,000 783,000 68,000 8,000,000 -2,876,000 -274,000 -968,000 -1,583,000 665,000 -2,513,000 706,000 709,000 2,026,000 -1,634,000 -928,000 -1,467,000 -384,000 -646,000 -408,000 -94,000 646,000 665,000 546,000 -593,000 244,000 295,000        
          net increase in cash, cash equivalents and restricted cash
        -46,865,000 249,455,000 186,964,000 -10,232,000 167,685,000 -182,910,000 -616,817,000 476,090,000 12,747,000 325,285,000 -129,498,000 -114,334,000 265,851,000 -543,838,000 348,251,000   -274,240,000 -412,859,000   14,940,000 -54,732,000 -231,143,000 -5,549,000 554,884,000 -35,376,000 28,624,000 10,227,000      
          cash, cash equivalents and restricted cash, beginning of period
        1,086,625,000  492,753,000  803,643,000  456,339,000  474,420,000  430,222,000  706,706,000  148,347,000      
          cash, cash equivalents and restricted cash, end of period
        1,039,760,000  186,964,000 -10,232,000 660,438,000  -616,817,000 476,090,000 816,390,000  -129,498,000 -114,334,000 722,190,000  348,251,000 195,141,000 456,785,000  -412,859,000 753,939,000 407,580,000  -54,732,000 -231,143,000 701,157,000  -35,376,000 28,624,000 158,574,000      
          supplemental cash flow disclosure
                                          
          cash paid during the period for:
                                          
          income taxes, net of refunds
        3,837,000  187,000 6,558,000 3,899,000 3,273,000 6,576,000 2,154,000 2,973,000  2,509,000 2,508,000 3,146,000  3,021,000 2,644,000 1,589,000  1,289,000 1,367,000 995,000  487,000 105,000 553,000    735,000      
          interest expense
        414,000 438,000 463,000 486,000 510,000 469,000 564,000 2,073,000 599,000  638,000 2,098,000 677,000  780,000 2,170,000 755,000  785,000 2,462,000 819,000  852,000 2,651,000 884,000          
          noncash investing and financing activities:
                                          
          issuance of common stock in connection with a business combination
         141,402,000                              
          purchases of property and equipment included in accounts payable and accrued liabilities
        2,641,000 989,000 445,000 683,000 274,000                        283,000      
          unpaid taxes for net share settlement of equity awards included in accrued compensation and benefits
        5,417,000 2,228,000                                 
          reconciliation of cash, cash equivalents and restricted cash within the condensed consolidated balance sheets, end of period, to the amounts shown in the statements of cash flows above:
                                          
          cash and cash equivalents
        1,036,354,000 249,448,000 186,953,000 -10,670,000 657,809,000 -182,921,000 -617,847,000 475,197,000 815,704,000  -129,500,000 -114,612,000 721,787,000  348,254,000 195,145,000 456,275,000  -412,856,000 753,941,000 407,055,000  -54,730,000 -231,153,000 700,645,000  -35,377,000 28,624,000 158,060,000    111,617,000  
          restricted cash, non-current
        3,406,000 7,000 11,000 438,000 2,629,000 11,000 1,030,000 893,000 686,000  2,000 278,000 403,000  -3,000 -4,000 510,000  -3,000 -2,000 525,000  -2,000 10,000 512,000  1,000 514,000      
          total cash, cash equivalents and restricted cash
        1,039,760,000 249,455,000 186,964,000 -10,232,000 660,438,000 -182,910,000 -616,817,000 476,090,000 816,390,000  -129,498,000 -114,334,000 722,190,000  348,251,000 195,141,000 456,785,000  -412,859,000 753,939,000 407,580,000  -54,732,000 -231,143,000 701,157,000  -35,376,000 28,624,000 158,574,000    112,139,000  
          net loss
         15,530,000 -2,007,000 -47,048,000 -37,626,000 15,826,000 -9,776,000 -54,529,000 -80,593,000 -55,460,000 -29,297,000 -37,597,000 -54,246,000 -64,398,000 -84,841,000 -118,865,000 -77,294,000 -84,448,000 -81,293,000 -77,133,000 -63,992,000 -75,801,000 -72,651,000 -64,525,000 -53,967,000 -62,563,000 -42,383,000 -37,336,000 -33,240,000 -7,281,000 -31,320,000 -31,246,000 -29,164,000 -26,374,000 
          adjustments to reconcile net loss to net cash from operating activities:
                                          
          amortization of debt discount and issuance costs
             715,000 852,000 852,000 850,000 849,000 847,000 847,000     844,000 842,000 892,000 1,427,000 12,543,000 12,360,000 12,194,000 12,023,000 5,014,000 3,335,000 3,277,000 3,221,000 3,166,000 3,139,000    
          change in operating assets and liabilities, net of effects of business combinations:
                                          
          business combinations, net of cash acquired
                                          
          proceeds from the sales of marketable securities
                                         
          proceeds from settlement of capped calls and other
                                          
          proceeds from the issuance of common stock under the employee stock purchase plan
         17,907,000   17,408,000   17,133,000   13,226,000   12,246,000   9,560,000   7,026,000   4,906,000    
          cash, cash equivalents and restricted cash, beginning of year
                                          
          cash, cash equivalents and restricted cash, end of year
                                          
          non-cash investing and financing activities:
                                          
          common stock issued for conversion of convertible notes
                                          
          settlement of capped calls
                                          
          reconciliation of cash, cash equivalents and restricted cash within the consolidated balance sheets to the amounts shown in the statements of cash flows above:
                                          
          proceeds from settlement of capped calls
                                         
          realized and unrealized gain on financial instruments
             253,000 -338,000                            
          proceeds from exercise of stock options, including early exercised stock options
                         2,074,000 1,846,000 2,206,000 3,539,000 3,202,000 6,747,000 4,051,000 3,000,000 3,492,000 1,933,000 4,913,000 6,437,000 4,613,000 9,525,000 7,818,000 288,000 166,000 
          purchases of property and equipment
              -1,981,000 -1,051,000 -539,000 -2,738,000 -2,078,000 -635,000 -623,000 -711,000 -1,381,000 -2,614,000 -2,538,000 -3,556,000 -2,184,000 -1,705,000 -627,000 -831,000 -5,646,000 -3,791,000 -1,505,000 -1,214,000 -754,000 -1,207,000 -389,000 -3,150,000 -2,137,000 -1,194,000 -367,000 -421,000 
          unrealized gain on financial instruments
                -479,000                          
          principal repayments of finance leases
                -2,093,000 -1,400,000 -1,380,000 -1,361,000 -1,342,000 -1,323,000 -1,305,000 -1,287,000 -595,000 -1,923,000 -1,234,000 -1,216,000 -1,199,000 -1,183,000 -1,166,000 -1,149,000 -1,135,000 -1,117,000         
          unrealized gain on non-marketable securities
                 250,000 932,000 -2,226,000                      
          proceeds from issuance of common stock, net of issuance costs
                         -380,000                
          repayments of convertible senior notes attributable to principal
                         -27,594,000              
          unrealized foreign exchange gain
                         1,016,000                 
          investment in non-marketable securities
                  -750,000 -1,306,000 -375,000 -1,604,000 -1,119,000 -2,000,000 -1,207,000 -200,000 -936,000             
          business combination
                                          
          acquisition, net of cash acquired
                         -4,469,000            
          payments of issuance costs for convertible senior notes
                             -4,154,000          
          repurchase of early exercised stock options
                             -10,000 -1,000 -8,000 -4,000 -1,000 -30,000 -18,000 -157,000 -152,000 -93,000 
          proceeds from tenant improvement allowance on build-to-suit lease
                                     1,095,000 257,000    
          amortization of debt issuance costs
                      845,000 845,000 840,000                  
          accretion of discount on short-term investments
                      -1,122,000 1,845,000 2,231,000 2,562,000 1,984,000 1,467,000 1,527,000 1,077,000 604,000 -28,000 -193,000 -441,000 -868,000 -1,242,000 -1,509,000      
          gain on non-marketable securities
                      57,000 -1,751,000                  
          net decrease in cash, cash equivalents and restricted cash
                        -17,635,000    -22,642,000              
          non-cash interest on finance lease liabilities
                                 918,000 905,000      
          loss on early extinguishment of debt
                                          
          proceeds from borrowings on convertible senior notes, net of issuance costs
                                      -2,016,000    
          payment for purchase of capped calls
                                        
          proceeds from tenant improvement allowance on finance lease
                                          
          reconciliation of cash, cash equivalents and restricted cash within the condensed consolidated balance sheets, end of period, to the amounts shown in the statements of cash flows above
                                          
          adjustments to reconcile net loss to net cash from (used) in operating activities:
                                          
          deferred rent
                                     384,000 341,000 445,000 472,000 -48,000 
          payments for 2024 notes partial repurchase
                                          
          change in fair value of warrant liability
                                         
          change in operating assets and liabilities, net of the impact from the acquisition:
                                          
          proceeds from initial public offering, net of underwriting discounts and commissions
                                          
          proceeds from exercise of redeemable convertible preferred stock warrants
                                         
          payment of initial public offering costs
                                         -1,384,000 
          construction in progress related to build-to-suit lease obligations
                                        4,225,000  
          operating lease right-of-use assets
                                          
          effect of exchange rate changes on cash, cash equivalents, and restricted cash
                                    19,000 53,000 -18,000 -75,000 -8,000 109,000 
          noncash investing and financing activities
                                          
          vesting of early exercised stock options
                                    127,000    533,000  
          reconciliation of cash, cash equivalents, and restricted cash within the condensed consolidated balance sheets, end of period, to the amounts shown in the statements of cash flows above:
                                          
          non-cash interest on office financing lease
                                     911,000     
          proceeds from convertible senior notes, net of issuance costs
                                          
          proceeds from issuance of series f financing, net of issuance cost
                                          
          net increase in cash, cash equivalents, and restricted cash
                                       11,150,000 49,712,000 -180,838,000 
          cash, cash equivalents, and restricted cash, beginning of year
                                          
          cash, cash equivalents, and restricted cash, end of year
                                          
          construction costs related to build-to-suit lease obligations
                                          
          conversion of redeemable convertible preferred stock warrant liability to redeemable convertible preferred stock as a result of warrant exercise
                                          
          conversion of redeemable convertible preferred stock to common stock
                                          
          estimated fair value of office space under a build-to-suit lease
                                          
          reconciliation of cash, cash equivalents, and restricted cash within the consolidated balance sheets to the amounts shown in the statements of cash flows above:
                                          
          proceeds from the ipo, net of underwriting discounts and commissions
                                          
          cash, cash equivalents, and restricted cash, beginning of period
                                       62,427,000 
          cash, cash equivalents, and restricted cash, end of period
                                       11,150,000 112,139,000 -180,838,000 
          supplemental cash flow disclosure of noncash investing and financing activities
                                          
          costs related to initial public offering included in accounts payable and accrued liabilities
                                          
          restricted cash, current
                                        522,000  
          proceeds from the initial public offering, net of underwriting discounts and commissions
                                          
          supplemental disclosure of noncash investing and financing activities