- Author had a File in an Envato Bundle
- Attended a Community Meetup
- Author had a Free File of the Month
- Item was Featured
- Most Wanted Bounty Winner
- Microlancer Beta Tester
- Sold between 100 000 and 250 000 dollars
- Contributed a Tutorial to a Tuts+ Site
http://codecanyon.net/api/edge/webfactory/API_KEY/recent-sales.json http://themeforest.net/api/edge/webfactory/API_KEY/recent-sales.json
So how to tell which item was sold on which marketplace? Yes I could list all items and then match … but that seems silly …
- Envato Staff
- Reviewer
- Sold between 10 000 and 50 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 3-4 years
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Beta Tester
If I’m correct, this is not possible. Not 100% sure. 
- Author had a File in an Envato Bundle
- Attended a Community Meetup
- Author had a Free File of the Month
- Item was Featured
- Most Wanted Bounty Winner
- Microlancer Beta Tester
- Sold between 100 000 and 250 000 dollars
- Contributed a Tutorial to a Tuts+ Site
Philo01 said
If I’m correct, this is not possible. Not 100% sure.![]()
I’ll have to define a list of items and then cross-match.
API should return item ID not item name, either way, you have to have array/table with item ID, item name, and marketplace it belongs to. I think that API shouldn’t return that data, overall, it is very bad.
If anyone finds it useful (without database)
$json = file_get_contents('http://codecanyon.net/api/edge/username/key/recent-sales.json');
$json = json_decode($json, true);
$marketplaces = array(
'PHP Mobile Device Detect' => 'codecanyon',
'Google Did You Mean PHP Class' => 'codecanyon',
);
foreach($json['recent-sales'] as $key => $value)
{
$value['marketplace'] = $marketplaces[$value['item']];
echo "{$value['item']} ({$value['marketplace']})", '<br />';
}
PHP Mobile Device Detect (codecanyon) Google Did You Mean PHP Class (codecanyon) PHP Mobile Device Detect (codecanyon) Google Did You Mean PHP Class (codecanyon) PHP Mobile Device Detect (codecanyon)
