Visit Object

Use visit resources to learn about a user visit to your website. Discover the user's Account Engagement ID, Google Analytics parameters, and other information.

Include the authentication header with every request. For information on how to authenticate, see Authentication.

Resource NameOperationDescription
Visit QueryGETRequest information for visit records that matches the specified criteria.
Visit ReadGETRequest information for a single visit record.

Request information for the visit records that match the specified criteria. You can specify the visit records and fields to request. A maximum of 200 records are returned. To return all visit records, specify the output as mobile.

Replace <selection parameter> with ids, visitor_ids, or prospect_ids. Your visit query request must include one selection parameter.

Use these parameters to specify the visit records to return.

ParameterTypePossible ValuesDescription
<ids>arrayAccount Engagement visit IDsRequests visit records with the specified Account Engagement visit ID. Separate the IDs with a comma (no spaces). We recommend using a POST request.
<visitor_ids>arrayAccount Engagement visitor IDsRequest visit records with the specified Account Engagement visitor IDs. Separate the IDs with a comma (no spaces). We recommend using a POST request.
<prospect_ids>arrayAccount Engagement prospect IDsRequest visit records with the specified Account Engagement prospect IDs. Separate the IDs with a comma (no spaces). We recommend using a POST request.

Use these parameters to specify the visit fields to return.

ParameterTypePossible ValuesDescription
limitintegerAny integer from 1 through 200.The number of visit records to return. Default value is 200.
offsetintegerAny positive integerThe number of visit records to omit from the response (the number to "skip over"). Remember to include one of the parameters ids, visitor_ids, or prospect_ids. Example: Retrieve a list of visits for the prospect with Account Engagement ID 1234. Sort the visits by Account Engagement ID, and skip over the first 10 visits: /api/visit/version/4/do/query?offset=10&sort_by=ids&prospect_ids=1234.

Visits are returned in order of ascending ID.

Request information for a single visit record.

Replace <ID> with the Account Engagement ID of the visit record.

Request information about the visit record with ID 1234.

The XML response for a query request contains information for multiple visit records. The XML response for a read request contains information for a single visit record.

TagDescription
<result>Parent tag. Contains information about the visit records that match the parameters specified in your query.
<total_results>Contains the number of visit records selected by the query. Note The query request returns a maximum of 200 visit records. If your query matches more than 200 records, you can make several requests to retrieve all matching records.
<visit>Contains information about a single visit record. See Visit in Object Field References for a complete description of fields.
TagDescription
<visit>The information about a single visit. See Visit in Object Field References for a complete description of fields.