Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
Get random sentences from Free Dictionary API

I would like to grab random sentences from Free Dictionary API and add them based on time on a web page.

The basic idea is like this:

var randomSentence = get a randomSentence from api.dictionaryapi.dev/api;

  setTimeout(function() {
    $(".random-sentence").append(randomSentence);
  }, 2000);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<div class="random-sentence"></div>

Here is some information about the API: https://github.com/meetDeveloper/freeDictionaryAPI

How can I get sentences randomly? Would be very thankful for help!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Sorry if I'm wrong but I don't see a way to get sentences from freeDictionaryAPI unless it's in the returned JSON of whatever word you get the definition of.

So the first method you could take that I thought of from the top of my head is just to get a random English word and use that in the API, and return the word's example sentence.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!