Sending a Request

This example requests information about your user account.

Send a GET request to https://api.scored.co/api/v2/user/profile.json?user=me.

fetch('https://api.scored.co/api/v2/user/about.json?user=me')
  .then(response => response.json())
  .then(data => console.log(data));

Without API keys, this request returns: {"error":"invalid user","status":false}.

Authenticate

Add your API keys to the request. Replace REPLACE-VALUE with your respective keys.

fetch('https://api.scored.co/api/v2/user/about.json?user=me', {
  headers: {
    'x-api-key': 'REPLACE-VALUE',
    'x-api-secret': 'REPLACE-VALUE'
  }
})
  .then(response => response.json())
  .then(data => console.log(data));

The authenticated request returns your user information:

{
"error": "",
"users": [
    {
        "hide_upvoted": false,
        "unread": 0,
        "accept_private_messages": false,
        "expand_thread": false,
        "is_suspended": false,
        "is_admin": false,
        "pro_tier": 0,
        "subscribed": [],
        "moderates": [],
        "show_nsfw": false,
        "is_deleted": false,
        "post_score": 0,
        "blocked": [],
        "comment_sort": "top",
        "theme": "light",
        "scroll_top": false,
        "beta": false,
        "available_awards": 0,
        "community_styling": "",
        "trending_topics": [],
        "topic_nsfw": false,
        "created": 0,
        "pro_expire": 0,
        "index_profile": false,
        "profile_picture": "",
        "notify_comments": false,
        "blocked_communities": [],
        "community_creation": false,
        "topic_politics": false,
        "referrer": "",
        "expand": "card",
        "new_tab": false,
        "infinite_scroll": false,
        "active_feed": 0,
        "comment_score": 0,
        "custom_styling": false,
        "topic_other": false,
        "username": ""
    }
],
"status": true
}

Next Steps

You are now ready to explore all available endpoints.