{"id":17024105,"url":"https://github.com/purifetchi/dangeruapi","last_synced_at":"2026-05-16T17:03:13.193Z","repository":{"id":121887047,"uuid":"86721631","full_name":"purifetchi/dangeruAPI","owner":"purifetchi","description":"An api for danger/u/","archived":false,"fork":false,"pushed_at":"2017-09-03T22:51:54.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T21:48:22.422Z","etag":null,"topics":["api","dangeru","documentation","php"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purifetchi.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-30T15:57:29.000Z","updated_at":"2018-01-24T13:47:40.000Z","dependencies_parsed_at":"2023-12-14T14:47:38.761Z","dependency_job_id":null,"html_url":"https://github.com/purifetchi/dangeruAPI","commit_stats":null,"previous_names":["purifetchi/dangeruapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purifetchi%2FdangeruAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purifetchi%2FdangeruAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purifetchi%2FdangeruAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purifetchi%2FdangeruAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purifetchi","download_url":"https://codeload.github.com/purifetchi/dangeruAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245000676,"owners_count":20545097,"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":["api","dangeru","documentation","php"],"created_at":"2024-10-14T07:24:33.016Z","updated_at":"2025-10-29T13:35:37.805Z","avatar_url":"https://github.com/purifetchi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# This API is deprecated. Refer to API v2 at https://github.com/dangeru/awoo-API\n\n**What is it**\n\nAvaiable under ``` https://boards.dangeru.us/api.php ``` provides an interface for applications to easily index a board or get replies from a thread.\n\n**How do i use it**\n\nThe API requires 3 main queries. *type*, *board* and *ln*.\n* *type* is the query that has the type of request you want to perform, currently **index** and **thread**\n* *board* is the query that has the board you want to index\n* *ln* is the length of the request\n\nWanting to get the replies from a certain thread requires one more query `thread`, which is the id of the thread you want to index.\n\nExample usage of the API to get the last 5 threads on /u/\n\n``` https://boards.dangeru.us/api.php?type=index\u0026board=u\u0026ln=5 ```\n\nThe output is in JSON which would look like this\n\n``` { \"board\":[{\"name\":\"/u/\", \"url\":\"https://boards.dangeru.us/u/\"}], \"threads\":[{\"id\":1529,\"title\":\"G/u/rl, asian, almost 18, weeb. I'm bored ask me everythin pls \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1529\"},{\"id\":1547,\"title\":\"ay ni🅱️🅱️a \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1547\"},{\"id\":1532,\"title\":\"Ask a retired assa anything \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1532\"},{\"id\":1419,\"title\":\"Eh? You've never seen a pair of breasts before? \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1419\"},{\"id\":1538,\"title\":\"stop it with the AMAs \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1538\"},{\"id\":1516,\"title\":\"Three Word sfory thread \",\"url\":\"https://boards.dangeru.us/u/thread.php?=1516\"}]} ```\n\nThe first field, **board** contains the information about the name and url of the board.\nThe threads field contains the id, title and the url of the thread.\n\nIndexing a thread is similar too!\n\n``` https://boards.dangeru.us/api.php?type=thread\u0026board=u\u0026ln=5\u0026thread=1334 ```\n\nThe output:\n\n``` { \"meta\":[ { \"title\":\"just try to post a less than three \", \"id\":1334, \"url\":\"https://boards.dangeru.us/u/thread.php?=1334\"} ], \"replies\":[{ \"post\":\"you wont \"},{ \"post\":\" \"},{ \"post\":\"nuuuuuuuuuuuuuu \"},{ \"post\":\"\u003e3 \"},{ \"post\":\"\u003e \"}]} ```\n\n**Show me an example of usage in some programming language you faggot.**\n\nHere is an example using python and the [requests](https://github.com/kennethreitz/requests) library\n\n```python\nimport requests\n\nfetch = requests.get(\"https://boards.dangeru.us/api.php?type=index\u0026board=u\u0026ln=5\")\nprint (fetch.content)\n```\nOutput:\n`b'{ \"board\":[{\"name\":\"/u/\", \"url\":\"https://boards.dangeru.us/u/\"}], \"threads\":[{\"id\":1484,\"title\":\"One word story thread\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1484\"},{\"id\":1529,\"title\":\"G/u/rl, asian, almost 18, weeb. I\\'m bored ask me everythin pls\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1529\"},{\"id\":1516,\"title\":\"Three Word sfory thread\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1516\"},{\"id\":1547,\"title\":\"ay ni\u0026#127345;\u0026#65039;\u0026#127345;\u0026#65039;a\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1547\"},{\"id\":1532,\"title\":\"Ask a retired assa anything\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1532\"},{\"id\":1419,\"title\":\"Eh? You\\'ve never seen a pair of breasts before?\\n\",\"url\":\"https://boards.dangeru.us/u/thread.php?=1419\"}]}'`\n\nYou can also use the danger/u/ python library! It requires requests too sadly, but the library automatically makes your request into an array!\n\n```python\nimport dangeru\n\nfetch = dangeru.thread(\"u\",5,\"1000\")\nprint(fetch[\"meta\"][0][\"title\"])\n```\n\nOutput: ```Rip me```\n\nSo, stop being passive and utilize some of our beautiful dangerous API!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurifetchi%2Fdangeruapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurifetchi%2Fdangeruapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurifetchi%2Fdangeruapi/lists"}