Begineer of API

Hi, i am interest on the API.
But, i totally empty from this area, i try google how to start api but a lot of go to the syntax thing.

Appreciated if you can share how can i start from fresh like what’s the requirement, any server require and etc…

thanks.

RouterOS’ API is just the protocol, for use in various environments.

You could use it with any language that has means to work with a TCP connection, which is basically any modern day programming language. You can see pre-existing client libraries for different languages at the bottom of the protocol’s specification.

There’s PHP, C, C#, Java, Delphi, Python and more, as you can see. Your environment should consist of everything needed to create and run ANY application for your language of choice + the API client library for that language.

For example, in the case of C# and other .NET languages, you need to install “Visual Studio” and the .NET framework. For PHP, you’d need the PHP interpreter itself, plus a web server to attach PHP to, and so on (or install an “all-in-one” package, such as XAMPP).


Do you know how to use any programming language already? If you do, find yourself an API client for that language.

If not… Well… I think PHP might be easiest for you, but I’m VERY biased in saying that, as it’s my first programming language, and the one my API client (where I’ve simplified a lot of stuff) is written in. Also, the recommended language depends on what kind of an application are you intending to write. A desktop application? A native mobile phone application (for Android? For Windows Phone?)? A web application?

Thanks for sharing…