To use the web API you require an API key (application id). You get this from your user page.
For API limits see,
The instance id is the id of the bot that you are sending the message to. You can create your own bot, or send a message to an existing bot. The bot's id is from its details page.