Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
JSON is a text-based open standard. It is human-readable and used for data interchange between applications. Use this tag for questions related to topics about using JSON.
0
votes
Get API responses in formats other than JSON
The API only returns data in JSON format - you must perform any conversion yourself. … Here is the source code for a PHP app I wrote a while back that converts the JSON returned by the API to XML:
http://quickmediasolutions.com/pastebin/1/stack2xml-source-code
It expects two GET variables …
3
votes
0
answers
152
views
Stack Cartographer - A PHP tool for generating a JSON map of the Stack Exchange API.
About
After the JSON documentation for the Stack Exchange API was dropped for v2.0, I began to wonder if it would be possible to throw together a PHP script that did a bit of screen-scraping to generate … a JSON map of the API. …
3
votes
Accepted
Possible Gzip or data format problems when trying to read JSON.
Here is the relevant section of code from stack.PHP.
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_ENCODING,'gzip'); // Needed by API
curl_setopt($ch,CURLOPT_RETURNT …
2
votes
Accepted
Get user data using curb/Curl in Ruby
I think your problem is that you're forgetting that the API only supplies gzipped data.
I don't use Ruby, so you'll have to figure out how to tell curl to accept gzip data.