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"
}
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