---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Get Sponsor's Analytics

* API used at host side event admin, super admin, and organizer admin can access this API.
* On the host side when we click on Analytics -> Sponsors -> Details ( on sponsors row), it will give us a sponsors Id and it will return the information of how many times the sponsor gets clicked by attendees in the provided source. 
* Possible sources where attendees can click on sponsors cards are the sponsor tab on the event site, the sponsor tab in the lobby, the area above chat, and inside sessions.
* On the event site page if the user is not logged in then clicks on this user will be counted as Anonymous clicks
* We need to pass an authorization token here, which is generated after successful login into the account.

Here is the description of response attributes, which returns in the form of JSON.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attributes
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        **Id**
      </td>

      <td style={{ textAlign: "left" }}>
        Unique id of the sponsor.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Sponsor Name**
      </td>

      <td style={{ textAlign: "left" }}>
        Name of the sponsor.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Count By Source**
      </td>

      <td style={{ textAlign: "left" }}>
        Click count information of provided source where attendees can click on sponsor cards.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Logged In**
      </td>

      <td style={{ textAlign: "left" }}>
        The number of clicks made by logged-in users on the event site page.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Anonymous**
      </td>

      <td style={{ textAlign: "left" }}>
        The number of clicks made by not logged-in users on the event site page.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Carousel**
      </td>

      <td style={{ textAlign: "left" }}>
        The number of clicks made from the carousel (Area above Chat).
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **Sponsor**
      </td>

      <td style={{ textAlign: "left" }}>
        The number of clicks from the Sponsor tab on the Lobby or inside a Session.
      </td>
    </tr>
  </tbody>
</Table>

Description of HTTP Response code.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Response Code
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        200
      </td>

      <td>
        Successfully API called.
      </td>
    </tr>

    <tr>
      <td>
        400
      </td>

      <td>
        The request could not be understood by the server due to malformed syntax.
      </td>
    </tr>

    <tr>
      <td>
        401
      </td>

      <td>
        You are not authorized to view the resource.
      </td>
    </tr>

    <tr>
      <td>
        4030201
      </td>

      <td>
        You don't have host-level access to access the resource
      </td>
    </tr>

    <tr>
      <td>
        4040049
      </td>

      <td>
        A valid source is not provided in API. Valid sources are:\
        `lobby`, `session` and `event_site`
      </td>
    </tr>
  </tbody>
</Table>

* For different sources, it will give a different response.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Source
      </th>

      <th>
        Response
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **Lobby** 
      </td>

      <td>
        ```
        {
          "id": 3977,
          "sponsorName": "Small Sponsor2",
          "countBySource": {
            "sponsor": 0,
            "carousel": 0
          }
        }
        ```
      </td>
    </tr>

    <tr>
      <td>
        **Session**
      </td>

      <td>
        ```
        {
          "id": 3977,
          "sponsorName": "Small Sponsor2",
          "countBySource": {
            "sponsor": 4,
            "carousel": 1
          }
        }
        ```
      </td>
    </tr>

    <tr>
      <td>
        **Event Site**
      </td>

      <td>
        ```
        {
          "id": 3977,
          "sponsorName": "Small Sponsor2",
          "countBySource": {
            "logged_in": 1,
            "anonymous": 0
          }
        }
        ```
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/sponsors/{sponsorId}/analytics/source/{source}": {
      "get": {
        "summary": "Get Sponsor's Analytics",
        "description": "* API used at host side event admin, super admin, and organizer admin can access this API.\n* On the host side when we click on Analytics -> Sponsors -> Details ( on sponsors row), it will give us a sponsors Id and it will return the information of how many times the sponsor gets clicked by attendees in the provided source. \n* Possible sources where attendees can click on sponsors cards are the sponsor tab on the event site, the sponsor tab in the lobby, the area above chat, and inside sessions.\n* On the event site page if the user is not logged in then clicks on this user will be counted as Anonymous clicks\n* We need to pass an authorization token here, which is generated after successful login into the account.",
        "operationId": "get-sponsors-analytics",
        "parameters": [
          {
            "name": "sponsorId",
            "in": "path",
            "description": "Unique id of the sponsor",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          },
          {
            "name": "source",
            "in": "path",
            "description": "Different source where attendees can click on sponsors. Sources are : `lobby`, `session` and `event_site`",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "authorization",
            "in": "header",
            "description": "API authentication token.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"id\":1245,\"sponsorName\":\"sp1\",\"countBySource\":{\"logged_in\":5,\"anonymous\":505}}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 1245,
                      "default": 0
                    },
                    "sponsorName": {
                      "type": "string",
                      "example": "sp1"
                    },
                    "countBySource": {
                      "type": "object",
                      "properties": {
                        "logged_in": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "anonymous": {
                          "type": "integer",
                          "example": 505,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{ \"errorMessage\": \"Not authorized\", \"errorCode\": \"4010101\",\"developerMessage\": \"Not authorize to access\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorMessage": {
                      "type": "string",
                      "example": "Not authorized"
                    },
                    "errorCode": {
                      "type": "string",
                      "example": "4010101"
                    },
                    "developerMessage": {
                      "type": "string",
                      "example": "Not authorize to access"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```