Simple example

Getting general information about site:

from pystackapi import Site
from pystackapi.sites import StackOverflow

site = Site(StackOverflow)

info = site.get_info()

print(f'Total questions on StackOverflow: {info.total_questions}')

Output:

Total questions in StackOverflow: 23789952

Last updated