FANDOM


OVERVIEW Edit

The recognition system public API provides access to recognition data for Grey Goo players, as well as information pertaining to individual recognition ranks, achievements, and rewards. The API allows anyone to pull recognition data from the coordinator and curate it with their own front-ends and/or websites. The leaderboards have a similar public interface.

FORMATS Edit

The base URL for all API requests is: http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/
All data received from the coordinator is in JSON format.

COMMANDS Edit

GET /com.petroglyph.coord.recognition.get_achievement_difficulty_scores/
Gets an array of possible scores that can be rewarded for completing achievements.

EXAMPLE REQUEST 1 Edit

curl -k -i -X GET -H "Accept:application/json"
"http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.recognition.

EXAMPLE RESPONSE 1 Edit

{
"recognitionGetAchievementDifficultyScores": [
{
"difficultyId": 0,
"score": 5
},
...
]
GET /com.petroglyph.coord.recognition.get_achievement_rewards/
Gets an array of awards that can be unlocked by players through the recognition system.

EXAMPLE REQUEST 2 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.recognition.get_achievement_rewards/"

EXAMPLE RESPONSE 2 Edit

{
"recognitionGetAchievementRewards": [
{
"rewardId": 62, "autoGrant": false, "rewardData": "{
\"type\": \"portrait\",
\"paths\": [
\"RecognitionPortraits_Generic_0020.png\"
],
\"name\": \"TEXT_RECOGNITION_REWARD_UNIT_PORTRAIT_20_NAME\",
\"description\": \"TEXT_RECOGNITION_REWARD_UNIT_PORTRAIT_20_DESCRIPTION\"
}"
},
]
...
}
GET /com.petroglyph.coord.recognition.get_ranks/
Gets an array of ranks that can be achieved by the player in the recognition system.

EXAMPLE REQUEST 3 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.recognition.get_ranks/"

EXAMPLE RESPONSE 3 Edit

{
"recognitionGetRanks": [
{
"rank": 1,
"minScore": 0,
"rankData": "{
\"name\": \"TEXT_RECOGNITION_RANK_1\",
\"icon\": \"RecognitionRanks_1.png\"
}"
},
...
]
}
GET /com.petroglyph.coord.recognition.get_achievements/
Gets an array of achievements that can be unlocked in the recognition system.

EXAMPLE REQUEST 4 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.recognition.get_achievements/"

EXAMPLE RESPONSE 4 Edit

{
"recognitionGetAchievements": [
{
"achievementId": 37, "achievementData": "{
\"name\": \"TEXT_RECOGNITION_ACHIEVEMENT_37_NAME\",
\"description\": \"TEXT_RECOGNITION_ACHIEVEMENT_37_DESCRIPTION\",
\"displayOrder\": 37
}"
},
...
]
}
GET /com.petroglyph.coord.recognition.get_achievement_goals/
Gets the goals for all achievement, where stages are ordered by ascending goal values.

EXAMPLE REQUEST 5 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.recognition.get_achievements/"

EXAMPLE RESPONSE 5 Edit

{
"recognitionGetAchievementGoals": [
{
"achievementId": 0,
"goalValue": 1,
"difficultyId": 0
},
{
"achievementId": 0,
"goalValue": 5,
"difficultyId": 1
},
{
"achievementId": 0,
"goalValue": 10,
"difficultyId": 2
},
...
]
}
GET /com.petroglyph.coord.recognition.query_user_data/
Retrieves recognition data for the specified user.

PARAMETERS Edit

Name

Required?

Type

Description

steamID

Yes

int64

User's Steam ID.

includeAchievementProgressAndRewards

No

boolean

Whether the returned data should include the user's achievement progress and rewards. Default is false.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.