Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [stack-exchange-api]

Tasks involving using Stack Exchange API.

Filter by
Sorted by
Tagged with
0 votes
3 answers
215 views

Network wide reputation survey

Given a PPCG user's user ID, calculate how much times is their Each SE site reputation is from average reputation in the Stack exchange sites they have made accounts. Let me explain, If someone's ...
user avatar
  • 11.9k
5 votes
2 answers
252 views

Create a Language of The Month answer scraper

When I was posting answers for the Husk Language of The Month thread, I realized it took more time to enter them in the thread than it took to actually write the answers. So, why not automate it? ...
user avatar
  • 25.2k
6 votes
0 answers
228 views

Find the busiest hour for each stackexchange site [closed]

Input Name of a stackexchange site or any way to uniquely identify the site. Output The hour of the day that had the largest number of answers posted over the previous 24 hours. E.g. 14:00-15:00 GMT. ...
user avatar
8 votes
9 answers
346 views

This Question Has _____ Views [duplicate]

Inspired by this Youtube Video from Tom Scott. Write a program or function that prints the current amount of views this question has. That's it. Your program may only access the stack exchange api, ...
user avatar
  • 1,567
2 votes
1 answer
359 views

Race for the Steward Badge

Backstory If you visit the Steward Badge Page, you will see no one has received one of these badges from PPCG yet. However, there are two users: DJMcMayhem & Martin Ender , that are only a few ...
user avatar
8 votes
1 answer
437 views

Declare a Code Golf Winner

Normally, I'd open with some flavor text here about being bored and/or lazy but looking through the stack-exchange-api questions that would be far from original. So instead I'm going to open with a ...
user avatar
  • 3,566
18 votes
9 answers
2k views

Answer to Vote Ratio

This question is inspired by the fact that I love seeing questions with equal vote and answer counts... So here's a simple stack-exchange-api challenge for y'all: Challenge: Given a ...
user avatar
17 votes
8 answers
2k views

What's my PPCG ID?

Challenge Given the name of a PPCG member, output their PPCG ID number. If the user does not exist, you may report an error or return any non-positive number. If there are multiple members with this ...
user avatar
  • 4,672
11 votes
2 answers
411 views

Take me to your leaderboard [duplicate]

Have you ever found a good challenge to answer, answered it and then found out somebody posted a solution with a better score in the same language? Challenge Write a program/function that takes a ...
user avatar
9 votes
15 answers
3k views

What's my name?

Given a PPCG User ID, output that user's current username. Examples ...
user avatar
  • 13.2k
0 votes
6 answers
304 views

Is the question undeleted?

Challenge Given a positive integer, determine whether that number is currently being used to represent a question on PPCG. The question must not have been removed, but may be open or closed. The ...
user avatar
  • 4,672
10 votes
8 answers
891 views

10 Clickbaits you can't resist

Write a program/function/script that takes a natural number i from 1 to 10 as input and outputs the URL of the Question with the i th hottest question on the Code Golf Portal The ordering should be ...
user avatar
  • 373
15 votes
2 answers
447 views

Give me some questions to answer!

Introduction Sometimes I get bored and there are no new questions on PPCG, so I want you to dig a random question from PPCG's past. Challenge Given a user's PPCG ID as input (e.g. my ID is 30525), ...
user avatar
  • 22.8k
12 votes
3 answers
538 views

PPCG's Unanswered Questions

This dear StackExchange site has so many challenges, and so many good answers. But what about the challenges that were never answered? Task Write a program or a function that will print a pseudo-...
user avatar
4 votes
1 answer
255 views

Whose rep is tied?

Your challenge is to query the SE API and find out whose rep on PPCG is tied, and output it. If these were all the users on PPCG: ...
user avatar
32 votes
10 answers
4k views

Martin vs Dennis - Round 1: Who has more rep?

I know there have been a lot of challenges about "the two best code-golfers in the world", but this one is a bit more unique, being Round 1 in a series of (future) challenges involving the ...
user avatar
  • 41.4k
15 votes
2 answers
621 views

Am I outgolfed by Dennis?

According to legend, almost everyone is outgolfed by Dennis. If not, they will be. Now I'm curious if I'm one of those 'almost everyone'. You will be given a link to an answer in the format of ...
user avatar
  • 5,271
7 votes
2 answers
164 views

Mean Reputation Change

Challenge Given a the ID for a PPCG user who has existed for at least a month, output the average amount of reputation they gain per month. You can do this by dividing their reputation by the time ...
user avatar
  • 40.2k
5 votes
1 answer
186 views

Mortarboard Challenge

Challenge Given a user's ID, determine how many times they have hit the repcap. Specs On a given day, let's a user has hit the repcap if they had reputation that wasn't gained due to the repcap. ...
user avatar
  • 40.2k
18 votes
1 answer
583 views

What would your reputation be without the rep cap?

In this challenge, you will calculate what your reputation would be, if the reputation cap didn't exist on PPCG. Everyone can access the rawdata for reputation changes on the adress: codegolf....
user avatar
11 votes
3 answers
530 views

Challenge Similarity Detector

Challenge Given two question IDs, try to figure out how similar they are by looking at the answers. Details You will be given two question IDs for ...
user avatar
  • 40.2k
10 votes
5 answers
279 views

Find a User's SE Reputation

Challenge Given a SE user's ID, output the sum of their reputation from across all of the Stack Exchange networks​ the user has signed up to. Rules If a user has 101 or less reputation on a site, ...
user avatar
  • 22.8k
10 votes
6 answers
1k views

Calculate a User's Reputation

Challenge Given a user's name (not ID, we have that challenge already), output their current reputation and their ID. Input Input will be a single string which is the user's username. You may ...
user avatar
  • 40.2k
-4 votes
1 answer
134 views

Make me a real-time reputation counter! [closed]

Recently, I have found my reputation changing time to time. I would like to know my reputation changing real-time. The job Given an id of a user on PPCG (ex.64499), Print the user's reputation every ...
user avatar
  • 5,271
15 votes
3 answers
726 views

Suggest me a challenge!

I am too bored and want a challenge to solve. But I do not see any interesting challenges, and I am too lazy to search for one. Can you (Well, technically your code) suggest me one? I/O Input: None. ...
user avatar
  • 5,271
11 votes
4 answers
873 views

Leaderboard golf

Golf the leaderboard of this question (id=111735). Your program should issue one HTTP or HTTPS request to StackExchange API, parse it and present to user in form similar to a typical Leaderboard ...
user avatar
  • 2,697
6 votes
7 answers
562 views

Tell me about my question! [duplicate]

I'm a narcissist. (Not Really) I'm also very lazy... (Not Really) So I want to know the score of this question, and how many people have viewed it. But I'm too lazy to check myself... Challenge ...
user avatar
  • 40.2k
4 votes
2 answers
450 views

What's the most popular question right now?

Your task is to print the titles of the questions with the five highest scores (upvotes minus downvotes) here on CodeGolf.SE, while skipping over any closed, locked and on-hold questions. Currently ...
user avatar
  • 10.3k
9 votes
1 answer
297 views

Lord of the Golfs

Intro In J. R. R. Tolkien's Lord of the Rings, this phrase is on the cover of each book. ...
user avatar
  • 2,104
7 votes
3 answers
682 views

Count the Bytes!

Challenge Write a program which takes the URL of a PPCG answer as input and outputs the length of the answer's first code block in bytes. Code Blocks There are three different ways of formatting ...
user avatar
  • 22.8k
16 votes
5 answers
1k views

Leave a Comment

Task: Make a program that leaves a comment on this question. The content should be 1234567890123456. Edits: You may leave your usernames and passwords as ...
user avatar
  • 279
45 votes
15 answers
2k views

Stack Exchange Vote Counter

Write a program/function that returns the vote count of its own Stack Exchange answer at the time of its execution. Your program/function may access this page (codegolf.stackexchange.com/questions/...
user avatar
  • 2,472
20 votes
1 answer
772 views

Detect Duplicate Questions

Detect Duplicate Questions Once upon a time, there was a golfing site. It had a problem: people would post similar or identical questions again and again. You have been chosen selected forced ...
user avatar
16 votes
1 answer
1k views

StackExchange Mustafa can't stand to be asked the same question three times

Austin: "Who sent you?" Mustafa: "You have to kill me!" Austin: "Who sent you?" Mustafa: "Kiss my ass, Powers!" Austin: "Who sent you?" Mustafa: "Dr. Evil." (...) ...
user avatar
14 votes
4 answers
951 views

Write code to determine the accepted answer

Post an answer to this question that evaluates any answer to this question and determines whether it wins. Who wins: Winner is the answer that wins according to the most answers at 1700 UTC, Sunday, ...
user avatar
8 votes
4 answers
734 views

Get list of badges on this site that nobody received yet

Make a code that gets list of badges that nobody received yet (for example, by using this website API for badges), and output the sorted list of such badges, with new line after each. Example output (...
user avatar
21 votes
13 answers
2k views

So... what is your StackOverflow score?

This is a simple one. Given the input of a number, return the name and reputation score of the Stack Overflow user with that given ID. Your program can assume that it is always given a valid and ...
user avatar