How can I get the ContentType Field value From Task List Using REST API In SharePoint 2013 ?

I tried this code and i got results for ID, Title etc. but for the ContentType field he returned "deferred"

$(document).ready(function() {

   url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/getbytitle('Tasks')/items",
   type: "GET",
   dataType: 'json',
   headers: { "Accept": "application/json;odata=verbose" },
   success: function(data, textStatus, xhr) {
  var dataResults = data.d.results;
    error: function(xhr, textStatus, errorThrown) {


3 Answers 3


The task object that is being returned contains "links" to other objects, like the content type. Instead of serializing and returning all objects connected to the requested task, it returns the key field (ContentTypeId), and a "deferred" item that contains the URI to the associated item. So, you could grab that URI and make another request to get whatever info you want about the ContentType. Or try adding $expand= to the URI:


The additional parameter tells it to go ahead and serialize the ContentType object along with the items.


Take a look at the REST API page, for more information. It sounds as the contet type that is is giving you is the request content type and not the actual item content type. Try adding a ?$select field1,field2,ContentType,field3 to the URL.

  • Thanks but I already tried it and the result is still "deferred" Commented Apr 25, 2013 at 6:07

If you are using the select parameter, then you must include ContentTypeId in the select statement. Without using select, you can expand Content Type using (as Mike2500 showed):


However, if you add a select it will not expand, unless you include ContentTypeId. For example, neither of these will cause Content Type to be expanded:


Now if you include ContentTypeId in the select, then the Content Type will be expanded. For example:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.