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

100
Views
I can't make a request to an API in Repl.it

I'm creating a discord bot in JavaScript and I make a request to an API, when I run the bot on my computer everything works fine, and I wanted to automate my bot so I moved it to Repl.it, the problem it's that on Repl.it, my requests don't work, it tells me that my IP is banned here the result of my request, so I wonder if there is a solution to circumvent this ban. Here is my code:

const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));

module.exports = async function player(name, message, channel){

var headers = {
    'API-KEY' : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}

var link = 'https://api.rinaorc.com/player/'+name

var fetched = await fetch(link, {method: 'GET', headers: headers})

fetched = await fetched.json()

if(fetched['message'] === 'Player not found'){
    return message.reply('Joueur introuvable')
}
about 4 years ago · Juan Pablo Isaza
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!