---
agentTools:
  projectIndex: https://leadforensics-api.readme.io/llms.txt
---

# GetVisit

Returns details about a visit provided to the call as an identifier.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://interact.leadforensics.com/WebApi_v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "ClientID",
        "x-default": "45656"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization-Token",
        "x-default": "Zax4qjY5w3tmAlqJUajROgW"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/Visit/GetVisit": {
      "get": {
        "summary": "GetVisit",
        "description": "",
        "operationId": "getvisit",
        "parameters": [
          {
            "name": "visitid",
            "in": "query",
            "description": "The unique identifier for the visit to be returned",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"BusinessID\": 2745096,\n  \"VisitID\": 1632401172,\n  \"StartDateTime\": \"2016-04-24T02:06:31\",\n  \"EndDateTime\": \"2016-04-24T02:06:34\",\n  \"Keywords\": \"\",\n  \"Pages\": 3,\n  \"Multi\": 0,\n  \"ReferrerName\": \"Direct\",\n  \"ReferrerLink\": \"\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "BusinessID": {
                      "type": "integer",
                      "example": 2745096,
                      "default": 0
                    },
                    "VisitID": {
                      "type": "integer",
                      "example": 1632401172,
                      "default": 0
                    },
                    "StartDateTime": {
                      "type": "string",
                      "example": "2016-04-24T02:06:31"
                    },
                    "EndDateTime": {
                      "type": "string",
                      "example": "2016-04-24T02:06:34"
                    },
                    "Keywords": {
                      "type": "string",
                      "example": ""
                    },
                    "Pages": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "Multi": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "ReferrerName": {
                      "type": "string",
                      "example": "Direct"
                    },
                    "ReferrerLink": {
                      "type": "string",
                      "example": ""
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "javascript",
              "code": "$.ajax({ \n  type: 'GET', \n  dataType: 'json', \n  url: 'https://interact.leadforensics.com/WebApi_v2/Visit/GetVisit?visitid=1258759738', \n  headers: {\n    'Authorization-Token': 'Zax4qjY5w3tmAlqJUajROgW',\n    'ClientID':'45656'\n  },\n  success: function (data) {  \n    if (data != undefined) {\n      //we have a visit record \n    }\n    else {\n      //we do not have a visit record \n    }\n  },  \n  error: function (err) {  \n    //ajax error trap  \n  }  \n});"
            }
          ],
          "samples-languages": [
            "javascript"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "59970b303013510019572b1e:573f2069dbf53019002fab8e"
}
```