Data Feeds
List data feeds
Returns a paginated list of the project’s data feeds, most recently updated first. Rows omit each transformation’s script_content and each source’s config; getting a single data feed returns them. Requires the read:project and read:data_feed token scopes.
GET
/
projects
/
{project_id}
/
data_feeds
List data feeds
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "datafd_aBcD1234eFgH5678",
"name": "Daily Production Data",
"description": "Imports daily production metrics",
"headers_row_number": 1,
"setup_error": "<string>",
"not_ready_message": null,
"schema_fields": [
{
"name": "site_name",
"value_type": "string"
}
],
"event_types": [
{
"id": 123,
"name": "<string>",
"slug": "<string>"
}
],
"transformations": [
{
"id": "tfn_aBcD1234eFgH5678",
"event_type_id": "et_aBcD1234eFgH5678",
"event_type_name": "<string>",
"script_status": "generating",
"script_content": "<string>"
}
],
"sources": [
{
"id": "dsrc_aBcD1234eFgH5678",
"name": "<string>",
"source_type": "endpoint",
"config": {}
}
],
"ui_url": "https://app.gomangrove.com/nexus/prj_aBcD1234eFgH5678/data-inputs/data-feeds/datafd_aBcD1234eFgH5678",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"info": {
"items": 2,
"page_size": 20,
"total_items": 2,
"current_page": 1,
"next_page": 123,
"previous_page": 123,
"total_pages": 1,
"sort": [
{
"field": "<string>",
"direction": "asc"
}
],
"filter": [
{
"field": "<string>",
"comparator": "eq",
"value": "<unknown>"
}
],
"fields": [
"<string>"
]
}
}{
"errors": [
{
"message": "expected :page >= 1; got \"0\""
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "Record not found"
}
]
}{
"errors": [
{
"message": "Project does not have Nexus configuration"
}
]
}Authorizations
Path Parameters
The project's friendly ID (e.g. prj_aBcD1234eFgH5678).
Query Parameters
The page to return, starting at 1. A value below 1 or a non-numeric value returns 400.
Required range:
x >= 1Rows per page, from 1 to 200. A value below 1 counts as 1 and a value above 200 as 200; a non-numeric value uses the default.
Required range:
1 <= x <= 200⌘I
List data feeds
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/data_feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "datafd_aBcD1234eFgH5678",
"name": "Daily Production Data",
"description": "Imports daily production metrics",
"headers_row_number": 1,
"setup_error": "<string>",
"not_ready_message": null,
"schema_fields": [
{
"name": "site_name",
"value_type": "string"
}
],
"event_types": [
{
"id": 123,
"name": "<string>",
"slug": "<string>"
}
],
"transformations": [
{
"id": "tfn_aBcD1234eFgH5678",
"event_type_id": "et_aBcD1234eFgH5678",
"event_type_name": "<string>",
"script_status": "generating",
"script_content": "<string>"
}
],
"sources": [
{
"id": "dsrc_aBcD1234eFgH5678",
"name": "<string>",
"source_type": "endpoint",
"config": {}
}
],
"ui_url": "https://app.gomangrove.com/nexus/prj_aBcD1234eFgH5678/data-inputs/data-feeds/datafd_aBcD1234eFgH5678",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"info": {
"items": 2,
"page_size": 20,
"total_items": 2,
"current_page": 1,
"next_page": 123,
"previous_page": 123,
"total_pages": 1,
"sort": [
{
"field": "<string>",
"direction": "asc"
}
],
"filter": [
{
"field": "<string>",
"comparator": "eq",
"value": "<unknown>"
}
],
"fields": [
"<string>"
]
}
}{
"errors": [
{
"message": "expected :page >= 1; got \"0\""
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "Record not found"
}
]
}{
"errors": [
{
"message": "Project does not have Nexus configuration"
}
]
}