Skip to content

jagad/schema-org-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

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"
      },
      {
        ...
      }
    ]
  },
  "_embedded": [
    {
      "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"
    },
    {
      ...
    }
  ]
}

About

Scrapes schema.org for data on microformats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.4%
  • HTML 15.6%