{"id":15374629,"url":"https://github.com/ading2210/openai-key-scraper","last_synced_at":"2025-10-11T04:30:17.595Z","repository":{"id":173887134,"uuid":"650926484","full_name":"ading2210/openai-key-scraper","owner":"ading2210","description":"A Python script to scrape OpenAI API keys that are exposed on public Replit projects.","archived":true,"fork":false,"pushed_at":"2023-06-09T21:44:25.000Z","size":20,"stargazers_count":119,"open_issues_count":0,"forks_count":26,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-28T14:43:32.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ading2210.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":"2023-06-08T05:42:08.000Z","updated_at":"2025-01-26T20:59:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"18b6eaaf-4d1b-4f88-865c-e099e1acbc46","html_url":"https://github.com/ading2210/openai-key-scraper","commit_stats":null,"previous_names":["ading2210/openai-key-scraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ading2210/openai-key-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Fopenai-key-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Fopenai-key-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Fopenai-key-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Fopenai-key-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ading2210","download_url":"https://codeload.github.com/ading2210/openai-key-scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Fopenai-key-scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006251,"owners_count":26084061,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01T13:59:12.615Z","updated_at":"2025-10-11T04:30:17.589Z","avatar_url":"https://github.com/ading2210.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI API Key Scraper\n\nThis is a Python script to scrape OpenAI API keys that are exposed on public Replit projects. \n\nInspired by [this article](https://www.vice.com/en/article/93kkky/people-pirating-gpt4-scraping-openai-api-keys).\n\n## Installation and Usage:\n1. Clone this repository by running the following commands:\n```\ngit clone https://github.com/ading2210/openai-key-scraper\ncd openai-key-scraper\n```\n2. Obtain your Replit cookie by going to the network tab of your browser's devtools while on replit.com, searching for `graphql`, and copying the value in the `Cookie` request header. You may need to reload the page for the requests to show up.\n3. Run the script using the following command:\n```\npython3 main.py \"TOKEN_HERE\"\n```\n\nIt is recommended that you set a custom search query. You can do that by passing another argument into the script, like in the following example:\n```\npython3 main.py \"TOKEN\" \"sk- chatgpt\"\n```\nMake sure your queries always have `sk-` at the beginning. For best results, include terms that are likely to show up in code that uses the OpenAI API.\n\n## Copyright:\nThis program is licensed under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.txt).\n\n```\nading2210/openai-key-scraper: a Python script to scrape OpenAI API keys that are exposed on public Replit projects\nCopyright (C) 2023 ading2210\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fading2210%2Fopenai-key-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fading2210%2Fopenai-key-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fading2210%2Fopenai-key-scraper/lists"}