Access Schema.org vocabulary data programmatically
GET /api/typesList all Schema.org types with optional filtering
Query Parameters:
category - Filter by categoryparent - Filter by parent typesearch - Search in name and descriptionlimit - Limit results (default: 100)offset - Pagination offset (default: 0)GET /api/types/:nameGet details for a specific type by name
Query Parameters:
format - Response format (json or jsonld)GET /api/graphGet the complete type hierarchy graph
Query Parameters:
format - Response format (graph or hierarchy)depth - Maximum depth for hierarchy formatimport { $ } from 'sdk.do'
// Query for a type
const product = await $.Product.get()
// Create structured data
const org = await $.Organization.create({
name: 'Example Corp',
url: 'https://example.com'
})Learn more about the SDK at platform.do
All types support JSON-LD output for semantic web applications
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Example Product",
"description": "Product description",
"offers": {
"@type": "Offer",
"price": "99.99",
"priceCurrency": "USD"
}
}