Developer guides
Short example for Facebook Extended API
You send queries on GraphQL language and return appropriate data in JSON format. To start working you need the access token that we provide on a basic or individual plan.
Example:

to get info about post with ID=10156726192517217
(https://www.facebook.com/10156726192517217) with additional info on the post's owner you need to make the next request:

GET
https://api.singularex.com/facebook/post/10156726192517217?fields=id,text,created_time,reaction_count,share_count,owner{id,username,profile_thumb_url}&access_token=<your_access_token>
RESPONSE:
{
    "error": {},
    "data": {
        "id": "10156726192517217",
        "text": "Including Wikileaks co-founder court appearance and a big week for football fans.",
        "created_time": "2019-05-27T09:53:31",
        "reaction_count": 315,
        "share_count": 46,
        "owner": {
            "id": "228735667216",
            "username": "bbcnews",
            "profile_thumb_url": "https://z-p3-scontent-arn2-2.xx.fbcdn.net/v/t1.0-1/p50x50/23435245_10155306669637217_5362481967672932664_n.png?_nc_cat=1&_nc_ht=z-p3-scontent-arn2-2.xx&oh=ede67c883a81c93938185f3a96c8f716&oe=5D627DE4"
        }
    },
    "status": "ok"
}
Short example for Instagram Analytics API
You send queries on GraphQL language and return appropriate data in JSON format. To start working you need the access token that we provide on
a basic or individual plan.
Example:

to get info about spacex`s media (https://www.instagram.com/spacex/) you need to make the next request:

GET
https://api.singularex.com/instagram/user/spacex?fields=id,username,media.first(1){edges{node{shortcode,created_time,timestamp,media_type,caption,like_count,comment_count}}}&access_token=<your_access_token>
RESPONSE:
{
    "error": {},
    "data": {
        "id": "20311520",
        "username": "spacex",
        "media": {
            "edges": [
                {
                    "node": {
                        "id": "2050945158103931517",
                        "timestamp": 1558711736,
                        "last_update": 1558973916,
                        "is_being_updated": false,
                        "shortcode": "Bx2a8FCl5p9",
                        "created_time": "2019-05-24T15:28:56",
                        "media_type": "GraphSidecar",
                        "caption": [
                            "Falcon 9 launches 60 Starlink satellites to orbit \u2013 targeting up to 6 Starlink launches this year and will accelerate our cadence next year to put ~720 satellites in orbit for continuous coverage of most populated areas on Earth"
                        ],
                        "like_count": 363806,
                        "comment_count": 1835
                    }
                }
            ]
        }
    },
    "status": "ok"
}
Short example for Distance Matrix API
The request and response format of Data 365 Distance Matrix API is very similar to Google Distance Matrix API and the migration is easy.
Example:
to get the distance and duration between two locations you need to make the next request:

GET
https://geo.data365.co/distancematrix?origins=51.4822656,-0.1933769&destinations=51.4994794,-0.1269979&key=<your_access_token>
RESPONSE:
{
    "destination_addresses": [
        "Westminster Abbey, Westminster, London SW1P 3PA, UK"
    ],
    "origin_addresses": [
        "Chapel, Fulham, London SW6 1BA, UK"
    ],
    "rows": [
        {
            "elements": [
                {
                    "distance": {
                        "text":"4.7 miles",
                        "value":7563.898
                    },
                    "duration":{
                        "text":"31 min",
                        "value":1860.0
                    },
                    "duration_in_traffic": {
                        "text":"31 min",
                        "value":1860.0
                    },
                    "status":"OK"
                }
            ]
        }
    ],
    "status":"OK",
}
Contact us and get a free trial period
Need help? Don't hesitate to ask us something
Fill in this form and we'll respond to you
You agree with our Terms and Conditions
Data365.co © 2019. All rights reserved.