{"id":13824682,"url":"https://github.com/isaacxbt/AnonfilesAPI","last_synced_at":"2025-07-08T19:32:43.033Z","repository":{"id":216969630,"uuid":"356894072","full_name":"isaacxbt/AnonfilesAPI","owner":"isaacxbt","description":"Anonfiles.com API Wrapper","archived":false,"fork":false,"pushed_at":"2023-06-01T22:11:49.000Z","size":35,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-20T02:36:27.501Z","etag":null,"topics":["anonfile","anonfiles","api","download","files","filesharing","python","simple","upload"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaacxbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-11T14:44:49.000Z","updated_at":"2023-06-11T21:59:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb6d6c4b-b9df-4a40-b7ec-184141fadb0a","html_url":"https://github.com/isaacxbt/AnonfilesAPI","commit_stats":null,"previous_names":["isaacxbt/anonfilesapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/isaacxbt/AnonfilesAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacxbt%2FAnonfilesAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacxbt%2FAnonfilesAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacxbt%2FAnonfilesAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacxbt%2FAnonfilesAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaacxbt","download_url":"https://codeload.github.com/isaacxbt/AnonfilesAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacxbt%2FAnonfilesAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264334149,"owners_count":23592369,"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":["anonfile","anonfiles","api","download","files","filesharing","python","simple","upload"],"created_at":"2024-08-04T09:01:07.245Z","updated_at":"2025-07-08T19:32:42.807Z","avatar_url":"https://github.com/isaacxbt.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# Anonfiles-api\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://choosealicense.com/licenses/mit/)\n[![Python 3.x](https://img.shields.io/badge/python-3.x-yellow.svg)](https://www.python.org/) \n\nAnonfiles is a Python library, used to upload files on [anonfiles.com](https://anonfiles.com/). \n\n## About\n\nThis **unofficial** Python API was created to make uploading and downloading files from [anonfiles.com](https://anonfiles.com/) simple.\n\n## Installation\n\n\n```bash\npip install requests \u0026\u0026 pip install wget\n```\n\n## Usage\n\n### Upload files\n\n```python\nimport requests\n\n\ntry:\n\n    # upload files.\n    files = {\n        \"file\": (\"filename\", \"filepath\", \"rb\")\n    }\n\n    upload = requests.post(\"https://api.anonfiles.com/upload\", files=files)\n\n    try:\n\n        # get download link \n        x = upload.json()\n        url = x[\"data\"][\"file\"][\"url\"][\"short\"]\n        print(url)\n        input()\n    \n    except Exception as e:\n        print(e)\n  \nexcept Exception as e:\n    print(e)\n    # your files could not be uploaded\n```\n### Download files\n```python\nimport wget\n\n\ntry:\n\n    download = wget.download(\"direct URL\") # How? https://encrypting.host/f7nkbiHzgK.gif?key=x05yQJBDd7qgYN\n  \nexcept Exception as e:\n    print(e)\n    # your file could not be downloaded.\n```\n## Error Handling\n* (10) ERROR_FILE_NOT_PROVIDED\n* (11) ERROR_FILE_EMPTY\n* (12) ERROR_FILE_INVALID\n* (20) ERROR_USER_MAX_FILES_PER_HOUR_REACHED\n* (21) ERROR_USER_MAX_FILES_PER_DAY_REACHED\n* (22) ERROR_USER_MAX_BYTES_PER_HOUR_REACHED\n* (23) ERROR_USER_MAX_BYTES_PER_DAY_REACHED\n* (30) ERROR_FILE_DISALLOWED_TYPE\n* (31) ERROR_FILE_SIZE_EXCEEDED\n* (32) ERROR_FILE_BANNED\n* (40) STATUS_ERROR_SYSTEM_FAILURE\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacxbt%2FAnonfilesAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaacxbt%2FAnonfilesAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacxbt%2FAnonfilesAPI/lists"}