Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

This is a simple API for ChatGPT from scrapping API you.com

Notifications You must be signed in to change notification settings

IhsanDevs/ChatGPT-You.com-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-You.com-API

ChatGPT-You.com-API

This is a simple API for ChatGPT from scrapping API you.com

Goal

  • Create API for ChatGPT from scrapping API you.com

  • Create a multi-task chat using uid in the URL route

  • Etc. You can contribute to this project by creating an issue or pull request

Installation

git clone https://github.com/IhsanDevs/ChatGPT-You.com-API.git
cd ChatGPT-You.com-API
npm install
cp chats.json.example chats.json

Usage

npm start

visit http://localhost:3000/?question=hello

API

GET {url}?question={question}

Example

curl {url}?question=hello

Response

{
    "markdown": string,
    "html": string,
}

GET {url}/histories

Example

curl {url}/histories

Trick

If you want to create long-generated text, you can use this trick

curl {url}?question=next

Response

The server will return rendered HTML from chat histories in chats.json

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Credits

About

This is a simple API for ChatGPT from scrapping API you.com

Topics

Resources

Stars

Watchers

Forks