How to fetch date from this API

Hello Again Dear Koders I need help in this Api how should I request it using Web Component

const loadingToast = toast.loading(‘Paraphrasing…’);

  const rawResponse = await fetch(`${process.env.https://paraphraser.prod.hipcv.com}/paraphrase`, {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ text: Text to be Summarized, mode: paraphraseMode })
1 Like

You need to use Web Post. Set Url to https://paraphraser.prod.hipcv.com/paraphrase
Set headers, send JSON body.

1 Like

Thank you so much :pray:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.