GET/api/v1/references/sources

Get Sources

This endpoint returns a collection of websites/sources from which the data is obtained. It also has the details such as code, and channel type
GET/api/v1/references/sources

Parameter Details

NameInTypeRequiredDescription
pagequeryintegerOptionalThe page number to retrieve.
sizequeryintegerOptionalThe number of items to be displayed per page.

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestRequest data failed validation(s)None
401UnauthorizedAuthentication Failed!None
429Too Many RequestsToo Many Requests.None
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X GET /api/v1/references/sources \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Example responses

200 Response
{
  "error": false,
  "sourceResp": [
    {
      "_id": "64ae65cfd06e77f95bfefdec",
      "source": "Gulf Air",
      "code": "117",
      "status": 1,
      "channel": "Direct",
      "vertical": "flightrates",
      "isDeleted": false,
      "isActiveStatus": true,
      "userAirlineCode": 13
    }
  ],
  "totalData": 10282,
  "totalPages": 10282,
  "page": 1,
  "size": 1
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.