def METHOD_NAME(self, request, *_, **__):
    """
    Retrieve the structured data for a specified image URL as per the
    [oEmbed spec](https://oembed.com/).
    This info can be used to embed the image on the consumer's website. Only
    JSON format is supported.
    """
    params = OembedRequestSerializer(data=request.query_params)
    params.is_valid(raise_exception=True)
    context = self.get_serializer_context()
    url = params.validated_data["url"]
    if url.endswith("/"):
        url = url[:-1]
    identifier = url.rsplit("/", 1)[1]
    image = get_object_or_404(Image, identifier=identifier)
    if not (image.height and image.width):
        image_file = requests.get(image.url, headers=self.OEMBED_HEADERS)
        width, height = PILImage.open(io.BytesIO(image_file.content)).size
        context |= {
            "width": width,
            "height": height,
        }
    serializer = self.get_serializer(image, context=context)
    return Response(data=serializer.data)