Skip to content

StreakingJerry/PoeAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quora Poe reverse-engineered API

This is a self hostable, reverse-engineered API for Quora's Poe that allows access to the following chatbots:

  1. Sage - OpenAI (capybara)
  2. Claude - Anthropic (a2)
  3. ChatGPT - OpenAI (chinchilla)

Requirements

To use this API, you will need to have the following cookies:

  1. Quora-Formkey: This is obtained by logging in to Quora.com, viewing the page source, and finding the "formkey" dictionary key (Normally line 14). Use its value in the Quora-Formkey field.
  2. Cookie: 'm-b=xxxx' - This is the value of the cookie with the key m-b, which is present in the list of cookies used on Quora.com (not poe.com), you can simply inspect cookies in Chrome (F12-Application-cookie) to get it.

Setup

Simple Setup
  • Clone this repository
git clone https://github.com/aspekts/PoeAPI.git
  • Install dependencies
pip install -r requirements.txt
  • Run the API
uvicorn api:app --host 0.0.0.0 --port 8000 --reload
  • Verify that the API is running by running:
curl localhost:8000
  • Get a url for the API by running:
ngrok http 8000

Access the url given, in your browser to confirm it works. This is your bot server URL.

Example

curl http://127.0.0.1/chat/a2 -d '{"bot:a2" , "Cookie:m-b=xxxx" , "formkey:xxxxx", "message":"What is the meaning of life?"}'

Response:

{"message":"The meaning of life is to live it.","status":"success", "chat_id": "xxxxx"}

Disclaimer

This repository is for educational and research purposes only, and the use of this API for any other purpose is at your own risk. We are not responsible for any actions taken by users of this API.

Credits

POE.com Reverse Engineered CLI - Credits to Vaibhavk97

About

Bug fix and new features added

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%