POST api/Keyword/GetKeywordsPositions

Get information about the positions of all keywords for the project

Request Information

URI Parameters

None.

Body Parameters

KeywordsPositionsParam
NameDescriptionTypeAdditional information
ProjectId

Project identifier

integer

None.

StartDate

Period start date (included)

date

None.

EndDate

Period end date (included)

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "StartDate": "2018-05-21T05:45:33.7306025+03:00",
  "EndDate": "2018-05-21T05:45:33.7315834+03:00"
}

application/xml, text/xml

Sample:
<KeywordsPositionsParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDEV.RookeeWebApi.Models.InputData">
  <EndDate>2018-05-21T05:45:33.7315834+03:00</EndDate>
  <ProjectId>1</ProjectId>
  <StartDate>2018-05-21T05:45:33.7306025+03:00</StartDate>
</KeywordsPositionsParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

KeywordsPositionsResponse
NameDescriptionTypeAdditional information
ProjectId

Project identifier

integer

None.

PositionsInfo

Info about adverts positions

Collection of KeywordPositionsInfo

None.

StatusCode

Response status code

ApiStatusCode

None.

ErrorMsg

Error text if status code not Ok

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "PositionsInfo": [
    {
      "Id": 1,
      "Title": "sample string 2",
      "Positions": [
        {
          "Date": "2018-05-21T05:45:33.7985811+03:00",
          "Position": 2
        },
        {
          "Date": "2018-05-21T05:45:33.7985811+03:00",
          "Position": 2
        }
      ]
    },
    {
      "Id": 1,
      "Title": "sample string 2",
      "Positions": [
        {
          "Date": "2018-05-21T05:45:33.7985811+03:00",
          "Position": 2
        },
        {
          "Date": "2018-05-21T05:45:33.7985811+03:00",
          "Position": 2
        }
      ]
    }
  ],
  "StatusCode": 0,
  "ErrorMsg": "sample string 2"
}