CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 18:04:16 GMT
content-type: text/html; charset=utf-8
cache-control: private
set-cookie: prov=ba50d11c-fe74-4b90-99e8-b8b73619f18b; expires=Sun, 26 Jul 2026 18:04:16 GMT; domain=.stackexchange.com; path=/; secure; httponly
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=31536000; includeSubDomains
x-request-guid: 9342a15d-af5c-482d-af40-7ac3c718692b
x-providence-cookie: ba50d11c-fe74-4b90-99e8-b8b73619f18b
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=679NIoUWsfJYP8tCUWb5gA8usbZZUVl0CEg2lg8ARmI-1753553056-1.0.1.1-gpMrI5KhXCBWenI8j7tmeSjCW1CsrH.XBOzlI2O2tDcr_kPFFwrJiFoFOgRDBUgJhFQlw6u8T3X7x38wYxZ.meJGjD0f7bXjD74.fevPqdE; path=/; expires=Sat, 26-Jul-25 18:34:16 GMT; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: __cflb=02DiuEqtkS4jGaTk6jRLVowZ76Z4qeo48f9Sk9eGqcBaC; SameSite=None; Secure; path=/; expires=Sun, 27-Jul-25 17:04:16 GMT; HttpOnly
set-cookie: _cfuvid=XzoJqesXRVAVZflh5yJbXTEU3QSnt1BU7Ua_ttclHXw-1753553056675-0.0.1.1-604800000; path=/; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 9655d18a7fb6b080-BLR
content-encoding: gzip
Usage of /posts/{ids} [GET] -
Stack Exchange API
It is possible to create moderately complex queries using
https://stackoverflow.com/oauth/dialog?client_id=1&key=U4DMV*8nvpm3EOpvf69Rxw((&redirect_uri=https%3a%2f%2fapi.stackexchange.com%2fdocs%2foauth_landing
U4DMV*8nvpm3EOpvf69Rxw((
Usage of /posts/{ids} GET
Discussion
Fetches a set of posts by ids.
This method is meant for grabbing an object when unsure whether an id identifies a question or an answer. This is most common with user entered data.
{ids}
can contain up to 100 semicolon delimited ids. To find ids programmatically look for post_id
, answer_id
, or question_id
on
post, answer, and question objects respectively.
The sorts accepted by this method operate on the following fields of the post object:
- activity –
last_activity_date
- creation –
creation_date
- votes –
score
activity
is the default sort.It is possible to create moderately complex queries using
sort
, min
, max
, fromdate
, and todate
.
This method returns a list of posts.
Try It
about blog terms of use contact us feedback always welcome
site design / logo © 2025 Stack Exchange, Inc; user contributions licensed under CC BY-SA