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

# GetVisitsByConversion

Returns a list of the visits which have been made by businesses with the provided conversion 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/GetVisitsByConversion": {
      "get": {
        "summary": "GetVisitsByConversion",
        "description": "",
        "operationId": "getvisitsbyconversion",
        "parameters": [
          {
            "name": "conversionid",
            "in": "query",
            "description": "The unique identifier for the conversion to return the visits for",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "datefrom",
            "in": "query",
            "description": "The date from which the businesses have visited",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateto",
            "in": "query",
            "description": "The date to which the businesses have visited",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "description": "Number of records to return in a page of results",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageno",
            "in": "query",
            "description": "The particular page of results to return",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"SiteVisitList\": [\n    {\n      \"BusinessID\": 496701,\n      \"VisitID\": 1710514325,\n      \"StartDateTime\": \"2016-05-26T21:19:16\",\n      \"EndDateTime\": \"2016-05-26T21:33:12\",\n      \"Keywords\": \"\",\n      \"Pages\": 17,\n      \"Multi\": 0,\n      \"ReferrerName\": \"Google\",\n      \"ReferrerLink\": \"https://www.google.com/\"\n    },\n    {\n      \"BusinessID\": 2857213,\n      \"VisitID\": 1705187187,\n      \"StartDateTime\": \"2016-05-24T20:05:18\",\n      \"EndDateTime\": \"2016-05-24T20:09:06\",\n      \"Keywords\": \"\",\n      \"Pages\": 6,\n      \"Multi\": 0,\n      \"ReferrerName\": \"Google\",\n      \"ReferrerLink\": \"http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0ahUKEwiuuvjes_PMAhXG4yYKHfc2BmYQFggfMAA&url=http%3A%2F%2Fwww.baymarketforce.com%2F&usg=AFQjCNFx00dhj8qDy1t2rxEITcW3G8NyEg&bvm=bv.122676328,d.eWE\"\n    }\n  ],\n  \"PageSize\": 2,\n  \"PageCount\": 3,\n  \"RecordCount\": 4,\n  \"CurrentPage\": 1\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "SiteVisitList": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "BusinessID": {
                            "type": "integer",
                            "example": 496701,
                            "default": 0
                          },
                          "VisitID": {
                            "type": "integer",
                            "example": 1710514325,
                            "default": 0
                          },
                          "StartDateTime": {
                            "type": "string",
                            "example": "2016-05-26T21:19:16"
                          },
                          "EndDateTime": {
                            "type": "string",
                            "example": "2016-05-26T21:33:12"
                          },
                          "Keywords": {
                            "type": "string",
                            "example": ""
                          },
                          "Pages": {
                            "type": "integer",
                            "example": 17,
                            "default": 0
                          },
                          "Multi": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "ReferrerName": {
                            "type": "string",
                            "example": "Google"
                          },
                          "ReferrerLink": {
                            "type": "string",
                            "example": "https://www.google.com/"
                          }
                        }
                      }
                    },
                    "PageSize": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "PageCount": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "RecordCount": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "CurrentPage": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "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/GetVisitsByConversion?businessid=1101279&datefrom=10-05-2016 00:00:00&dateto=19-06-2016 23:59:59&pagesize=5&pageno=1', \n  headers: {\n    'Authorization-Token': 'Zax4qjY5w3tmAlqJUajROgW',\n    'ClientID':'45656'\n  },\n  success: function (data) {  \n    if (data.SiteVisitList.length > 0) {\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:573f23a8dbf53019002fab99"
}
```