{"id":17475391,"url":"https://github.com/stared/se-api-py","last_synced_at":"2025-09-21T22:30:43.784Z","repository":{"id":5538924,"uuid":"6742418","full_name":"stared/se-api-py","owner":"stared","description":"A lightweight Python wrapper for StackExchange API v2.1","archived":false,"fork":false,"pushed_at":"2013-03-10T23:03:49.000Z","size":133,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T05:33:54.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lewagon/ruby-scraping","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-18T01:41:40.000Z","updated_at":"2016-06-26T04:33:41.000Z","dependencies_parsed_at":"2022-09-22T02:03:32.451Z","dependency_job_id":null,"html_url":"https://github.com/stared/se-api-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stared%2Fse-api-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stared%2Fse-api-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stared%2Fse-api-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stared%2Fse-api-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stared","download_url":"https://codeload.github.com/stared/se-api-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233802389,"owners_count":18732534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T18:45:47.620Z","updated_at":"2025-09-21T22:30:38.484Z","avatar_url":"https://github.com/stared.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"se-api-py\n=========\n\nA lightweight Python wrapper for [StackExchange API](http://api.stackexchange.com/) v2.1.\nBuild with [Requests](http://docs.python-requests.org/).\n\nGeneral philosophy of usage:\n\n* se.fetch\\[_one\\](command, **parameters)\n* parameters as in the documentation\n* in the command, \"{something}\" and \"{somethings}\" are treated as placeholders for an int/str or a list of int/str, respectively\n\nExample of usage:\n\n    import SEAPI\n    se = SEAPI.SEAPI()\n    \n    some_users = se.fetch_one(\"users/{ids}\", ids=[1,3,7,9,13], site=\"stackoverflow\") \n\n    all_user = se.fetch(\"users\", site=\"academia\")\n\n\nAlternatively, you can initialize SEAPI with default options, typically - site name, e.g.\n\n\tso = SEAPI.SEAPI(site=\"stackoverflow\")\n\n\tsome_questions = so.fetch(\"questions\", page_limit=10)\n\t# except for very small sites, you want to set page limit\n\n\tsome_sorted_posts = so.fetch_one(\"posts\", order=\"desc\", sort=\"votes\")\n\t# for sorting sometimes asking for more that one results in \"throttle violation\"\n\nIf you want to diagnose a problem, or avoid it:\n\n\tso.last_call\n\t# lookup at the last command sent\n\n\tso.last_status\n\t# check the last response status\n\n\tslow_food = so.fetch(\"tags\", min_delay=0.5)\n\t# or set delay (by default it's 0.05)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstared%2Fse-api-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstared%2Fse-api-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstared%2Fse-api-py/lists"}