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

58
Views
js - filtros en búsqueda

Tengo un problema. Estoy tratando de obtener una API, pero hay un mensaje de error que dice:
Debe existir al menos un parámetro de filtrado.

Encontré algo en Google, pero nada funcionó. Mi código se ve así:

 let api = await fetch("https://api.clashofclans.com/v1/clans/#2Q8GRY8LQ", { method: `GET`, headers: new Headers({ 'Authorization': `Bearer ${API_TOKEN}`, }) }) let apiJSON = await api.json() console.log(apiJSON)

Gracias

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

0

Intente encodeURIComponent de la etiqueta del clan de esta manera:

 let api = await fetch(`https://api.clashofclans.com/v1/clans/${encodeURIComponent(#2Q8GRY8LQ)}`, { method: `GET`, headers: new Headers({ 'Authorization': `Bearer ${API_TOKEN}`, }) }) let apiJSON = await api.json() console.log(apiJSON)
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!