Dataset Foodista
Published 7th March 2011
Type Lookup API
Users 21

Lookup API

Retrieve a description of a single resource. Useful for fetching the key properties and relationships of a single entity.

Documentation

Endpoint URL

http://api.kasabi.com/dataset/foodista/apis/lookup
Login to test this query using our experimental API explorer

Authentication

You will need your API key (on your dashboard) in order to authenticate to this API. You have two options for authentication:

  • By URL Parameter -- add the apikey parameter to your request URL, with your key as the value
  • By Request Header -- add a custom HTTP header called X_KASABI_APIKEY to your HTTP request, with your key as the value

For more information on Kasabi authentication options read the authentication documentation. Your API key will need to be authorized to use this service.

Parameters

The API supports the following parameters

Parameter Name Parameter Value(s) Required? Notes
about URI Yes URI should be propertly URL-encoded
output Short name for desired response format No Supports selecting response format using url parameter rather than HTTP Accept header.

HTTP Response Codes

Clients should be prepared to receive any valid HTTP response code. The following table lists the most frequently used codes

CodeMeaning
200 OKSuccessful Request
400 Bad RequestMissing or malformed SPARQL query
401 Not AuthorizedAPI key is not authorized to access the data

Please also review our additional notes on response codes.

Response Formats

The API supports returning the following formats

Response Format Accept header output parameter Notes
application/rdf application/rdf+xml rdf (or xml) Return results as RDF/XML
application/json application/json json Return results as RDF/JSON
text/turtle text/turtle turtle Return results as Turtle
text/plain text/plain ntriples Return results as NTriples