DEV Community · Example Payload

Getsurveybyidorslug Response 200

Developer CommunityArticlesBloggingSocialContentOpen-Source

Getsurveybyidorslug Response 200 is an example object payload from DEV Community, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathstatusresponse

Example Payload

Raw ↑
{
  "operationId": "getSurveyByIdOrSlug",
  "method": "GET",
  "path": "/api/surveys/{id_or_slug}",
  "status": "200",
  "response": {
    "type_of": "survey",
    "id": 45,
    "title": "Test Survey",
    "slug": "test-survey-1b83c27b",
    "active": true,
    "display_title": true,
    "allow_resubmission": false,
    "survey_type_of": "community_pulse",
    "created_at": "2026-05-28T18:45:29Z",
    "updated_at": "2026-05-28T18:45:29Z",
    "polls": [
      {
        "type_of": "poll",
        "id": 51,
        "prompt_markdown": "What do you think?",
        "prompt_html": "What do you think?\n",
        "position": 0,
        "poll_votes_count": 0,
        "poll_skips_count": 0,
        "poll_options_count": 4,
        "scale_min": null,
        "scale_max": null,
        "poll_type_of": "single_choice",
        "created_at": "2026-05-28T18:45:29Z",
        "updated_at": "2026-05-28T18:45:29Z",
        "poll_options": [
          {
            "type_of": "poll_option",
            "id": 178,
            "markdown": "2",
            "processed_html": "2\n",
            "position": 0,
            "poll_votes_count": 0,
            "supplementary_text": null
          },
          {
            "type_of": "poll_option",
            "id": 179,
            "markdown": "4",
            "processed_html": "4\n",
            "position": 1,
            "poll_votes_count": 0,
            "supplementary_text": null
          },
          {
            "type_of": "poll_option",
            "id": 180,
            "markdown": "2",
            "processed_html": "2\n",
            "position": 2,
            "poll_votes_count": 0,
            "supplementary_text": null
          },
          {
            "type_of": "poll_option",
            "id": 181,
            "markdown": "1",
            "processed_html": "1\n",
            "position": 3,
            "poll_votes_count": 0,
            "supplementary_text": null
          }
        ]
      }
    ]
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/getSurveyByIdOrSlug-response-200"
All examples
curl "https://apis.io/api/v1/examples?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.