API usage:
API is only allowed for registered users.
Access to API is enabled trough OAUTH, which means that you need to get token with login and after that you can make requests.
Below is short example how to do it with cURL
curl -d '{"email": "[email protected]", "password": "yourpassword"}' -H "Accept: application/json" -H "Content-Type: application/json" -X POST https://reserve.freesvg.org/api/v1/auth/login
you will receive response
{"message":"Login Successful.","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjI4MDU2NmM2ODNlMmZhOTU4ZGMwZWRhMjZhZDEwZGEyMDhhMWasdadUyZmE5NThkYzBlZGEyNmFkMTBkYTIwOGExZWZhMWFhODhmNjQ2ZjhmYmQwMjc2NDk0MzVjNWQ4ZThjYTM2N2NjNDFjZjMiLCJpYXQiOjE1Njk5MzM1NDksIm5iZiI6MTU2OTkzMzU0OSwiZXhwIjoxNjAxNTU1OTQ5LCJzdWIiOiIxIiasd7RnSmNplI8KB3lG-Yts88PDLAM0e1kYMZvJmgqVSAl36Bje3LOr5a1HD_Zwz5i03O4OwojUuqYwJdZkvcEriElnsgq9peaDuA0KhdjM-J81sadhRBxp0SbaeFpp7SVRusad719nLRqBG02_OCbkzR7EbCWzrdDlRGWENjvfqsptCDfGuV3oqAK27aq8ytaGCc12peX6MP7E3EspNrZCmB6Ifxo8129QT99SIBg6AqlPOvc3873DyeQNRREGDSpFIMGrzBUNQtg_5vYpgGgCIbRVilhHOudPZstypBJNDG9RGZhZ2ee8i9qZKwq4hE"}
and after that with this token you can access API pages.
curl -H 'Accept: application/json' -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjI4MDU2NmM2ODNlMmZhOTU4ZGMwZWRhMjZhZDEwZGEyMDhhMWVmYTFhYTg4ZjY0NmY4ZmJkMDI3NjQ5NDM1YzVkOGU4Y2EzNjdjYzQxY2YzIn0.eyJhdWQiOiIxIiwianRpIjoiMjgwNTY2YzY4M2UyZmE5NThkYzBlZGEyNmFkMTBkYTIwOGExZWZhMWFhODhmNjQ2ZjhmmQwMjc2NDk0MzVjNWQ4ZThjYTM2N2NjNDFjZjMiLCJpYXQiOjE1Njk5MasdVCQZfDmfOe57bMkijTiuDkZH7RdAXyWKNctO-P-yXYMSKqcD9HnDEhvCXk1TK9s6j_WN4Uj6Hk8d1RBQn719nLRqBG02_OCbkzR7EbCWzrdDlRGWENjvfqsptCDfGuV3oqAK27aq8ytaGCc12peX6MP7E3EspNrZCmB6Ifxo8129QT99SIBg6AqlPOvc3873DyeQNRREGDSpFIMGrzBUNQtg_5vYpgGgCIbRVilhHOudPZstypBJNDG9RGZhZ2ee8i9qZKwq4hE" https://freesvg.org/api/v1/svg/83149
Following request are available at the moment:
https://reserve.freesvg.org/api/v1/svgs - retrieve all available svg (25 per request)
https://reserve.freesvg.org/api/v1/search?query=search-term - retrieve svgs that match search term (25 per request)
https://reserve.freesvg.org/api/v1/svg/{id} - retrieve data for specific svg