Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

How do I specify a parameter in the URL?

http://api.stackoverflow.com/0.8/questions works as expected.

Then I would like to pass parameter body with a value of true (that is available according to the documentation for /questions).

I have tried:

http://api.stackoverflow.com/0.8/questions/body{true}

and

http://api.stackoverflow.com/0.8/questions/body(true)
share|improve this question

1 Answer 1

up vote 6 down vote accepted

Like so, in the query section of the URL:

http://api.stackoverflow.com/0.8/questions/?body=true&field=value&field1=value1

See Wikipedia.

share|improve this answer
    
Thanks. I think I was expecting a more RESTful API. –  Peter Mortensen May 21 '10 at 0:13
    
I think this information should be in stackapps.com/questions/2/getting-started-with-the-api. That is where I looked first. –  Peter Mortensen May 21 '10 at 1:19
1  
@Peter. Example added. –  Joel Potter May 21 '10 at 2:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .