Accounting Policies [Abstract] New Accounting Pronouncements or Change in Accounting Principle [Table] New Accounting Pronouncements or Change in Accounting Principle [Table] Adjustments for New Accounting Pronouncements [Axis] Adjustments for New Accounting Pronouncements [Axis] Type of Adoption [Domain] Type of Adoption [Domain] ASU 2018-11 Accounting Standards Update 2018-11 [Member] New Accounting Pronouncements or Change in Accounting Principle [Line Items] New Accounting Pronouncements or Change in Accounting Principle [Line Items] Right-of-use assets Operating Lease, Right-of-Use Asset Lease liability Operating Lease, Liability Contract terms Revenue, Performance Obligation, Description of Timing Committed revenue from minimum commitment contracts Contract with Customer, Liability Minimum commitment contracts revenue recognized in period Contract with Customer, Liability, Revenue Recognized Expected dividend rate Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Dividend Rate Property, Plant and Equipment [Abstract] Schedule of Property, Plant and Equipment [Table] Property, Plant and Equipment [Table] Property, Plant and Equipment, Type [Axis] Property, Plant and Equipment, Type [Axis] Property, Plant and Equipment, Type [Domain] Property, Plant and Equipment, Type [Domain] Network equipment Network Equipment [Member] Network equipment. Computer equipment and software Computer Equipment [Member] Furniture and fixtures Furniture and Fixtures [Member] Leasehold improvements Leaseholds and Leasehold Improvements [Member] Other equipment Equipment [Member] Property, Plant and Equipment [Line Items] Property, Plant and Equipment [Line Items] Property and equipment, net Property, Plant and Equipment, Net, by Type [Abstract] Total property and equipment Property, Plant and Equipment, Gross Less: accumulated depreciation Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment Total property and equipment, net Property, Plant and Equipment, Net Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract] Prepaid Expense and Other Assets, Current [Abstract] Prepaid Expense and Other Assets, Current [Abstract] Settlement and patent license receivable Litigation Settlement Assets, Current Litigation Settlement Assets, Current Prepaid bandwidth and backbone Prepaid Bandwidth And Backbone Services Current Prepaid Bandwidth And Backbone Services Current VAT receivable Value Added Tax Receivable, Current Prepaid expenses and insurance Prepaid Expenses And Insurance Current Prepaid Expenses And Insurance Current Vendor deposits and other Deposits Assets Total prepaid expenses and other current assets Prepaid Expense and Other Assets, Current Equity [Abstract] Class of Treasury Stock [Table] Class of Treasury Stock [Table] Share Repurchase Program [Axis] Share Repurchase Program [Axis] Share Repurchase Program [Domain] Share Repurchase Program [Domain] 2017 Share Repurchase Program Two Thousand and Seventeen Share Repurchase Program [Member] Two Thousand and Seventeen Share Repurchase Program [Member] Plan Name [Axis] Plan Name [Axis] Plan Name [Domain] Plan Name [Domain] 2007 Equity Incentive Plan 2007 Equity Incentive Plan [Member] 2007 Equity Incentive Plan [Member] Award Type [Axis] Award Type [Axis] Award Type [Domain] Award Type [Domain] Employee Stock Purchase Plan Employee Stock [Member] Equity, Class of Treasury Stock [Line Items] Equity, Class of Treasury Stock [Line Items] Stock repurchase amount authorized Stock Repurchase Program, Authorized Amount Shares purchased and canceled (in shares) Stock Repurchased and Retired During Period, Shares Cash paid for purchase of common stock Payments for Repurchase of Common Stock Remaining authorized repurchase amount Stock Repurchase Program, Remaining Authorized Repurchase Amount Number of shares authorized for issuance Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized Increase in shares available for issuance Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized Maximum number of shares permitted to purchase per period Share-based Compensation Arrangement by Share-based Payment Award, Maximum Number of Shares Per Employee Discount from market price for employees Share-based Compensation Arrangement by Share-based Payment Award, Discount from Market Price, Purchase Date Shares issued (in shares) Stock Issued During Period, Shares, Employee Stock Purchase Plans Proceeds received from stock issuance Proceeds, Issuance of Shares, Share-based Payment Arrangement, Excluding Option Exercised Common Stock reserved for future options and restricted stock awards (in shares) Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant Employee funds held by company for future purchase of shares Stock Based Compensation Amount Withheld From Employees For Future Purchases Stock Based Compensation Amount Withheld From Employees For Future Purchases Issuance of preferred stock authorized (in shares) Preferred Stock, Shares Authorized Operating expense depreciation Depreciation Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Use of Estimates Use of Estimates, Policy [Policy Text Block] Recent Accounting Standards New Accounting Pronouncements, Policy [Policy Text Block] Revenue Recognition Revenue from Contract with Customer [Policy Text Block] Leases Lessee, Leases [Policy Text Block] Share-Based Compensation Share-based Payment Arrangement [Policy Text Block] Commitments and Contingencies Disclosure [Abstract] Operating Leases - Right of Use Assets and Purchase Commitments Commitments Disclosure [Text Block] Earnings Per Share [Abstract] Net (loss) income Net Income (Loss) Attributable to Parent Basic weighted average outstanding shares of common stock (in shares) Weighted Average Number of Shares Outstanding, Basic Dilutive effect of stock options, restricted stock units, and other equity incentive plans (in shares) Incremental Common Shares Attributable to Dilutive Effect of Share-based Payment Arrangements Diluted weighted average outstanding shares of common stock (in shares) Weighted Average Number of Shares Outstanding, Diluted Basic net (loss) income per share (in dollars per share) Earnings Per Share, Basic Diluted net (loss) income per share (in dollars per share) Earnings Per Share, Diluted Property and Equipment, net Property, Plant and Equipment Disclosure [Text Block] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Remaining unsatisfied performance obligations to be recognized period Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period Percent of remaining unsatisfied performance obligations to be recognized Revenue, Remaining Performance Obligation, Percentage Other Liabilities Disclosure [Abstract] Other Current Liabilities Other Current Liabilities [Table Text Block] Accumulated Other Comprehensive Income (Loss) [Table] Accumulated Other Comprehensive Income (Loss) [Table] Equity Components [Axis] Equity Components [Axis] Equity Component [Domain] Equity Component [Domain] Foreign Currency Accumulated Foreign Currency Adjustment Attributable to Parent [Member] Unrealized Gains (Losses) on Available for Sale Securities AOCI, Accumulated Gain (Loss), Debt Securities, Available-for-sale, Parent [Member] Accumulated Other Comprehensive Loss AOCI Attributable to Parent [Member] Accumulated Other Comprehensive Income (Loss) [Line Items] Accumulated Other Comprehensive Income (Loss) [Line Items] AOCI Attributable to Parent, Net of Tax [Roll Forward] AOCI Attributable to Parent, Net of Tax [Roll Forward] Beginning balance Stockholders' Equity Attributable to Parent Other comprehensive income before reclassifications OCI, before Reclassifications, Net of Tax, Attributable to Parent Amounts reclassified from accumulated other comprehensive loss Reclassification from AOCI, Current Period, Net of Tax, Attributable to Parent Other comprehensive income (loss) Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent Ending balance Summary of Right-of-use Assets and Liabilities Lessee, Operating Lease, Right-of-Use Asset and Liability Disclosure [Table Text Block] Lessee, Operating Lease, Right-of-Use Asset and Liability Disclosure [Table Text Block] Future Minimum Lease Payments Over Remaining Lease Periods Lessee, Operating Lease, Liability, Maturity [Table Text Block] Minimum Purchase Commitments Unrecorded Unconditional Purchase Obligations Disclosure [Table Text Block] Investments, Debt and Equity Securities [Abstract] Summary of Marketable Securities (Designated as Available-for-Sale) Debt Securities, Available-for-sale [Table Text Block] Amortized Cost and Estimated Fair Value of Marketable Securities (designated as available-for-sale) by maturity Investments Classified by Contractual Maturity Date [Table Text Block] Statement of Comprehensive Income [Abstract] Other comprehensive income (loss), net of tax: Other Comprehensive Income (Loss), Net of Tax [Abstract] Unrealized gain on investments Other Comprehensive Income (Loss), Available-for-sale Securities Adjustment, Net of Tax, Portion Attributable to Parent Foreign exchange translation gain (loss) Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification and Tax, Parent Comprehensive (loss) income Comprehensive Income (Loss), Net of Tax, Attributable to Parent Schedule of Operating Leased Assets [Table] Schedule of Operating Leased Assets [Table] Income Statement Location [Axis] Income Statement Location [Axis] Income Statement Location [Domain] Income Statement Location [Domain] Cost of Revenue Cost of Sales [Member] Operating Expenses Operating Expense [Member] Operating Leased Assets [Line Items] Operating Leased Assets [Line Items] Operating lease liability obligations Operating Lease, Liability, Current Operating lease liability obligations, less current portion Operating Lease, Liability, Noncurrent Total lease liability obligations Weighted-average remaining lease term Lessee, Operating Lease, Term of Contract Weighted-average discount rate Lessee, Operating Lease, Discount Rate Operating lease costs Operating Lease, Expense Operating cash flows from operating leases Operating Lease, Payments Debt Securities, Available-for-sale [Table] Debt Securities, Available-for-sale [Table] Financial Instrument [Axis] Financial Instrument [Axis] Financial Instruments [Domain] Financial Instruments [Domain] Certificate of deposit Certificates of Deposit [Member] Corporate notes and bonds Corporate Debt Securities [Member] Debt Securities, Available-for-sale [Line Items] Debt Securities, Available-for-sale [Line Items] Amortized Cost Debt Securities, Available-for-sale, Amortized Cost Gross Unrealized Gains Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax Gross Unrealized Losses Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax Estimated Fair Value Debt Securities, Available-for-sale Fair Value Disclosures [Abstract] Fair Value, Recurring and Nonrecurring [Table] Fair Value, Recurring and Nonrecurring [Table] Measurement Frequency [Axis] Measurement Frequency [Axis] Measurement Frequency [Domain] Measurement Frequency [Domain] Recurring basis Fair Value, Recurring [Member] Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Domain] Fair Value Hierarchy and NAV [Domain] Quoted Prices In Active Markets for Identical Assets (Level 1) Fair Value, Inputs, Level 1 [Member] Significant Other Observable Inputs (Level 2) Fair Value, Inputs, Level 2 [Member] Significant Unobservable Inputs (Level 3) Fair Value, Inputs, Level 3 [Member] Money market funds Money Market Funds [Member] Fair Value, Off-balance Sheet Risks, Disclosure Information [Line Items] Fair Value, Off-balance Sheet Risks, Disclosure Information [Line Items] Summary of money market funds, marketable securities, other investment-related assets and current liabilities Summary of Certain Financial Instruments [Abstract] Summary of certain financial instruments. Assets: Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract] Total assets measured at fair value Assets, Fair Value Disclosure Share-based Payment Arrangement [Abstract] Share-Based Compensation Share-based Payment Arrangement [Text Block] Statement of Cash Flows [Abstract] Operating activities Net Cash Provided by (Used in) Operating Activities [Abstract] Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Depreciation and amortization Depreciation, Depletion and Amortization Share-based compensation Share-based Payment Arrangement, Noncash Expense Settlement and patent license income Gain (Loss) Related to Litigation Settlement Foreign currency remeasurement gain Foreign Currency Transaction Gain (Loss), Unrealized Deferred income taxes Increase (Decrease) in Deferred Income Taxes Gain on sale of property and equipment Gain (Loss) on Disposition of Property Plant Equipment Accounts receivable charges Accounts Receivable, Credit Loss Expense (Reversal) Amortization of premium on marketable securities Accretion (Amortization) of Discounts and Premiums, Investments Changes in operating assets and liabilities: Increase (Decrease) in Operating Capital [Abstract] Accounts receivable Increase (Decrease) in Accounts Receivable Prepaid expenses and other current assets Increase (Decrease) in Prepaid Expense and Other Assets Income taxes receivable Increase (Decrease) in Income Taxes Receivable Other assets Increase (Decrease) in Other Noncurrent Assets Accounts payable and other current liabilities Increase (Decrease) in Accounts Payable Deferred revenue Increase (Decrease) in Contract with Customer, Liability Income taxes payable Increase (Decrease) in Income Taxes Payable Payments related to litigation, net Loss Contingency Accrual, Payments Other long term liabilities Increase (Decrease) in Other Noncurrent Liabilities Net cash (used in) provided by operating activities Net Cash Provided by (Used in) Operating Activities Investing activities Net Cash Provided by (Used in) Investing Activities [Abstract] Purchases of marketable securities Payments to Acquire Marketable Securities Sale and maturities of marketable securities Proceeds from Sale and Maturity of Marketable Securities Purchases of property and equipment Payments to Acquire Property, Plant, and Equipment Proceeds from sale of property and equipment Proceeds from Sale of Property, Plant, and Equipment Net cash provided by investing activities Net Cash Provided by (Used in) Investing Activities Financing activities Net Cash Provided by (Used in) Financing Activities [Abstract] Payments of employee tax withholdings related to restricted stock vesting Payment, Tax Withholding, Share-based Payment Arrangement Cash paid for purchase of common stock Proceeds from employee stock plans Proceeds from Stock Options Exercised Net cash used in financing activities Net Cash Provided by (Used in) Financing Activities Effect of exchange rate changes on cash and cash equivalents Effect of Exchange Rate on Cash and Cash Equivalents Net (decrease) increase in cash and cash equivalents Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect Cash and cash equivalents, beginning of period Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents Cash and cash equivalents, end of period Supplemental disclosure of cash flow information Supplemental Cash Flow Information [Abstract] Cash paid during the period for interest Interest Paid, Excluding Capitalized Interest, Operating Activities Cash paid during the period for income taxes, net of refunds Income Taxes Paid, Net Risks and Uncertainties [Abstract] Concentrations Concentration Risk Disclosure [Text Block] Receivables [Abstract] Accounts Receivable, net Loans, Notes, Trade and Other Receivables Disclosure [Text Block] Contingencies Legal Matters and Contingencies [Text Block] Net (Loss) Income per Share Earnings Per Share [Text Block] Prepaid Expenses and Other Current Assets Prepaid Expenses And Other Current Assets [Text Block] Prepaid Expenses And Other Current Assets [Text Block] Loss Contingencies [Table] Loss Contingencies [Table] Litigation Case [Axis] Litigation Case [Axis] Litigation Case [Domain] Litigation Case [Domain] Akamai '703 Litigation Akamai '703 Litigation [Member] Akamai '703 Litigation [Member] Akamai and XO Communications Litigation Akamai And XO Communications Litigation [Member] Akamai and XO Communications Litigation [Member] Akamai Litigation Akamai Litigation [Member] Akamai Litigation [Member] 2016 Akamai Litigation 2016 Akamai Litigation [Member] 2016 Akamai Litigation [Member] Litigation Status [Axis] Litigation Status [Axis] Litigation Status [Domain] Litigation Status [Domain] Pending Litigation Pending Litigation [Member] Settled Litigation Settled Litigation [Member] Loss Contingencies [Line Items] Loss Contingencies [Line Items] Provision for litigation Litigation Settlement, Amount Awarded to Other Party Number of quarterly installment payments for litigation settlement Litigation Settlement, Number Of Quarterly Installment Payments Litigation Settlement, Number Of Quarterly Installment Payments Litigation payment, paid Payments for Legal Settlements Number of company patents infringed Number Of Company Patents Infringed Number of Company Patents Infringed Number of patents company was infringing Number of Patents Company Infringed Number of patents company infringed. Number of patents company infringed, withdrawn Number Of Patents Company Infringed, Withdrawn Number of Patents Company Infringed, Withdrawn Number of counterclaims Number Of Counterclaims Number Of Counterclaims Number of additional patents company infringed Number Of Patents Company Infringed, Additional Number of Patents Company Infringed, Additional Period of agreement to not sue Litigation Settlement, Period of Agreement to Not Sue Litigation Settlement, Period of Agreement to Not Sue Legal settlement awarded from other party Litigation Settlement, Amount Awarded from Other Party Litigation payment, received Proceeds from Legal Settlements Segment Reporting [Abstract] Concentration Risk [Table] Concentration Risk [Table] Concentration Risk Type [Axis] Concentration Risk Type [Axis] Concentration Risk Type [Domain] Concentration Risk Type [Domain] Geographic concentration Geographic Concentration Risk [Member] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Domain] Concentration Risk Benchmark [Domain] Sales revenue Revenue Benchmark [Member] Geographical [Axis] Geographical [Axis] Geographical [Domain] Geographical [Domain] United States / Americas UNITED STATES United Kingdom / EMEA UNITED KINGDOM Japan / Asia Pacific JAPAN Concentration Risk [Line Items] Concentration Risk [Line Items] Revenue Revenue from Contract with Customer, Excluding Assessed Tax Components of Share-based Compensation Expense Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block] Accrued compensation and benefits Employee-related Liabilities, Current Accrued cost of revenue Accrued Cost of Revenue Accrued cost of revenue. Deferred rent Accrued Rent, Current Deferred rent Deferred Rent Credit, Current Accrued legal fees Accrued Professional Fees, Current Other accrued expenses Other Accrued Liabilities, Current Total other current liabilities Other Liabilities, Current Statement of Financial Position [Abstract] Convertible Preferred Stock, Par Value (in dollars per share) Preferred Stock, Par or Stated Value Per Share Convertible Preferred Stock, Shares Authorized Convertible Preferred Stock, Shares Issued Preferred Stock, Shares Issued Convertible Preferred Stock, Shares Outstanding Preferred Stock, Shares Outstanding Common Stock, Par Value (in dollars per share) Common Stock, Par or Stated Value Per Share Common Stock, Shares Authorized Common Stock, Shares Authorized Common Stock, Shares Issued Common Stock, Shares, Issued Common Stock, Shares Outstanding Common Stock, Shares, Outstanding Organization, Consolidation and Presentation of Financial Statements [Abstract] Nature of Business Nature of Operations [Text Block] Summary of Accounts Receivable, net Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block] Minimum purchase commitments Unrecorded Unconditional Purchase Obligation, Fiscal Year Maturity [Abstract] Remainder of 2019 Unrecorded Unconditional Purchase Obligation, Due in Remainder of Fiscal Year 2020 Unrecorded Unconditional Purchase Obligation, Due within Two Years 2021 Unrecorded Unconditional Purchase Obligation, Due within Three Years 2022 Unrecorded Unconditional Purchase Obligation, Due within Four Years 2023 Unrecorded Unconditional Purchase Obligation, Due within Five Years Thereafter Unrecorded Unconditional Purchase Obligation, Due after Five Years Total minimum payments Unrecorded Unconditional Purchase Obligation Investments in Marketable Securities Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block] Debt Disclosure [Abstract] Line of Credit Debt Disclosure [Text Block] Property and Equipment, net Property, Plant and Equipment [Table Text Block] Document and Entity Information [Abstract] Document and entity information. Entity Registrant Name Entity Registrant Name Entity Central Index Key Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Filer Category Entity Filer Category Document Type Document Type Document Period End Date Document Period End Date Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Amendment Flag Amendment Flag Entity Small Business Entity Small Business Entity Emerging Growth Company Entity Emerging Growth Company Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Entity Current Reporting Status Entity Current Reporting Status Entity Shell Company Entity Shell Company Debt securities Debt Securities [Member] Amortized Cost, Due in one year or less Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Amortized Cost Amortized Cost, Due after one year and through five years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Amortized Cost Gross Unrealized Gains, Due in one year or less Debt Securities, Available-For-Sale, Next Twelve Months, Accumulated Gross Unrealized Gains Debt Securities, Available-For-Sale, Next Twelve Months, Accumulated Gross Unrealized Gains Gross Unrealized Gains, Due after one year and through five years Debt Securities, Available-For-Sale, Year Two Through Five, Accumulated Gross Unrealized Gains Debt Securities, Available-For-Sale, Year Two Through Five, Accumulated Gross Unrealized Gains Gross Unrealized Gains Gross Unrealized Losses, Due in one year or less Debt Securities, Available-For-Sale, Next Twelve Months, Accumulated Gross Unrealized Losses Debt Securities, Available-For-Sale, Next Twelve Months, Accumulated Gross Unrealized Losses Gross Unrealized Losses, Due after one year and through five years Debt Securities, Available-For-Sale, Year Two Through Five, Accumulated Gross Unrealized Losses Debt Securities, Available-For-Sale, Year Two Through Five, Accumulated Gross Unrealized Losses Gross Unrealized Losses Estimated Fair Value, Due in one year or less Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Fair Value Estimated Fair Value, Due after one year and through five years Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Fair Value Estimated Fair Value Stockholders' Equity Stockholders' Equity Note Disclosure [Text Block] Prepaid Expenses and Other Current Assets Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Table Text Block] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Title of Individual [Axis] Title of Individual [Axis] Title of Individual [Domain] Title of Individual [Domain] Chief Executive Officer And Direct Reports Chief Executive Officer And Direct Reports [Member] Chief Executive Officer And Direct Reports [Member] Stock for Compensation Program Stock for Compensation Program [Member] Stock for Compensation Program [Member] Stock options Share-based Payment Arrangement, Option [Member] Restricted stock units Restricted Stock Units (RSUs) [Member] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Unrecognized share-based compensation expense total Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount Share-based compensation expense, remainder of 2019 Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Remainder of Fiscal Year Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Remainder of Fiscal Year Share-based compensation expense, 2020 Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, In Next Fiscal Year Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, In Next Fiscal Year Stock for compensation program, percentage of compensation, election option one Share-based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Percentage Of Compensation, Election Option One Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Percentage of Compensation, Election Option One Stock for compensation program, percentage of compensation, election option two Share-based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Percentage Of Compensation, Election Option Two Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Percentage of Compensation, Election Option Two Stock for compensation program, percentage of compensation, election option three Share-based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Percentage Of Compensation, Election Option Three Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Percentage of Compensation, Election Option Three Stock for compensation program, percentage of compensation, election option four Share-based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Percentage Of Compensation, Election Option Four Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Percentage of Compensation, Election Option Four Stock for compensation program, percentage of compensation, election option five Share-based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Percentage Of Compensation, Election Option Five Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Percentage of Compensation, Election Option Five Stock for compensation program, minimum price per share to terminate program (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Per Share Trigger Price of Shares Purchased Share-based Compensation Arrangement by Share-based Payment Award, Per Share Trigger Price of Shares Purchased Stock for compensation program, number of participants Deferred Compensation Arrangement With Individual, Participants Deferred Compensation Arrangement With Individual, Participants Number of shares issued to program participants Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross Stock issued during period, share-based compensation Deferred Compensation Arrangement with Individual, Allocated Share-based Compensation Expense Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table] Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table] ESPP Cost of services General and administrative expense General and Administrative Expense [Member] Sales and marketing expense Selling and Marketing Expense [Member] Research and development expense Research and Development Expense [Member] Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] Components of share-based compensation expense Share-based Payment Arrangement, Additional Disclosure [Abstract] Income Tax Disclosure [Abstract] Income Taxes Income Tax Disclosure [Text Block] Goodwill and Intangible Assets Disclosure [Abstract] Goodwill Goodwill and Intangible Assets Disclosure [Text Block] Fair Value Measurements Fair Value Disclosures [Text Block] Accumulated Other Comprehensive Loss Comprehensive Income (Loss) Note [Text Block] Segment Reporting and Geographic Areas Segment Reporting Disclosure [Text Block] Schedule of Revenues from External Customers and Long-Lived Assets [Table] Schedule of Revenues from External Customers and Long-Lived Assets [Table] Segment, Geographical [Domain] Americas Americas [Member] EMEA EMEA [Member] Asia Pacific Asia Pacific [Member] Revenues from External Customers and Long-Lived Assets [Line Items] Revenues from External Customers and Long-Lived Assets [Line Items] Revenue earned by geographic area Revenue Earned by Geographic Area [Abstract] Revenue earned by geographic area. Percent of revenue Concentration Risk, Percentage Foreign currency translation adjustment Goodwill, Foreign Currency Translation Gain (Loss) Summary of Significant Accounting Policies Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block] Income Statement [Abstract] Cost of revenue: Cost of Revenue [Abstract] Cost of services Cost of Goods and Service, Excluding Depreciation, Depletion, and Amortization Depreciation — network Cost, Depreciation Total cost of revenue Cost of Revenue Gross profit Gross Profit Operating expenses: Operating Expenses [Abstract] General and administrative General and Administrative Expense Sales and marketing Selling and Marketing Expense Research and development Research and Development Expense Depreciation and amortization Depreciation, Depletion and Amortization, Nonproduction Total operating expenses Operating Expenses Operating (loss) income Operating Income (Loss) Other income (expense): Nonoperating Income (Expense) [Abstract] Interest expense Interest Expense Interest income Investment Income, Interest Settlement and patent license income Other, net Other Nonoperating Income (Expense) Total other income (expense) Nonoperating Income (Expense) (Loss) income before income taxes Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest Income tax expense Income Tax Expense (Benefit) Net (loss) income Net (loss) income per share: Basic (in dollars per share) Diluted (in dollars per share) Weighted average shares used in per share calculation: Weighted Average Number of Shares Outstanding, Diluted [Abstract] Basic (shares) Diluted (shares) Number of customers who represented 10% or more of total revenue Number Of Customers Who Represented 10 Percent Or More Of Total Revenue Number of Customers Who Represented 10% or More of Total Revenue Revenue Number of countries accounting for 10% or more of revenue Concentration Risk, Number Of Countries Concentration Risk, Number of Countries Other Current Liabilities Other Liabilities Disclosure [Text Block] Schedule of Accumulated Other Comprehensive Loss Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block] Statement of Stockholders' Equity [Abstract] Statement [Table] Statement [Table] Common Stock Common Stock [Member] Additional Paid-In Capital Additional Paid-in Capital [Member] Accumulated Deficit Retained Earnings [Member] Statement [Line Items] Statement [Line Items] Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Beginning balance, shares Change in unrealized loss on available-for-sale investments, net of taxes Foreign currency translation adjustment, net of taxes Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent Vesting of restricted stock units, shares Stock Issued During Period, Shares, Restricted Stock Award, Gross Vesting of restricted stock units APIC, Share-based Payment Arrangement, Restricted Stock Unit, Increase for Cost Recognition Restricted stock units surrendered in lieu of withholding taxes, shares Stock Issued During Period, Shares, Restricted Stock Award, Forfeited Restricted stock units surrendered in lieu of withholding taxes Stock Issued During Period, Value, Restricted Stock Award, Forfeitures Issuance of common stock under employee stock purchase plan (in shares) Issuance of common stock under employee stock purchase plan Stock Issued During Period, Value, Employee Stock Purchase Plan Share-based compensation APIC, Share-based Payment Arrangement, Increase for Cost Recognition Exercise of common stock options, shares Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period Exercise of common stock options Stock Issued During Period, Value, Stock Options Exercised Cumulative effect of accounting change Cumulative Effect of New Accounting Principle in Period of Adoption Purchases of common stock, shares Stock Repurchased During Period, Shares Purchases of common stock Stock Repurchased During Period, Value Ending balance, shares Reconciliation of Assets from Segment to Consolidated [Table] Reconciliation of Assets from Segment to Consolidated [Table] Americas International Non-US [Member] Segment Reporting, Asset Reconciling Item [Line Items] Segment Reporting, Asset Reconciling Item [Line Items] Long-lived assets by geographical area Geographic Areas, Long-Lived Assets [Abstract] Long-lived assets Long-Lived Assets Related Party Transactions [Abstract] Related Party Transactions Related Party Transactions Disclosure [Text Block] ASSETS Assets [Abstract] Current assets: Assets, Current [Abstract] Cash and cash equivalents Cash and Cash Equivalents, at Carrying Value Marketable securities Marketable Securities, Current Accounts receivable, net Accounts Receivable, after Allowance for Credit Loss, Current Income taxes receivable Income Taxes Receivable, Current Prepaid expenses and other current assets Total current assets Assets, Current Property and equipment, net Operating lease right of use assets Marketable securities, less current portion Marketable Securities, Noncurrent Deferred income taxes Deferred Income Tax Assets, Net Goodwill Goodwill Other assets Other Assets, Noncurrent Total assets Assets LIABILITIES AND STOCKHOLDERS’ EQUITY Liabilities and Equity [Abstract] Current liabilities: Liabilities, Current [Abstract] Accounts payable Accounts Payable, Current Deferred revenue Contract with Customer, Liability, Current Income taxes payable Taxes Payable, Current Provision for litigation Estimated Litigation Liability, Current Other current liabilities Total current liabilities Liabilities, Current Deferred income taxes Deferred Income Tax Liabilities, Net Deferred revenue, less current portion Contract with Customer, Liability, Noncurrent Other long-term liabilities Other Liabilities, Noncurrent Total liabilities Liabilities Commitments and contingencies Commitments and Contingencies Stockholders’ equity: Stockholders' Equity Attributable to Parent [Abstract] Convertible preferred stock, $0.001 par value; 7,500 shares authorized; no shares issued and outstanding Preferred Stock, Value, Issued Common stock, $0.001 par value; 300,000 shares authorized; 115,760 and 114,246 shares issued and outstanding at June 30, 2019 and December 31, 2018, respectively Common Stock, Value, Issued Additional paid-in capital Additional Paid in Capital Accumulated other comprehensive loss Accumulated Other Comprehensive Income (Loss), Net of Tax Accumulated deficit Retained Earnings (Accumulated Deficit) Total stockholders’ equity Total liabilities and stockholders’ equity Liabilities and Equity Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table] Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table] Antidilutive Securities [Axis] Antidilutive Securities [Axis] Antidilutive Securities, Name [Domain] Antidilutive Securities, Name [Domain] Employee stock purchase plan Employee Stock Purchase Plan [Member] Employee Stock Purchase Plan [Member] Stock options Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Excluded outstanding options and restricted stock units (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Summary of Accounts Receivable, net Accounts Receivable, after Allowance for Credit Loss, Current [Abstract] Accounts receivable Billed Contracts Receivable Less: credit allowance Credit Allowance Credit allowance. Less: allowance for doubtful accounts Accounts Receivable, Allowance for Credit Loss, Current Total accounts receivable, net Schedule of Related Party Transactions, by Related Party [Table] Schedule of Related Party Transactions, by Related Party [Table] Related Party [Axis] Related Party [Axis] Related Party [Domain] Related Party [Domain] Goldman, Sachs & Co. Affiliates Goldman, Sachs & Co. Affiliates [Member] Goldman, Sachs & Co. Affiliates [Member] Class of Stock [Axis] Class of Stock [Axis] Class of Stock [Domain] Class of Stock [Domain] Series B Preferred Stock Series B Preferred Stock [Member] Related Party Transaction [Line Items] Related Party Transaction [Line Items] Aggregate issuance of Series B Preferred Stock (in shares) Stock Issued During Period Shares Private Placement Stock issued during period shares private placement. Aggregate issuance of Series B Preferred Stock, purchase price (in dollars per share) Share Price Preferred Stock conversion ratio Preferred Stock Conversion Ratio Preferred Stock Conversion Ratio Number of shares sold by related party Related Party Transaction, Number of Shares Sold by Related Party Related Party Transaction, Number of Shares Sold by Related Party Ownership percentage Percentage Of Ownership Percentage of ownership. Summary of Money Market Funds, Marketable Securities, Other Investment-related Assets and Current Liabilities Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block] Computation of Basic and Diluted Net (Loss) Income Per Share Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block] Income tax expense (benefit) Future minimum lease payments over remaining lease periods Lessee, Operating Lease, Liability, Payment, Due [Abstract] Remainder of 2019 Lessee, Operating Lease, Liability, Payments, Remainder of Fiscal Year 2020 Lessee, Operating Lease, Liability, Payments, Due Year Two 2021 Lessee, Operating Lease, Liability, Payments, Due Year Three 2022 Lessee, Operating Lease, Liability, Payments, Due Year Four 2023 Lessee, Operating Lease, Liability, Payments, Due Year Five Thereafter Lessee, Operating Lease, Liability, Payments, Due after Year Five Total minimum payments Lessee, Operating Lease, Liability, Payments, Due Less: amount representing interest Lessee, Operating Lease, Liability, Undiscounted Excess Amount Total Additional right-of-use that has not yet commenced Operating Lease, Lease Not yet Commenced, Expense Operating Lease, Lease Not yet Commenced, Expense Additional right-of-use that has not yet commenced, lease terms Lessee, Operating Lease, Lease Not yet Commenced, Term of Contract Line of Credit Facility [Table] Line of Credit Facility [Table] Credit Facility [Axis] Credit Facility [Axis] Credit Facility [Domain] Credit Facility [Domain] Revolving Credit Facility Revolving Credit Facility [Member] Debt Instrument [Axis] Debt Instrument [Axis] Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] Credit Agreement Silicon Valley Bank Credit Agreement [Member] Silicon Valley Bank Credit Agreement [Member] Variable Rate [Axis] Variable Rate [Axis] Variable Rate [Domain] Variable Rate [Domain] Alternative Base Rate Alternative Base Rate [Member] Alternative Base Rate [Member] Line of Credit Facility [Line Items] Line of Credit Facility [Line Items] Maximum borrowing amount Line of Credit Facility, Maximum Borrowing Capacity Borrowing capacity limit, percent of accounts receivable Borrowing Capacity, Percent Of Accounts Receivable Borrowing Capacity, Percent of Accounts Receivable Proceeds from line of credit Long-term Line of Credit Current borrowing capacity Line of Credit Facility, Remaining Borrowing Capacity Variable rate minimum Debt Instrument, Basis Spread, Defining Variable Rate Debt Instrument, Basis Spread, Defining Variable Rate Increase in interest rate in event of default Debt Instrument, Default, Penalty Interest Rate Increase Debt Instrument, Default, Penalty Interest Rate Increase Interest expense Interest Expense, Debt Commitment fees amortization Amortization of Debt Issuance Costs Voting stock percentage in foreign subsidiaries Voting Stock In Foreign Subsidiaries, Percentage Voting Stock In Foreign Subsidiaries, Percentage Line of credit facility, covenant compliance, minimum cash and revolver availability Line Of Credit Facility, Covenant Compliance, Minimum Cash And Revolver Availability Line Of Credit Facility, Covenant Compliance, Minimum Cash And Revolver Availability Line of credit facility, covenant compliance, minimum cash at lender Line Of Credit Facility, Covenant Compliance, Minimum Cash At Lender Line Of Credit Facility, Covenant Compliance, Minimum Cash At Lender Line of credit facility, covenant compliance, adjusted quick ratio Line of Credit Facility, Covenant Compliance, Adjusted Quick Ratio Line of Credit Facility, Covenant Compliance, Adjusted Quick Ratio Revenue Earned by Geographic Area Reconciliation of Revenue from Segments to Consolidated [Table Text Block] Schedules of Concentration of Revenue by Country Schedules of Concentration of Risk, by Risk Factor [Table Text Block] Long-lived Assets by Geographical Area Long-lived Assets by Geographic Areas [Table Text Block] Number of industry segment Number of Operating Segments Number of geographic areas Number of Geographical Areas Number of geographical areas.