# 🟢 Foxentry functions in Google Sheets

Besides validation via the sidebar, the Foxentry add-on for Google Sheets also lets you work directly with spreadsheet functions (formulas). These fall into two basic categories, depending on whether they send a request to the API or only process data already downloaded.

  Important notice for working with functions

  When using validations via spreadsheet functions, you must always "paste over" the obtained results as static values. If you don't, Google Sheets will recalculate the formulas and send a new request to our API every time the page refreshes (or the sheet is edited). You would be needlessly burning through credits. So always copy the obtained results after validation (Ctrl + C) and paste them back in the exact same place as values only (Ctrl + Shift + V).

Functions that call the API (consume credits)

These functions send requests directly to our servers, start the actual validation, and consume API credits. The result is the complete raw response in text format (API Response).

  
    
      Function
      Syntax
      Description
    
  
  
    
      =EMAIL_VALIDATE
      =EMAIL_VALIDATE(email, "extended/basic", true/false, true/false)
      Validates an e-mail address and returns the full API response.*
    
    
      =PHONE_VALIDATE
      =PHONE_VALIDATE(phone, "extended/basic")
      Validates a phone number and returns the full API response.
    
    
      =PHONE_VALIDATE_WITH_PREFIX
      =PHONE_VALIDATE_WITH_PREFIX(prefix, phone, "extended/basic")
      Validates a phone number and a separate prefix, then returns the full API response.
    
  

* The true/false parameters of the EMAIL_VALIDATE function determine whether the API should treat temporary (disposable) e-mails and freemails as valid. This setting is only available and functional for extended validation ("extended").

Functions that process the response (don't consume credits)

These functions analyze the raw response (API Response) you obtained from the previous functions or via the sidebar. They are used to pull specific values out of the code into separate cells and don't consume any additional API credits.

  
    
      Function
      Syntax
      Description
    
  
  
    
      =EMAIL_IS_FREEMAIL
      =EMAIL_IS_FREEMAIL(API_Response, "result/resultCorrected")
      Returns whether this is a freemail mailbox.
    
    
      =EMAIL_IS_DISPOSABLE
      =EMAIL_IS_DISPOSABLE(API_Response, "result/resultCorrected")
      Returns whether this is a temporary (disposable) mailbox.
    
    
      =EMAIL_IS_CATCH_ALL_SERVER
      =EMAIL_IS_CATCH_ALL_SERVER(API_Response, "result/resultCorrected")
      Returns whether this is a catch-all server.
    
    
      =PHONE_GET_TYPE
      =PHONE_GET_TYPE(API_Response)
      Returns the type of phone line in question (mobile, landline, etc.).
    
    
      =PHONE_GET_CARRIER
      =PHONE_GET_CARRIER(API_Response)
      Returns information about the phone number's carrier.
    
    
      =PHONE_GET_FORMAT
      =PHONE_GET_FORMAT(API_Response, "RAW/National/E.164/E.123", "result/resultCorrected/suggestion")
      Returns the phone number formatted according to the requested international or national standard.
    
    
      =GET_ERROR
      =GET_ERROR(API_Response)
      Returns information about a possible API error or the detailed evaluation status.
    
    
      =GET_PROPOSAL
      =GET_PROPOSAL(API_Response)
      Returns information about the proposed data correction (if available).
    
    
      =GET_CORRECTED
      =GET_CORRECTED(API_Response)
      Returns the already automatically corrected data.
    
    
      =GET_SUGGESTION
      =GET_SUGGESTION(API_Response)
      Returns a more likely alternative or recommended correction of the value.
    
  

How do you actually use the functions?

For a detailed walkthrough and examples of exactly how to enter these formulas into cells and how they build on each other, see our follow-up guide.
