Profiles
There are three separate endpoints for loading user profiles.
You can load the overview
(which includes posts and comments), posts
, or comments
.
Common Parameters
Value | Type | Required | Description |
---|---|---|---|
user | string | true | requested user |
sort | string | false | sort by new, old, etc |
community | string | false | only include content from the requested community |
Loading
Overview
To load the overview
, which includes posts and comments, use the following endpoint.
GET: https://api.scored.co/api/v2/content/profile.json
Posts
To load the posts
, use the following endpoint.
GET: https://api.scored.co/api/v2/post/profile.json
Comments
To load the comments
, use the following endpoint.
GET: https://api.scored.co/api/v2/comment/profile.json
Pagination
There are differences in how pagination is handled for the various user profile endpoints.
Overview
To paginate overview
, you should pass post
and comment
parameters.
For example, if you have already loaded one page of results which contained 4 posts and 21 comments, you should pass ?posts=4&comments=21
.
Posts and Comments
To paginate posts
or comments
, you should simply pass the page
parameter.
For example, if you are loading a second page, you should pass ?page=2
.
If omitted, page
defaults to 1
.