Neticle Wiki

Megmutatjuk mit gondol a Web!

Felhasználói eszközök

Eszközök a webhelyen


content_api_v1.0

Content API v1.0

Description

An API to get Neticle Technologies' collected textunits.

Version History

Version Description
v1.0.0 Initial public version, created by Robert Horvath on 2016.05.23.
v1.0.1 Extended response JSON with source url, created by Robert Horvath on 2016.05.31.

Base URL

https://contentapi.neticle.hu/client/<client_id>/profile/<profile_id>/textunits

argument parameter description
client_id unique id of the client (required)
profile_id unique id of the client's profile (required)

Parameters

http argument parameter description
keywords array of strings, containing keyword(s) monitored by Neticle (required)
aspects array of strings, containing aspect(s) monitored by Neticle (required)
start starting time of the query in unix time format (required)
end ending time of the query in unix time format (required)

- Ending time must be greater than starting time
- Difference between starting and ending time must the less than 24 hours (86400 sec)!

Sample call

https://contentapi.neticle.hu/client/1/profile/1/textunits?aspects=[]&keywords=["neticle","startup"]&start=1463015459&end=1463101859

Autentication

There must be a key-value pair in the call header:

key value
Authentication token given by Neticle

Sample response

{
  "total": 2,
  "hits": [
    {
      "timestamp": 1462183680,
      "polarity_index": 0,
      "content_type": 110,
      "author": "Gipsz Jakab",
      "domain": "https://www.facebook.com",
      "user_labels": "startup;",
      "text": "<html><body><h1>Neticle<h1><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ac nunc eleifend, maximus nunc eget, congue magna. Quisque sollicitudin vel enim efficitur lobortis.</p></body></html>",
      "url": https://www.facebook.com/permalink.php?id=11111111111&v=wall&story_fbid=000000000000000,
      "email": [
        "gipsz.jakab@gmail.com"
      ],
      "telephone": [],
      "address": [],
      "company": []
    },
    {
      "timestamp": 1462184400,
      "polarity_index": 0,
      "content_type": 110,
      "author": "xy",
      "domain": "https://www.facebook.com",
      "user_labels": "",
      "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ac nunc eleifend, maximus nunc eget, congue magna. Quisque sollicitudin vel enim efficitur lobortis.",
      "url": https://www.facebook.com/permalink.php?id=11111111111&v=wall&story_fbid=000000000000000,
      "email": [],
      "telephone": [
		"+36701234567"
	  ],
      "address": [],
      "company": []
    }
  ]
}
content_api_v1.0.txt · Utolsó módosítás: 2016/05/31 10:45 szerkesztette: horvathrobert