Fork me on GitHub

schema.org API

Made with love by @garbados

Effortless Microformat Data

Scrapes schema.org for data on microformats, mapping 1:1 with their URLs. So, http://schema.org/Person becomes /Person.

If you have questions, hit up @garbados. Enjoy!

Why?

http://schema.org/ contains schemas for a significant subset of everything ever, from tangibles like books and rock bands to intangles like interactions and ideas. You can then mark up HTML using these schema properties, which crawlers (like Google's) will then use to more intelligently index your content.

You can also use these schemas in part or in whole to model data in your database. That'll save you a whiteboarding session or two, and allow you to automate the aforementioned frontend markup.

Usage

The API scrapes items -- that is, Thing derivatives -- so trying it on searches or properties will result in much gnashing of teeth.

Expect responses like this, which comes from /Action:

{
  "name": "Action",
  "_links": {
    "self": {
      "href": "/Action"
    },
    "related": [
      {
        "href": "/AchieveAction",
        "name": "AchieveAction"
      },
      {
        "href": "/AssessAction",
        "name": "AssessAction"
      },
      {
        ...
      }
    ]
  },
  "properties": [
    {
      "description": "A short description of the item.",
      "expected": {
        "type": "Text"
      },
      "property": "description"
    },
    {
      "description": "URL of an image of the item.",
      "expected": {
        "type": "URL"
      },
      "property": "image"
    },
    {
      ...
    }
  ]
}