Url Params in Serializer


Hi, I have a requirement where I need to serrialize the API data based on the request params I sent. The returned response format is always the same but I need reformat the data based on the request params. Right now I dont know if there is a ways to access these params in the serializer hooks. What would be the best way do this?