Public API

Public API can be used by anyone and doesn't require authentication. Number of requests is limited to 300 per 5 minutes per IP. If you're building an app on top of it and you need more quota, please give us a note by emailing to l2c1x1fc@gmail.com. Please provide some basic info about your project in your email.


Online Count


Method:	GET
URL:	/services/misc/online-count
Query Params:
	days: integer, values 0/1/7, default: 0

Example: GET /services/misc/online-count?



Active Players List


Method:	GET
URL:	/services/misc/list-active-players
Query Params:
	days: integer, values 0/1/7, default: 0

Example: GET /services/misc/list-active-players?



Statistics


Method:	GET
URL:	/services/misc/server-stats

Example: GET /services/misc/server-stats



Server Status


Method:	GET
URL:	/services/misc/pts-status

Example: GET /services/misc/pts-status



Online History


Method:	GET
URL:	/services/analytics/online-history
Query Params:
	timeframe: integer, values 3600/86400, default: 3600
	days: integer, range [1,730]
	from: date, format yyyy-mm-dd, default: to - days
	to: date, format yyyy-mm-dd, default: today

Example: GET /services/analytics/online-history?&

Market Volume


Method:	GET
URL:	/services/analytics/worth-history
Query Params:
	timeframe: integer, values 3600/86400, default: 3600
	days: integer, range [1,730]
	from: date, format yyyy-mm-dd, default: to - days
	to: date, format yyyy-mm-dd, default: today

Example: GET /services/analytics/worth-history?&

Level Distribution


Method:	GET
URL:	/services/analytics/level-histogram

Example: GET /services/analytics/level-histogram

Class Distribution


Method:	GET
URL:	/services/analytics/class-histogram
Query Params:
	level_threshold: integer, range [1,20], default: 10

Example: GET /services/analytics/class-histogram


© 2016 - 2017 L2C1x1. All rights reserved.