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

# Event data

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://www.townscript.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/eventdata/get": {
      "get": {
        "summary": "Event data",
        "description": "",
        "operationId": "event-data",
        "parameters": [
          {
            "name": "eventtype",
            "in": "query",
            "description": "Event type should always be 0.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shortname",
            "in": "query",
            "description": "Shortname of the event you want to load.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "You should be passing Token which was retrieved in above API.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"result\": \"Success\",\n  \"data\": \"{\\\"id\\\":5309,\\\"name\\\":\\\"Townscript Hackathon\\\",\\\"venueLocation\\\":\\\"Koregaon Park\\\",\\\"startTime\\\":\\\"2015-12-14T18:49:00.000+0530\\\",\\\"city\\\":\\\"Pune\\\",\\\"pinCode\\\":0,\\\"shortName\\\":\\\"townscript-hackathon\\\",\\\"description\\\":\\\"\\<div>Townscript Hackathon</div>\\\",\\\"eventCreatorId\\\":3080,\\\"absoluteBannerImageUrl\\\":\\\"//s3-ap-southeast-1.amazonaws.com/common-resources/city-banners/large/pune.jpg\\\",\\\"absoluteMobileImageUrl\\\":\\\"//s3-ap-southeast-1.amazonaws.com/common-resources/city-banners/mobile/pune.jpg\\\",\\\"organizerName\\\":\\\"Townscript\\\",\\\"isPublic\\\":true,\\\"isRecurrent\\\":false,\\\"endTime\\\":\\\"2016-04-27T23:00:00.000+0530\\\",\\\"eventTypeIndex\\\":0,\\\"latitude\\\":18.536208400000000,\\\"longitude\\\":73.893974800000000,\\\"eventCreationTime\\\":\\\"2015-12-14T17:50:00.000+0530\\\",\\\"soldOutFlag\\\":false,\\\"showOnApp\\\":true,\\\"reportFlag\\\":false,\\\"live\\\":true,\\\"onlineEvent\\\":false}\"\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "630541de9807941f67a9343a:572367417b36300e00926cf5"
}
```