{"__v":1,"_id":"55abd9cc0685ce0d0049fbb5","category":{"__v":21,"_id":"55a7aee94a33f92b00b7a154","pages":["55a7aee94a33f92b00b7a156","55a7ea403efe0c2f0074cb75","55a80eb23ec2ec0d00bd66ea","55a811fc6e61e619004f703e","55a8c513cf45e1390093f18c","55a8d9fa27a17d210052516d","55a8f048cf45e1390093f248","55aba4ba63a6b60d006616e1","55abab0a0685ce0d0049fb8d","55abb04da36ccd0d00fdebc1","55abc1cc63a6b60d006616f4","55abcdbd63a6b60d006616fa","55abd36763a6b60d00661700","55abd50ea36ccd0d00fdebdb","55abd8c3a36ccd0d00fdebdf","55abd9cc0685ce0d0049fbb5","55abdb6b63a6b60d00661706","55abdc9b0685ce0d0049fbb8","55c1f5fca131980d005be95b","55fac407bc972f0d0005f644","569f68e766a5640d00efa52d"],"project":"55a7aee84a33f92b00b7a150","version":"55a7aee84a33f92b00b7a153","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-16T13:17:29.102Z","from_sync":false,"order":2,"slug":"endpoints","title":"Endpoints"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"55a7aee84a33f92b00b7a150","user":"55a7ae50bf1be93100d89df1","version":{"__v":6,"_id":"55a7aee84a33f92b00b7a153","project":"55a7aee84a33f92b00b7a150","createdAt":"2015-07-16T13:17:28.411Z","releaseDate":"2015-07-16T13:17:28.411Z","categories":["55a7aee94a33f92b00b7a154","55a7fefa3efe0c2f0074cbdf","55a8fb10c8bd450d000dd130","55a936b1cf45e1390093f362","55abddeaa36ccd0d00fdebe1","5624db675a86b423009462e1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-19T17:09:32.705Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl https://api.aylien.com/api/v1/microformats \\\n   -H \"X-AYLIEN-TextAPI-Application-Key: [[app:key]]\" \\\n   -H \"X-AYLIEN-TextAPI-Application-ID: [[app:id]]\" \\\n   -d url=\"http://tommorris.org/\"","language":"curl"},{"code":"textapi.microformats({\n  url: \"http://tommorris.org/\"\n}, function(error, response) {\n  if (error === null) {\n    response.hCards.forEach(function(hCard) {\n      console.log(hCard);\n    });\n  }\n});","language":"javascript"},{"code":"url = \"http://tommorris.org/\"\nmicroformats = client.Microformats({\"url\": url})\nfor hCard in microformats['hCards']:\n  print hCard","language":"python"},{"code":"<?php\n$url = 'http://tommorris.org/';\n$microformats = $textapi->Microformats(array('url' => $url));\nforeach($microformats->hCards as $hCard) {\n  var_dump($hCard);\n}\n?>","language":"php"},{"code":"MicroformatsParams.Builder builder = MicroformatsParams.newBuilder();\njava.net.URL url = new java.net.URL(\"http://tommorris.org/\");\nbuilder.setUrl(url);\nMicroformats microformats = client.microformats(builder.build());\nfor (HCard hCard: microformats.gethCards()) {\n\t\tSystem.out.println(hCard);\n}","language":"java"},{"code":"url = \"http://tommorris.org/\"\n\nmicroformats = client.microformats(url: url)\n\nmicroformats[:hCards].each do |h_card|\n  puts h_card\nend","language":"ruby"},{"code":"url := \"http://tommorris.org/\"\nmicroformatsParams := &textapi.MicroformatsParams{URL: url}\nmicroformats, err := client.Microformats(microformatsParams)\nif err != nil {\n\t\tpanic(err)\n}\nfor _, hCard := range microformats.HCards {\n\t\tfmt.Printf(\"%v\\n\", hCard)\n}","language":"go"},{"code":"string url = \"http://tommorris.org/\";\n\nvar microformats = client.Microformats(url: url);\n\nforeach (var hCard in microformats.HCards)\n{\n  Console.WriteLine(hCard.FullName);\n}","language":"csharp"}]},"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"hCards\":[\n    {\n      \"location\":{\n        \"id\":\"4aef7ad915718d57463d6f3405c3e6e3c1a58d85\",\n        \"latitude\":\"50.8211159\",\n        \"longitude\":\"-0.1428669\"\n      },\n      \"photo\":\"/images/me.jpg\",\n      \"email\":\"tom:::at:::tommorris.org\",\n      \"fullName\":\"Tom Morris\",\n      \"structuredName\":{\n        \"id\":\"9915cf39f3ec154f06cd8626178b627deeec7771\",\n        \"givenName\":\"Tom\",\n        \"familyName\":\"Morris\"\n      },\n      \"logo\":\"/images/me.jpg\",\n      \"id\":\"a8854a8fd9bdd9add4108a39179810c661bc4232\"\n    }\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"55a8f048cf45e1390093f24a","ref":"","in":"query","required":false,"desc":"URL to extract Microformats from","default":"","type":"string","name":"url"}],"url":"/microformats"},"isReference":false,"order":10,"body":"**Microformat Extraction** can be used to easily extract [Microformats](http://microformats.org/) from any webpage.","excerpt":"/microformats","slug":"microformats","type":"get","title":"Microformat Extraction"}

getMicroformat Extraction

/microformats

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

url:
string
URL to extract Microformats from

Examples


Result Format


Documentation

**Microformat Extraction** can be used to easily extract [Microformats](http://microformats.org/) from any webpage.

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}