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>
) => {
  const response = await fetch(

  const data = await response.json()

  return {
    props: {
      data: data.results,