SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question is very simple. I would like to display the recent top 10 news with the REST API in Sharepoint 2013. I'm using the following query:


Now I would like to select the link to the news page. But as far as I know, there is no property that I can get that would give me the URL of the page.

Anyone knows a way, via the REST query, to get the URL? Thanks!

share|improve this question
up vote 5 down vote accepted

Have you tried getting the column 'FileRef'?

If not can you construct the URL using the Name?

share|improve this answer
Wonderful, FileRef is working. Thank you so much! (Might want to edit your post from FieldRef to FileRef) – Simon Lapointe Jan 23 '14 at 21:16
Here is the link for FileRef:… – Russell Jan 24 '14 at 0:30

FileRef field in $select query option will return page url.

For example, the query:'Pages')/items?$top=1&$select=Id,Title,FileRef

will return:

    <?xml version="1.0" encoding="utf-8"?>
<feed xml:base="" 
    <title />
    <entry m:etag="&quot;5&quot;">
        <category term="SP.Data.PagesItem" scheme="" />
        <link rel="edit" href="Web/Lists(guid'a976fb47-81fa-47ae-a487-7d6d656a54ce')/Items(1)" />
        <title />
            <name />
        <content type="application/xml">
                <d:Id m:type="Edm.Int32">1</d:Id>
                <d:ID m:type="Edm.Int32">1</d:ID>
    <link rel="next" href="'Pages')/items?%24skiptoken=Paged%3dTRUE%26p_SortBehavior%3d0%26p_ID%3d1&amp;%24top=1&amp;%24select=Id%2cTitle%2cFileRef" />
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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