Get the svg code of a component with api

How to get the svg code of a component using its id through python api? I use component_id.get(‘vectorNetwork’, {}) but it doesn’t work.

What do you mean by Python API? Figma doesn’t have one.

If you are using REST API, you need to either export SVG through /images endpoint or use fillPath/strokePath property of a node.

Yes, I meant using the REST API in Python.

Thanks for the reply!