Sending a Request
For our first API request, we will request information about our user.
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));
Since we did not provide our API keys, this request should return: {"error":"invalid user","status":false}.
Authenticate
This time, we will add our API keys.
Remember to 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));
Now, we should more information about our user.
"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
Now that we have a successfully sent a request, you are ready to explore all of our endpoints.