POST api/v1/search/publishedarticles/feed?next={next}&pageSize={pageSize}

Retrives article cards by search and includes counts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
next

Token given from first request that specifies where to continue getting more. If not specified, gets the most recent items.

string

None.

pageSize

The maximum number of items to return. Defaults to 10.

integer

Default value is 10

Body Parameters

Params to retrieve from. E.g. query, pagesize, PublicationIds

SearchParams
NameDescriptionTypeAdditional information
Query

string

None.

Mode

SearchMode

None.

Page

integer

None.

PageSize

integer

None.

SortOrder

OrderBy

None.

PublicationIds

Collection of string

None.

CategoryIds

Collection of integer

None.

IsCloaked

boolean

None.

UserArticleFilter

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Query": "sample string 1",
  "Mode": 0,
  "Page": 2,
  "PageSize": 3,
  "SortOrder": 0,
  "PublicationIds": [
    "sample string 1",
    "sample string 2"
  ],
  "CategoryIds": [
    1,
    2
  ],
  "IsCloaked": true,
  "UserArticleFilter": "sample string 5"
}

application/xml, text/xml

Sample:
<SearchParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Search.Core.Models">
  <CategoryIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CategoryIds>
  <IsCloaked>true</IsCloaked>
  <Mode>MatchAny</Mode>
  <Page>2</Page>
  <PageSize>3</PageSize>
  <PublicationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PublicationIds>
  <Query>sample string 1</Query>
  <SortOrder>Default</SortOrder>
  <UserArticleFilter>sample string 5</UserArticleFilter>
</SearchParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SearchResultsOfArticleCard
NameDescriptionTypeAdditional information
Count

integer

None.

Items

Collection of ArticleCard

None.

Next

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Properties": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "Title": "sample string 1",
      "Excerpt": "sample string 2",
      "Url": "sample string 3",
      "MainImageUrl": "sample string 4",
      "ThumbImageUrl": "sample string 5",
      "MediumThumbUrl": "sample string 6",
      "CollageImageUrl": "sample string 7",
      "PublishedDate": "2018-04-09T23:42:08.6778988+00:00",
      "ArticleType": 0,
      "PublicationName": "sample string 9",
      "PublicationLogoUrl": "sample string 10",
      "PublicationSlug": "sample string 11",
      "UserName": "sample string 12",
      "UserAvatarUrl": "sample string 13",
      "CategoryName": "sample string 14",
      "CategorySlug": "sample string 15",
      "IsVideoArticle": true,
      "id": "sample string 17",
      "Environment": "sample string 18",
      "IsDeleted": true
    },
    {
      "Properties": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "Title": "sample string 1",
      "Excerpt": "sample string 2",
      "Url": "sample string 3",
      "MainImageUrl": "sample string 4",
      "ThumbImageUrl": "sample string 5",
      "MediumThumbUrl": "sample string 6",
      "CollageImageUrl": "sample string 7",
      "PublishedDate": "2018-04-09T23:42:08.6778988+00:00",
      "ArticleType": 0,
      "PublicationName": "sample string 9",
      "PublicationLogoUrl": "sample string 10",
      "PublicationSlug": "sample string 11",
      "UserName": "sample string 12",
      "UserAvatarUrl": "sample string 13",
      "CategoryName": "sample string 14",
      "CategorySlug": "sample string 15",
      "IsVideoArticle": true,
      "id": "sample string 17",
      "Environment": "sample string 18",
      "IsDeleted": true
    }
  ],
  "Next": "sample string 1",
  "Count": 1
}

application/xml, text/xml

Sample:
<SearchResultsOfArticleCardrGiFWSlV xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Search.Models">
  <Count>1</Count>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/GoViral.Data.Models.Client">
    <d2p1:ArticleCard>
      <Environment xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">sample string 18</Environment>
      <Id xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">sample string 17</Id>
      <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">true</IsDeleted>
      <d2p1:ArticleType>Image</d2p1:ArticleType>
      <d2p1:CategoryName>sample string 14</d2p1:CategoryName>
      <d2p1:CategorySlug>sample string 15</d2p1:CategorySlug>
      <d2p1:CollageImageUrl>sample string 7</d2p1:CollageImageUrl>
      <d2p1:Excerpt>sample string 2</d2p1:Excerpt>
      <d2p1:IsVideoArticle>true</d2p1:IsVideoArticle>
      <d2p1:MainImageUrl>sample string 4</d2p1:MainImageUrl>
      <d2p1:MediumThumbUrl>sample string 6</d2p1:MediumThumbUrl>
      <d2p1:Properties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Properties>
      <d2p1:PublicationLogoUrl>sample string 10</d2p1:PublicationLogoUrl>
      <d2p1:PublicationName>sample string 9</d2p1:PublicationName>
      <d2p1:PublicationSlug>sample string 11</d2p1:PublicationSlug>
      <d2p1:PublishedDate>2018-04-09T23:42:08.6778988+00:00</d2p1:PublishedDate>
      <d2p1:ThumbImageUrl>sample string 5</d2p1:ThumbImageUrl>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:Url>sample string 3</d2p1:Url>
      <d2p1:UserAvatarUrl>sample string 13</d2p1:UserAvatarUrl>
      <d2p1:UserName>sample string 12</d2p1:UserName>
    </d2p1:ArticleCard>
    <d2p1:ArticleCard>
      <Environment xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">sample string 18</Environment>
      <Id xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">sample string 17</Id>
      <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/GoViral.Data.DocumentDb">true</IsDeleted>
      <d2p1:ArticleType>Image</d2p1:ArticleType>
      <d2p1:CategoryName>sample string 14</d2p1:CategoryName>
      <d2p1:CategorySlug>sample string 15</d2p1:CategorySlug>
      <d2p1:CollageImageUrl>sample string 7</d2p1:CollageImageUrl>
      <d2p1:Excerpt>sample string 2</d2p1:Excerpt>
      <d2p1:IsVideoArticle>true</d2p1:IsVideoArticle>
      <d2p1:MainImageUrl>sample string 4</d2p1:MainImageUrl>
      <d2p1:MediumThumbUrl>sample string 6</d2p1:MediumThumbUrl>
      <d2p1:Properties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Properties>
      <d2p1:PublicationLogoUrl>sample string 10</d2p1:PublicationLogoUrl>
      <d2p1:PublicationName>sample string 9</d2p1:PublicationName>
      <d2p1:PublicationSlug>sample string 11</d2p1:PublicationSlug>
      <d2p1:PublishedDate>2018-04-09T23:42:08.6778988+00:00</d2p1:PublishedDate>
      <d2p1:ThumbImageUrl>sample string 5</d2p1:ThumbImageUrl>
      <d2p1:Title>sample string 1</d2p1:Title>
      <d2p1:Url>sample string 3</d2p1:Url>
      <d2p1:UserAvatarUrl>sample string 13</d2p1:UserAvatarUrl>
      <d2p1:UserName>sample string 12</d2p1:UserName>
    </d2p1:ArticleCard>
  </Items>
  <Next>sample string 1</Next>
</SearchResultsOfArticleCardrGiFWSlV>