DEV Community · Schema

Poll

A poll (question) belonging to a survey or article

Developer CommunityArticlesBloggingSocialContentOpen-Source

Properties

Name Type Description
type_of string Resource discriminator
id integer
prompt_markdown string Question text in markdown
prompt_html string Question text rendered as HTML
poll_type_of string Poll question type: single_choice, multiple_choice, scale, or text_input
position integer Display order within the survey
poll_votes_count integer Total number of votes across all options
poll_skips_count integer Number of users who skipped this poll
poll_options_count integer Number of options in this poll
scale_min integer Minimum value for scale polls
scale_max integer Maximum value for scale polls
created_at string
updated_at string
poll_options array The available options for this poll
View JSON Schema on GitHub

JSON Schema

poll.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Poll",
  "description": "A poll (question) belonging to a survey or article",
  "type": "object",
  "properties": {
    "type_of": {
      "type": "string",
      "enum": [
        "poll"
      ],
      "description": "Resource discriminator"
    },
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "prompt_markdown": {
      "type": "string",
      "nullable": true,
      "description": "Question text in markdown"
    },
    "prompt_html": {
      "type": "string",
      "nullable": true,
      "description": "Question text rendered as HTML"
    },
    "poll_type_of": {
      "type": "string",
      "enum": [
        "single_choice",
        "multiple_choice",
        "scale",
        "text_input"
      ],
      "description": "Poll question type: single_choice, multiple_choice, scale, or text_input"
    },
    "position": {
      "type": "integer",
      "format": "int32",
      "description": "Display order within the survey"
    },
    "poll_votes_count": {
      "type": "integer",
      "format": "int32",
      "description": "Total number of votes across all options"
    },
    "poll_skips_count": {
      "type": "integer",
      "format": "int32",
      "description": "Number of users who skipped this poll"
    },
    "poll_options_count": {
      "type": "integer",
      "format": "int32",
      "description": "Number of options in this poll"
    },
    "scale_min": {
      "type": "integer",
      "format": "int32",
      "nullable": true,
      "description": "Minimum value for scale polls"
    },
    "scale_max": {
      "type": "integer",
      "format": "int32",
      "nullable": true,
      "description": "Maximum value for scale polls"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "poll_options": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PollOption"
      },
      "description": "The available options for this poll"
    }
  },
  "required": [
    "type_of",
    "id",
    "prompt_markdown",
    "prompt_html",
    "poll_type_of",
    "position",
    "poll_votes_count",
    "poll_skips_count",
    "poll_options_count",
    "created_at",
    "updated_at",
    "poll_options"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/poll"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.