Custom Integration via HTTP
  • 1 Minute to read
  • Dark
    Light

Custom Integration via HTTP

  • Dark
    Light

Dataddo provides a standard HTTP-based REST API that can output data in either JSON or CSV.

The connection string representing either a cURL or HTTP call is available in the connection guide. The API method is fairly simple as each Integration flow has a distinct ID parameter supplied in the URL.

An authorization token is auto-generated.

curl --header ""Authorization: Bearer {TOKEN}""   
https://api.dataddo.com/v1.0/get/{ID}?type=json

When a JSON format is requested, the data is provided in the attribute data as an array of arrays. Besides the dataset itself, dataset header information is provided in attribute header and data types are provided in attribute type.

{  
    ""data"": \[  
        \[""(direct) \\/ (none)"",42,71\],  
        \[""www.dataddo.com \\/ referral"",5,15\],  
        \[""google \\/ organic"",124,144\],  
        \[""rosemarie.top \\/ referral"",1,1\]  
    \],  
    ""header"":\[  
        ""ga:sourcemedium"",  
        ""ga:sessions"",  
        ""ga:pageviews""  
     \],  
     ""type"":\[  
        ""string"",  
        ""integer"",  
        ""integer""  
     \],  
    ""columnID"":\[  
        ""5cc31fe2db15e75a161eaac2"",  
        ""5cc31fe2ab15d75c171eaac3"",  
        ""5cd31f32da15d75c163eaae4""  
    \],  
    ""totalRows"":4  
}

Was this article helpful?

What's Next