Skip to main content
POST
/
api
/
stackexchange
/
users
/
questions
/stackexchange/users/questions
curl --request POST \
  --url https://api.anysite.io/api/stackexchange/users/questions \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": 123,
  "count": 2,
  "timeout": 300,
  "site": "stackoverflow",
  "sort": "votes"
}
'
[
  {
    "id": 123,
    "@type": "@stackexchange_question",
    "title": "",
    "body": "<string>",
    "score": 123,
    "view_count": 123,
    "answer_count": 123,
    "is_answered": false,
    "is_closed": false,
    "accepted_answer_id": 123,
    "tags": [],
    "owner": {
      "@type": "@stackexchange_owner",
      "user_id": 123,
      "account_id": 123,
      "display_name": "",
      "reputation": 123,
      "image": "<string>",
      "user_type": "<string>",
      "profile_url": "<string>"
    },
    "created_at": 123,
    "last_activity_at": 123,
    "last_edit_at": 123,
    "content_license": "<string>",
    "link": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
integer
required

User id

Example:

22656

count
integer
required

Max number of questions to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
site
string
default:stackoverflow

Stack Exchange network site to query (e.g. stackoverflow, superuser, serverfault, math)

Minimum string length: 1
Example:

"stackoverflow"

sort
enum<string>
default:votes

Sort order of questions

Available options:
votes,
activity,
creation

Response

Successful Response

id
integer
required
@type
string
default:@stackexchange_question
title
string
default:""
body
string | null
score
integer | null
view_count
integer | null
answer_count
integer | null
is_answered
boolean
default:false
is_closed
boolean
default:false
accepted_answer_id
integer | null
tags
string[]
owner
StackexchangeOwner · object
created_at
integer | null
last_activity_at
integer | null
last_edit_at
integer | null
content_license
string | null