New Tools for Sample Queries

We’ve updated the code block for sample queries on dev.socrata.com with a number of new great tools to help you interact with our example queries. On every sample query block, you’ll see a new toolbar on the top with buttons that perform different operations.

New Query Tools

Your options include:

  • try it - Run the query displayed and display the output
  • docs - Open the API docs for this dataset in a new window
  • copy - Copy the query URL to your clipboard
  • edit - Load this query in Hurl.it, an awesome web tool for testing REST APIs
  • json - Change the output format used for the sample query to JSON, CSV, XML, etc.

This new layout is also expandable, so in the future we’ll be able to add features like automatic code sample generation! Enjoy, and if you have any feedback, please let us know.