Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Analyze stack overflow api #3

Closed
Max-Levitskiy opened this issue Dec 19, 2019 · 5 comments
Closed

Analyze stack overflow api #3

Max-Levitskiy opened this issue Dec 19, 2019 · 5 comments

Comments

@Max-Levitskiy
Copy link
Member

No description provided.

@DePr
Copy link
Contributor

DePr commented Jan 7, 2020

A Python wrapper for the Stack Exchange API
https://stackapi.readthedocs.io/en/latest/

@DePr
Copy link
Contributor

DePr commented Jan 7, 2020

Public Stack Exchange APIs:
Answers
answers Get all answers on the site.
https://api.stackexchange.com/docs/answers

answers/{ids} Get answers identified by a set of ids.
https://api.stackexchange.com/docs/answers-by-ids

answers/{ids}/comments Get comments on the answers identified by a set of ids
https://api.stackexchange.com/docs/comments-on-answers

answers/{ids}/questions Gets all questions the answers identified by ids are on.
https://api.stackexchange.com/docs/questions-by-answer-ids
Badges
badges Get all badges on the site, in alphabetical order.
https://api.stackexchange.com/docs/badges

badges/{ids} Get the badges identified by ids.
https://api.stackexchange.com/docs/badges-by-ids

badges/name Get all non-tagged-based badges in alphabetical order.
https://api.stackexchange.com/docs/badges-by-ids

badges/recipients Get badges recently awarded on the site.
https://api.stackexchange.com/docs/badge-recipients

badges/{ids}/recipients Get the recent recipients of the given badges.
https://api.stackexchange.com/docs/badge-recipients-by-ids

badges/tags Get all tagged-based badges in alphabetical order.
https://api.stackexchange.com/docs/badges-by-tag
Comments
comments Get all comments on the site.
https://api.stackexchange.com/docs/comments

comments/{ids} Get comments identified by a set of ids.
https://api.stackexchange.com/docs/comments-by-ids
Posts
posts Get all posts (questions and answers) in the system.
https://api.stackexchange.com/docs/posts

posts/{ids} Get all posts identified by a set of ids. Useful for when the type of post (question or answer) is not known.
https://api.stackexchange.com/docs/posts-by-ids

posts/{ids}/comments Get comments on the posts (question or answer) identified by a set of ids.
https://api.stackexchange.com/docs/comments-on-posts

posts/{id}/comments/render Renders a hypothetical comment on the given post.
https://api.stackexchange.com/docs/render-comment

posts/{ids}/revisions Get revisions on the set of posts in ids.
https://api.stackexchange.com/docs/revisions-by-ids

posts/{ids}/suggested-edits Get suggested edits on the set of posts in ids
https://api.stackexchange.com/docs/posts-on-suggested-edits

@DePr
Copy link
Contributor

DePr commented Jan 7, 2020

Privileges
privileges Get all the privileges available on the site.
https://api.stackexchange.com/docs/privileges
Questions
questions Get all questions on the site.
https://api.stackexchange.com/docs/questions

questions/{ids} Get the questions identified by a set of ids.
https://api.stackexchange.com/docs/questions-by-ids

questions/{ids}/answers Get the answers to the questions identified by a set of ids.
https://api.stackexchange.com/docs/answers-on-questions

questions/{id}/answers/render Renders a hypothetical answer to a question.
https://api.stackexchange.com/docs/render-answer

questions/{ids}/comments Get the comments on the questions identified by a set of ids.
https://api.stackexchange.com/docs/comments-on-questions

questions/{ids}/linked Get the questions that link to the questions identified by a set of ids.
https://api.stackexchange.com/docs/linked-questions

questions/{ids}/related Get the questions that are related to the questions identified by a set of ids.
https://api.stackexchange.com/docs/related-questions

questions/{ids}/timeline Get the timelines of the questions identified by a set of ids.
https://api.stackexchange.com/docs/questions-timeline

questions/featured Get all questions on the site with active bounties.
https://api.stackexchange.com/docs/featured-questions

questions/no-answers Get all questions on the site with no answers.
https://api.stackexchange.com/docs/no-answer-questions

questions/unanswered Get all questions the site considers unanswered.
https://api.stackexchange.com/docs/unanswered-questions

@DePr
Copy link
Contributor

DePr commented Jan 7, 2020

Revisions
revisions/{ids} Get all revisions identified by a set of ids
https://api.stackexchange.com/docs/revisions-by-guids
Search
search Search the site for questions meeting certain criteria.
https://api.stackexchange.com/docs/search

search/advanced Search the site for questions using most of the on-site search options.
https://api.stackexchange.com/docs/advanced-search

similar Search the site based on similarity to a title.
https://api.stackexchange.com/docs/excerpt-search

search/excerpts Searches a site.
https://api.stackexchange.com/docs/excerpt-search
Suggested Edits
suggested-edits Get all the suggested edits on the site.
https://api.stackexchange.com/docs/suggested-edits

suggested-edits/{ids} Get the suggested edits identified by a set of ids.
https://api.stackexchange.com/docs/suggested-edits-by-ids
Tags
tags Get the tags on the site.
https://api.stackexchange.com/docs/tags

tags/{tags}/info Get tags on the site by their names.
https://api.stackexchange.com/docs/tags-by-name

tags/moderator-only
Get the tags on the site that only moderators can use.

tags/required Get the tags on the site that fulfill required tag constraints.
https://api.stackexchange.com/docs/moderator-only-tags

tags/synonyms Get all the tag synonyms on the site.
https://api.stackexchange.com/docs/tag-synonyms

tags/{tags}/faq Get frequently asked questions in a set of tags.
https://api.stackexchange.com/docs/faqs-by-tags

tags/{tags}/related
Get related tags, based on common tag pairings.
https://api.stackexchange.com/docs/related-tags

tags/{tags}/synonyms
Get the synonyms for a specific set of tags.
https://api.stackexchange.com/docs/synonyms-by-tags

tags/{tag}/top-answerers/{period}
Get the top answer posters in a specific tag, either in the last month or for all time.
https://api.stackexchange.com/docs/top-answerers-on-tags

tags/{tag}/top-askers/{period}
Get the top question askers in a specific tag, either in the last month or for all time.
https://api.stackexchange.com/docs/top-askers-on-tags

tags/{tags}/wikis
Get the wiki entries for a set of tags.
https://api.stackexchange.com/docs/wikis-by-tags

Users

All user methods that take an {ids} parameter have a /me equivalent method that takes an access_token instead. These methods are provided for developer convenience, with the exception of plain /me, which is actually necessary for discovering which user authenticated to an application.

users
Get all users on the site.
https://api.stackexchange.com/docs/users

users/{ids}
/me

Get the users identified by a set of ids.
https://api.stackexchange.com/docs/users-by-ids

users/{ids}/answers
/me/answers

Get the answers posted by the users identified by a set of ids.
https://api.stackexchange.com/docs/answers-on-users

users/{ids}/badges
/me/badges

Get the badges earned by the users identified by a set of ids.
https://api.stackexchange.com/docs/badges-on-users

users/{ids}/comments
/me/comments

Get the comments posted by the users identified by a set of ids.
https://api.stackexchange.com/docs/comments-on-users

users/{ids}/comments/{toid}
/me/comments/{toid}

Get the comments posted by a set of users in reply to another user.
https://api.stackexchange.com/docs/comments-by-users-to-user

users/{ids}/favorites
/me/favorites

Get the questions favorited by users identified by a set of ids.
https://api.stackexchange.com/docs/favorites-on-users

users/{ids}/mentioned
/me/mentioned

Get the comments that mention one of the users identified by a set of ids.
https://api.stackexchange.com/docs/mentions-on-users

users/{id}/network-activity
/me/network-activity

Gets a user's activity across the Stack Exchange network.
https://api.stackexchange.com/docs/users-network-activity
https://api.stackexchange.com/docs/users-network-activity

users/{id}/notifications
/me/notifications

Get a user's notifications.
https://api.stackexchange.com/docs/user-notifications

users/{id}/notifications/unread
/me/notifications/unread

Get a user's unread notifications.
https://api.stackexchange.com/docs/user-unread-notifications

users/{ids}/posts
/me/posts

Get all posts (questions and answers) owned by a set of users.
https://api.stackexchange.com/docs/posts-on-users

users/{id}/privileges
/me/privileges

Get the privileges the given user has on the site.
https://api.stackexchange.com/docs/privileges-on-users

users/{ids}/questions
/me/questions

Get the questions asked by the users identified by a set of ids.
https://api.stackexchange.com/docs/questions-on-users

users/{ids}/questions/featured
/me/questions/featured

Get the questions on which a set of users, have active bounties.
https://api.stackexchange.com/docs/featured-questions-on-users

users/{ids}/questions/no-answers
/me/questions/no-answers

Get the questions asked by a set of users, which have no answers.
https://api.stackexchange.com/docs/no-answer-questions-on-users

users/{ids}/questions/unaccepted
/me/questions/unaccepted

Get the questions asked by a set of users, which have at least one answer but no accepted answer.
https://api.stackexchange.com/docs/unaccepted-questions-on-users

users/{ids}/questions/unanswered
/me/questions/unanswered

Get the questions asked by a set of users, which are not considered to be adequately answered.
https://api.stackexchange.com/docs/unanswered-questions-on-users

users/{ids}/reputation
/me/reputation

Get a subset of the reputation changes experienced by the users identified by a set of ids.
https://api.stackexchange.com/docs/reputation-on-users

users/{ids}/reputation-history
/me/reputation-history

Get a history of a user's reputation, excluding private events.
https://api.stackexchange.com/docs/reputation-history

users/{ids}/suggested-edits
/me/suggested-edits

Get the suggested edits provided by users identified by a set of ids.
https://api.stackexchange.com/docs/suggested-edits-on-users

users/{ids}/tags
/me/tags

Get the tags that the users (identified by a set of ids) have been active in.
https://api.stackexchange.com/docs/tags-on-users

users/{id}/tags/{tags}/top-answers
/me/tags/{tags}/top-answers

Get the top answers a user has posted on questions with a set of tags.
https://api.stackexchange.com/docs/top-answer-tags-on-users

users/{id}/tags/{tags}/top-questions
/me/tags/{tags}/top-questions

Get the top questions a user has posted with a set of tags.
https://api.stackexchange.com/docs/top-user-questions-in-tags

users/{ids}/timeline
/me/timeline

Get a subset of the actions of that have been taken by the users identified by a set of ids.
https://api.stackexchange.com/docs/timeline-on-users

users/{id}/top-answer-tags
/me/top-answer-tags

Get the top tags (by score) a single user has posted answers in.
https://api.stackexchange.com/docs/top-answer-tags-on-users

users/{id}/top-question-tags
/me/top-question-tags

Get the top tags (by score) a single user has asked questions in.
https://api.stackexchange.com/docs/top-question-tags-on-users

users/{id}/top-tags
/me/top-tags

Get the top tags (by score) a single user has posted in.
https://api.stackexchange.com/docs/top-tags-on-users

users/{id}/write-permissions
/me/write-permissions

Get the write access a user has via the API.
https://api.stackexchange.com/docs/write-permissions

users/moderators
Get the users who have moderation powers on the site.
https://api.stackexchange.com/docs/moderators

users/moderators/elected
Get the users who are active moderators who have also won a moderator election.
https://api.stackexchange.com/docs/elected-moderators

@DePr
Copy link
Contributor

DePr commented Jan 7, 2020

Network Methods

These methods return data across the entire Stack Exchange network of sites. Accordingly, you do not pass a site parameter to them.
Access Tokens
access-tokens/{accessTokens}/invalidate
Allows an application to dispose of access_tokens when it is done with them.
https://api.stackexchange.com/docs/invalidate-access-tokens

access-tokens/{accessTokens}
Allows an application to inspect access_tokens it has, useful for debugging.
https://api.stackexchange.com/docs/application-de-authenticate

Applications
apps/{accessTokens}/de-authenticate
Allows an application to de-authorize itself for a set of users.
https://api.stackexchange.com/docs/application-de-authenticate

Errors
errors
Get descriptions of all the errors that the API could return.
https://api.stackexchange.com/docs/errors

errors/{id}
Simulate an API error for testing purposes.
https://api.stackexchange.com/docs/simulate-error

Filters
filters/create
Create a new filter.
https://api.stackexchange.com/docs/create-filter

filters/{filters}
Decode a set of filters, useful for debugging purposes.
https://api.stackexchange.com/docs/read-filter

Sites
sites
Get all the sites in the Stack Exchange network.
https://api.stackexchange.com/docs/sites

Users
users/{ids}/associated
/me/associated

Get a user's associated accounts.
https://api.stackexchange.com/docs/associated-users

users/{ids}/merges
/me/merges

Get the merges a user's accounts has undergone
https://api.stackexchange.com/docs/me-merge-history

@Max-Levitskiy Max-Levitskiy pinned this issue Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants