{"_id":"5537e22249a5800d00a28e54","__v":4,"version":{"_id":"542ac32254d88d140075fc39","__v":4,"project":"542ac32254d88d140075fc36","createdAt":"2014-09-30T14:50:10.500Z","releaseDate":"2014-09-30T14:50:10.500Z","categories":["542ac32254d88d140075fc3a","542af0fd54d88d140075ff1b","542af128cedcfc140004b8d0","5537e2870899730d0081368d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"542ac32254d88d140075fc3a","__v":7,"pages":["542ac32254d88d140075fc3c","55369f1f6fd3c40d00334978","5537e1563faac70d00ff6da6","5537e1f63e785d0d00be3feb","5537e22249a5800d00a28e54","5537e24b3faac70d00ff6da8","5537e26349a5800d00a28e56"],"project":"542ac32254d88d140075fc36","version":"542ac32254d88d140075fc39","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-09-30T14:50:10.530Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"project":"542ac32254d88d140075fc36","user":"542ac2d054d88d140075fc29","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-22T18:02:10.368Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"Exversion powers [The Data Search Engine](http://data-search-engine.com), indexing hundreds of open data platforms for a unified search. As a result the running a search query through the API will not only return repositories hosted on Exversion itself, but all the open data sites The Data Search Engine indexes.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"GET /search\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"parameter\",\n    \"h-1\": \"value\",\n    \"0-0\": \"q\",\n    \"0-1\": \"Your search query\",\n    \"1-0\": \"_public\",\n    \"1-1\": \"1 or 0, if set to 1 Exversion will return only datasets that are publicly available on Exversion. No private datasets and data from indexed on other repositories will also be filtered out of results.\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]\n**Example Requests**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import requests\\n\\nr = requests.get(\\\"https://www.exversion.com/api/v1/search?q=foobar\\\")\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"<?php\\n\\t$ch = curl_init('https://www.exversion.com/api/v1/search?q=foobar');\\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\\n$result = json_decode(curl_exec($ch));\\n?>\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'unirest'\\nresponse = Unirest.get \\\"https://www.exversion.com/api/v1/search?q=foobar\\\"\",\n      \"language\": \"ruby\"\n    }\n  ]\n}\n[/block]\n**Example Response**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"status\\\":200,\\n\\\"message\\\":\\\"Success\\\",\\n\\\"body\\\":[\\n\\t{\\\"dataset\\\":\\\"A9G8JOU2O95IPY2\\\",\\n\\t\\\"sourceURL\\\":\\\"https:\\\\/\\\\/data.sfgov.org\\\\/Arts-Culture-and-Recreation-\\\\/Film-Locations-in-San-Francisco\\\\/yitu-d5am\\\",\\n\\t\\\"sourceAuthor\\\":\\\"Lauren Machado\\\",\\n\\t\\\"sourceDate\\\":\\\"Nov 10, 2011\\\",\\n\\t\\\"sourceContact\\\":\\\"N\\\\/A\\\",\\n\\t\\\"uploadedBy\\\":{\\\"id\\\":17,\\\"name\\\":\\\"bellmar\\\"},\\n\\t\\\"description\\\":\\\"If you love movies, and you love San Francisco, you're bound to love this -- a listing of filming locations of movies shot in San Francisco from 1924 - 2010. You'll find the titles, locations, fun facts, names of the director, writer, actors, and studio for most of these films.\\\",\\n\\t\\\"heritage\\\":[],\\n\\t\\\"size\\\":193208,\\n\\t\\\"forkchanges\\\":null}\\n\\t]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"searching-for-data","type":"basic","title":"Searching for Data"}

Searching for Data


Exversion powers [The Data Search Engine](http://data-search-engine.com), indexing hundreds of open data platforms for a unified search. As a result the running a search query through the API will not only return repositories hosted on Exversion itself, but all the open data sites The Data Search Engine indexes. [block:api-header] { "type": "basic", "title": "GET /search" } [/block] [block:parameters] { "data": { "h-0": "parameter", "h-1": "value", "0-0": "q", "0-1": "Your search query", "1-0": "_public", "1-1": "1 or 0, if set to 1 Exversion will return only datasets that are publicly available on Exversion. No private datasets and data from indexed on other repositories will also be filtered out of results." }, "cols": 2, "rows": 2 } [/block] **Example Requests** [block:code] { "codes": [ { "code": "import requests\n\nr = requests.get(\"https://www.exversion.com/api/v1/search?q=foobar\")", "language": "python" }, { "code": "<?php\n\t$ch = curl_init('https://www.exversion.com/api/v1/search?q=foobar');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n$result = json_decode(curl_exec($ch));\n?>", "language": "php" }, { "code": "require 'unirest'\nresponse = Unirest.get \"https://www.exversion.com/api/v1/search?q=foobar\"", "language": "ruby" } ] } [/block] **Example Response** [block:code] { "codes": [ { "code": "{\"status\":200,\n\"message\":\"Success\",\n\"body\":[\n\t{\"dataset\":\"A9G8JOU2O95IPY2\",\n\t\"sourceURL\":\"https:\\/\\/data.sfgov.org\\/Arts-Culture-and-Recreation-\\/Film-Locations-in-San-Francisco\\/yitu-d5am\",\n\t\"sourceAuthor\":\"Lauren Machado\",\n\t\"sourceDate\":\"Nov 10, 2011\",\n\t\"sourceContact\":\"N\\/A\",\n\t\"uploadedBy\":{\"id\":17,\"name\":\"bellmar\"},\n\t\"description\":\"If you love movies, and you love San Francisco, you're bound to love this -- a listing of filming locations of movies shot in San Francisco from 1924 - 2010. You'll find the titles, locations, fun facts, names of the director, writer, actors, and studio for most of these films.\",\n\t\"heritage\":[],\n\t\"size\":193208,\n\t\"forkchanges\":null}\n\t]\n}", "language": "json" } ] } [/block]