-
Notifications
You must be signed in to change notification settings - Fork 34
Posts by Site
Posts by Site
/api/posts/site
This route allows you to fetch posts based on the Stack Exchange site they were posted on. Use the site
query string parameter to specify which site you want to check: this parameter should be filled with a valid site domain to the Stack Exchange site in question (such as stackoverflow.com
, or drupal.stackexchange.com
.
You can use the per_page
query string parameter to adjust how many results you get, up to a maximum of 100.
The has_more
field in the response indicates if there are more results available than have been returned in this result set; use the page
query string parameter to get the next page of results. ?page=1
will return the first page; ?page=2
the second, and so on.
Request:
HTTP/1.1 GET /api/posts/site?site=drupal.stackexchange.com
Response:
{
"id": 88814,
"title": "For Which Age Group This Face Cream Is Suitable For?",
"body": "<truncated>",
"link": "//drupal.stackexchange.com/questions/247905",
"site_id": 86,
"user_link": "https://drupal.stackexchange.com/users/79823/aftly-19",
"username": "Redacted User",
"why": "<truncated>",
"user_reputation": 1,
"stack_exchange_user_id": 77689,
"is_tp": true,
"is_fp": false,
"is_naa": false,
"deleted_at": "2017-10-12T14:11:09.000Z"
}
metasmoke is made with <3 by the Charcoal Team and the other awesome contributors from Charcoal HQ.