links.code

The HTTP status code for the original URL. This is the HTTP status code received by DataSift when we tried to retrieve the original URL. When DataSift needs to resolve shortened links, it will be the HTTP status code for the last resolved link. Codes other than 200 (OK) do not mean that the resource the original URL points to is unavailable, they only mean that it might had been unavailable when DataSift tried to access it.

Examples

  1. Filter for Tweets that contain "love" and include a link to a resource with an HTTP status code 200:

    twitter.text contains "love" and links.code == 200

  2. Filter for Tweets that contain "politics" and include a link to a resource with a "not-failed" HTTP status code:

    twitter.text contains "politics" and not links.code in [400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 500, 501, 502, 503, 504, 505]

Resource information

Target service: Augmentation Target: Links

Target object: Links: General

Type: array(int)

Array: Yes

Always exists: Yes