{"id":16257491,"url":"https://github.com/waylaidwanderer/chatgpt-io-api","last_synced_at":"2025-07-12T15:10:33.206Z","repository":{"id":65281254,"uuid":"585741829","full_name":"waylaidwanderer/chatgpt-io-api","owner":"waylaidwanderer","description":"An API layer for ChatGPT, powered by chatgpt-io.","archived":false,"fork":false,"pushed_at":"2023-01-13T21:42:17.000Z","size":19,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T13:31:12.726Z","etag":null,"topics":["api","api-rest","chatgpt","chatgpt-io","gpt3","node","nodejs","openai","server"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/chatgpt-io-api","language":"JavaScript","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/waylaidwanderer.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}},"created_at":"2023-01-06T00:26:57.000Z","updated_at":"2024-07-01T09:21:34.000Z","dependencies_parsed_at":"2023-01-16T05:45:26.553Z","dependency_job_id":null,"html_url":"https://github.com/waylaidwanderer/chatgpt-io-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waylaidwanderer/chatgpt-io-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylaidwanderer%2Fchatgpt-io-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylaidwanderer%2Fchatgpt-io-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylaidwanderer%2Fchatgpt-io-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylaidwanderer%2Fchatgpt-io-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waylaidwanderer","download_url":"https://codeload.github.com/waylaidwanderer/chatgpt-io-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waylaidwanderer%2Fchatgpt-io-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958632,"owners_count":23689041,"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","api-rest","chatgpt","chatgpt-io","gpt3","node","nodejs","openai","server"],"created_at":"2024-10-10T15:48:22.911Z","updated_at":"2025-07-12T15:10:33.154Z","avatar_url":"https://github.com/waylaidwanderer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ChatGPT API\n\nThis repository contains an API layer for [ChatGPT](https://chat.openai.com), powered by [chatgpt-io](https://github.com/PawanOsman/chatgpt-io). It allows users to send questions to a chatbot and receive responses in real-time.\n\nTo use this API, you will need to have a session token from ChatGPT. Set this token in the `CHATGPT_SESSION_TOKEN` environment variable. You can do this by creating a `.env` file in the root of the project and adding the line `CHATGPT_SESSION_TOKEN=YOUR_TOKEN_HERE`.\n\nTo start the API, run the following command:\n\n```bash\nnpm start\n```\n\nThe API will be listening on the `CHATGPT_PORT` environment variable (defaults to 3000). You can send a POST request to `/ask` with a `message` and optional `conversation_id` in the request body to ask the chatbot a question. The response will contain a `response` field with the chatbot's response.\n\nExample request:\n\n```bash\nPOST /ask\nContent-Type: application/json\n\n{\n  \"message\": \"What is your name?\",\n  \"conversation_id\": \"abc123\"\n}\n```\n\nExample response:\n\n```bash\nStatus: 200 OK\nContent-Type: application/json\n\n{\n  \"response\": \"My name is ChatGPT.\"\n}\n```\n\nIf the chatbot is not yet ready, the API will return a 503 status code and an `error` field with the message \"Chatbot is not ready yet\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylaidwanderer%2Fchatgpt-io-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaylaidwanderer%2Fchatgpt-io-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylaidwanderer%2Fchatgpt-io-api/lists"}