How i get the params id from url using server side components in nextjs?

I’m trying to fetch an API but it’s only working on the server side, so I need my component to be server-side, but all the hooks I found to get the url id are client side, is there one that allows it?

I’ve already tried useSearchParams, useRouter and nothing, here’s the component I’m trying to run.

import FerramentaCard from '@/components/ferramentas/ferramenta';

export default async function Ferramenta() {
  const response = await fetch(`https://gameinfo.albiononline.com/api/gameinfo/items/${query.id}/data`, { method: 'GET', mode: 'no-cors' });
  const ferramentaInfo = await response.json();

  return <FerramentaCard ferramentaInfo={ferramentaInfo} />;
}