GET https://api.flattr.com/rest/v2/users/:username/things
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?",
"flattred": false
}
not_found (404 Not Found) - The requested user could not be foundAuthorization needed
GET https://api.flattr.com/rest/v2/user/things
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
[
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?",
"flattred": false
}
]
unauthorized (401 Unauthorized) - You are unauthorized to access the resource (no token?)GET https://api.flattr.com/rest/v2/things/:id
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?"
}
not_found (404 Not Found) - the thing can not be foundStatus: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?",
"flattred": false
}
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?",
"last_flattr_at": 1320262599,
"updated_at": 0,
"flattred": false
}
,).GET https://api.flattr.com/rest/v2/things/:id,:id
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
[
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?"
},
{
"type": "thing",
"resource": "https://api.flattr.dev/rest/v2/things/450287",
"link": "https://flattr.dev/thing/450287",
"id": 450287,
"url": "https://github.com/simon/flattr",
"language": "en_GB",
"category": "software",
"owner": {
"type": "user",
"resource": "https://api.flattr.dev/rest/v2/users/smgt",
"link": "https://flattr.dev/profile/smgt",
"username": "smgt"
},
"hidden": 0,
"image": "",
"created_at": 1323614098,
"tags": [
"gem",
"ruby",
"programming",
"opensource",
"flattr",
"api"
],
"flattrs": 7,
"description": "A ruby gem wrapping Flattrs API.",
"title": "Ruby gem wrapping Flattrs API"
}
]
not_found (404 Not Found) - The requested thing(s) could not be found"GET https://api.flattr.com/rest/v2/things/lookup/?url=:url
Status: 302 Found
Content-type: application/json;charset=utf-8
Location: https://api.flattr.com/rest/v2/things/423405
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"message": "found",
"location": "https://api.flattr.com/rest/v2/things/423405"
}
Status: 404 Not Found
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"message": "not_found",
"description": "No thing was found"
}
The lookup resource can now lookup autosubmit URLs, you will need to url
encode the data you pass into the url parameter. For more information
check out the auto submit documentation.
GET https://api.flattr.com/rest/v2/things/lookup/?url=http://flattr.com/submit/auto?url=http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/&user_id=flattr
Status: 302 Found
Content-type: application/json;charset=utf-8
Location: https://api.flattr.com/rest/v2/things/423405
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"message": "found",
"location": "https://api.flattr.com/rest/v2/things/423405"
}
validation (400 Bad Request) - Owner mismatch. Current thing owned by other account.Authorization needed
Scope required: thing
Parameters
POST https://api.flattr.com/rest/v2/things
{
"url": "http://developers.flattr.net"
}
Status: 201 Created
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"id": 431547,
"link": "https://api.flattr.com/rest/v2/things/431547",
"message": "ok",
"description": "Thing was created successfully"
}
validation (400 Bad Request) - The information you submitted did not validateexample error when an invalid url is submitted
Status: 400 Bad Request
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"error": "validation",
"error_description": "Invalid url",
"error_uri": "http://developers.flattr.net/api"
}
Currently we are having problems with the PATCH request.
To work around this problem you should do a POST request instead of an
PATCH and include the parameter _method with with the value
patch.
Authorization needed
Scope required: thing
Parameters
PATCH https://api.flattr.com/rest/v2/things/:id
{
"title": "API v2 documentation"
}
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"message": "ok",
"description": "Thing was updated correctly"
}
validation (400 Bad Request) - The information you submitted did not validateAuthorization needed
Scope required: thing
DELETE https://api.flattr.com/rest/v2/things/:id
Status: 204 No Content
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
forbidden (403 Forbidden) - Cannot delete the thing. Maby it's not you thing or the scope thing is missing., (comma).trend, flattrs (all time),
flattrs_month, flattrs_week, flattrs_day or
relevance (default)Tags support a syntax to do advanced tag lookups. It supports | ( OR
), ! ( NOT ) and & ( AND ).
Example: Search all things containing the tag game or games but not
software would yield game | games ! software.
Example: Search all things containing the tags photo and flickr but
not any illustrations. photo & flickr ! illustrations
Remember to URL encode the tags or else you might be getting problems
with the ampersand &. For example photos & travel & iphone !flickr
would convert to photos+%26+travel+%26+iphone+!flickr.
GET https://api.flattr.com/rest/v2/things/search
Search after flattr in the software category with the ruby tag
GET https://api.flattr.com/rest/v2/things/search?query=flattr&category=software&tags=ruby
Status: 200 OK
Content-type: application/json;charset=utf-8
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"total_items": 1,
"items": 1,
"page": 1,
"things": [
{
"type": "thing",
"resource": "https://api.flattr.com/rest/v2/things/423405",
"link": "https://flattr.com/thing/423405",
"id": 423405,
"url": "http://blog.flattr.net/2011/10/api-v2-beta-out-whats-changed/",
"language": "en_GB",
"category": "text",
"owner": {
"type": "user",
"resource": "https://api.flattr.com/rest/v2/users/flattr",
"link": "https://flattr.com/profile/flattr",
"username": "flattr"
},
"hidden": false,
"image": "http://flattr.com/thing/image/4/2/3/4/0/5/medium.png",
"created_at": 1319704532,
"tags": [
"api"
],
"flattrs": 8,
"description": "We have been working hard to deliver a great experience for developers and tried to build a good foundation for easily add new features. The API will remain in beta for a while for us to kill quirks and refine some of the resources, this means there might be big changes without notice for ...",
"title": "API v2 beta out - what's changed?"
}
]
}