sdata API

Public OData v4 REST API for the AdventureWorks and Northwind sample databases.

Base URL
https://sdata.kandoodev.com
All endpoints return JSON. The OData metadata document is available at /odata/$metadata.

Rate limit 100 requests per minute per IP address. Exceeding the limit returns 503 Service Unavailable.

This API is free for all and intended for developers who need a live OData v4 REST API to test client grids, filters, paging, and other dev scenarios against real-world sample data. Save time and effort by skipping the setup of your own sample API — just point your app here and stay productive.

1. AdventureWorks — Products

GET /api/adventureworks/products

POST /api/adventureworks/products/$query

Returns a pageable, filterable, sortable list of products from the AdventureWorks Production.Product table.

Response shape

{
  "@odata.context": "__ORIGIN__/odata/$metadata#Products",
  "@odata.count":   504,
  "value": [
    {
      "ProductId":     749,
      "Name":          "Road-150 Red, 62",
      "ProductNumber": "BK-R93R-62",
      "Color":         "Red",
      "Size":          "62",
      ...
    }
  ]
}

Product fields

FieldTypeDescription
ProductIdintPrimary key
NamestringProduct name
ProductNumberstringStock-keeping unit
Colorstring?Product color
Sizestring?Product size
ListPricedecimalRetail price
StandardCostdecimalManufacturing cost
MakeFlagboolManufactured in-house
FinishedGoodsFlagboolSaleable item
SafetyStockLevelshortMinimum stock quantity
ReorderPointshortReorder trigger quantity
DaysToManufactureintLead time in days
Weightdecimal?Product weight
ProductLinestring?R / M / T / S
Classstring?H / M / L
Stylestring?U / M / W
SizeUnitMeasureCodestring?Size unit
WeightUnitMeasureCodestring?Weight unit
ProductSubcategoryIDint?Subcategory FK
ProductModelIDint?Model FK
SellStartDateDateTimeFirst saleable date
SellEndDateDateTime?End-of-life date
DiscontinuedDateDateTime?Discontinued date
RowguidGuidUnique row identifier
ModifiedDateDateTimeLast modified

Query options

OptionExampleNotes
$top ?$top=20 Max 100
$skip ?$skip=40 Use with $top for paging
$orderby ?$orderby=Name
?$orderby=ListPrice desc
Ascending by default
$filter ?$filter=Color eq 'Red'
?$filter=ListPrice gt 100
?$filter=contains(Name,'Road')
See filter reference below
$count ?$count=true Includes total in @odata.count
$select ?$select=Name,Color,ListPrice Projection

GET examples

GET /api/adventureworks/products?$top=5&$orderby=ListPrice desc&$count=true
GET /api/adventureworks/products?$filter=Color eq 'Black' and Size eq 'M'
GET /api/adventureworks/products?$filter=startswith(Name,'HL')
GET /api/adventureworks/products?$filter=ListPrice ge 500 and ListPrice le 1000
GET /api/adventureworks/products?$select=ProductId,Name,ListPrice&$top=10

POST endpoint

Use /api/adventureworks/products/$query to send query parameters in the request body. Supports application/json and application/x-www-form-urlencoded.

POST /api/adventureworks/products/$query
Content-Type: application/json

{
  "$top":     10,
  "$skip":    0,
  "$orderby": "ListPrice desc",
  "$filter":  "Color eq 'Red'"
}

POST examples

POST /api/adventureworks/products/$query   (form-urlencoded body)
$top=10&$skip=0&$orderby=Name&$filter=contains(Name,'Mountain')

POST /api/adventureworks/products/$query   (JSON body)
{"$top":10,"$skip":20,"$filter":"Color eq 'Black' and Size eq 'L'"}
2. Northwind — Customers

GET /api/northwind/customers

POST /api/northwind/customers/$query

Returns a pageable, filterable, sortable list of customers from the Northwind Customers table.

Response shape

{
  "@odata.context": "__ORIGIN__/odata/$metadata#Customers",
  "@odata.count":   91,
  "value": [
    {
      "CustomerId":  "ALFKI",
      "CompanyName": "Alfreds Futterkiste",
      "ContactName": "Maria Anders",
      "City":        "Berlin",
      "Country":     "Germany",
      ...
    }
  ]
}

Customer fields

FieldTypeDescription
CustomerIdstring5-char primary key (e.g. ALFKI)
CompanyNamestringCompany name
ContactNamestring?Primary contact person
ContactTitlestring?Job title
Addressstring?Street address
Citystring?City
Regionstring?State / region
PostalCodestring?Postal / ZIP code
Countrystring?Country
Phonestring?Phone number
Faxstring?Fax number

Query options

OptionExampleNotes
$top?$top=15Default: 10
$skip?$skip=30Use with $top for paging
$orderby?$orderby=Country,CityMulti-column sort
$filter?$filter=Country eq 'UK'See filter reference

POST endpoint

Use /api/northwind/customers/$query to send query parameters in the request body. Supports application/json and application/x-www-form-urlencoded.

POST /api/northwind/customers/$query
Content-Type: application/json

{
  "Top":     10,
  "Skip":    0,
  "OrderBy": "Country asc",
  "Filter":  "City eq 'London'"
}

Examples

GET /api/northwind/customers?$top=10&$orderby=CompanyName
GET /api/northwind/customers?$filter=Country eq 'Germany'
GET /api/northwind/customers?$filter=startswith(CompanyName,'B')
GET /api/northwind/customers?$top=5&$skip=10&$orderby=City

3. OData filter reference

OperatorExample
eq / neColor eq 'Red'
gt / geListPrice gt 100
lt / leSafetyStockLevel le 500
and / orColor eq 'Black' and Size eq 'L'
notnot (Color eq 'Red')
containscontains(Name,'Mountain')
startswithstartswith(CompanyName,'A')
endswithendswith(ProductNumber,'-00')

Questions? Contact [email protected]

© 2025 sdata · Built on ASP.NET Core & OData v4