-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public api #34
Comments
It's definitely possible, but hosting costs can be pretty expensive for inference queries. @duncte123 can you tell me a bit more about your use case? |
Of course I can, my use case would be a command on a discord bot that displays the words and mimics the formatting on the website. |
@duncte123 sweet, that's very cachable. I cached 100,000 words for the website in this file: https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/website/data/words.json.gz The JSON format should be pretty obvious once unzipping. Maybe load it in and start from there? |
That json is definitely workable, the only thing that I'm missing in the data are the permalinks for linking back to the site |
Ah okay, that’s a little tricker. How about I throw up a JSON endpoint. One
sec
…-Thomas
On Mon, May 18, 2020 at 11:50 PM Duncan Sterken ***@***.***> wrote:
That json is definitely workable, the only thing that I'm missing in the
data are the hashes for linking back to the site
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNQTVBRGI7VXFDQZBYSGLRSIT3FANCNFSM4NEMY53A>
.
|
@duncte123 try https://www.thisworddoesnotexist.com/api/random_word.json I reserve the right to add a mandatory API key in the future! |
Thank you so much, I'll make sure to sign up for the API key if it ever becomes required |
nice API @turtlesoupy what about to include a query function that allows to ask for 8 characters lenght words? e.g |
@desegura can you describe your use case as well? Generating from scratch is quite expensive unless it’s in a cache |
imagine this call: "https://www.thisworddoesnotexist.com/?len=7" I mean a way to stablish the length of the word |
I know it will be expensive but very usefull |
Would there be a way to send an API request to define a specific word, analogous to the website's "Write your own" feature? |
I was wondering if it was possible for thisworddoesnotexist.com to have an API that other developers can use so they don't have to set this project up themselves
The text was updated successfully, but these errors were encountered: