Send arguments to GetServerSideProps

I wonder if anyone knows if it is possible to send arguments to getServersideProps in Next Js.

At the end of my URL I have a hard codded page number, that fetches different movies per page, but I want to have it dynamic with getServersideProps, is it possible?

export const getServerSideProps: GetServerSideProps = async (
  ctx: GetServerSidePropsContext<ParsedUrlQuery>
) => {
  console.log(ctx.query)
  const response = await fetch(
    `https://api.themoviedb.org/3/movie/upcoming?api_key=${process.env.API_KEY}&language=en-US&page=1`
  )

  const data = await response.json()

  return {
    props: {
      data: data.results,
    },
  }
}