The API
The API is very much in the early stages of development so please post any feedback you have to us using the contact link in the footer.
Overview
To connect to the API use the following URL followed by the resource, the parameter pairs and your API key.
http://api.kroud.co/RESOURCE/KEY/VALUE?key=123456
When getting and posting questions and answers you need to specify the Kroud subdomain as well. So for example you would use this URL to get the questions for a particular Kroud:
http://api.kroud.co/questions/subdomain/faq?key=123456
Note: when posting make sure you post the Key as well as the other parameters.
Response data is in XML. All methods require authentication with your key.
Get Your Profile
URL: http://api.kroud.co/profile
HTTP Method: GET
API Rate Limit: 200
Parameters:
- None
Get a User
URL: http://api.kroud.co/user
HTTP Method: GET
API Rate Limit: 200
Parameters:
- user_id
Example:
curl http://api.kroud.co/user/user_id/1
Get a Kroud
URL: http://api.kroud.co/kroud
HTTP Method: GET
API Rate Limit: 200
Parameters:
- subdomain
Example:
curl http://api.kroud.co/kroud/subdomain/faq
Get Questions
URL: http://api.kroud.co/questions
HTTP Method: GET
API Rate Limit: 200
Parameters:
- subdomain
- offset (optional - default: 0)
- limit (optional - default: 50)
Example:
curl http://api.kroud.co/questions/subdomain/faq
Get Answers
URL: http://api.kroud.co/answers
HTTP Method: GET
API Rate Limit: 200
Parameters:
- subdomain
- question_id
Example:
curl http://api.kroud.co/answers/subdomain/faq/question_id/1
Post Question
URL: http://api.kroud.co/question
HTTP Method: POST
API Rate Limit: 10
Parameters:
- subdomain
- question
- description (optional)
Example:
curl http://api.kroud.co/question/subdomain/faq -d "key=123456&question=Why?"
Post Answer
URL: http://api.kroud.co/answer
HTTP Method: POST
API Rate Limit: 5
Parameters:
- subdomain
- question_id
- answer
Example:
curl http://api.kroud.co/answer/subdomain/faq/question_id/1 -d "key=123456&answer=Because"
Facebook
Twitter
RSS Feed