我已经通过Linkedin API收集了json。 节点:
[GetCompanyPageStatistics][followStatistics][regions]
存储有关关注者本地化的信息,例如:
"regions": {
"_total": 9,
"values": [
{
"entryKey": "pl-8172",
"entryValue": "18"
},
{
"entryKey": "pl-8355",
"entryValue": "2"
},
{
"entryKey": "pl-8218",
"entryValue": "1"
},
{
"entryKey": "de-4944",
"entryValue": "1"
}
]
}
给出的值由国家代码和地区代码组成。有没有办法解码区域? Linkedin API文档不是很有帮助:
https://developer.linkedin.com/docs/reference/geography-codes
(波兰只有eu.pl
,而没有有关区域特定代码的任何信息)
答案 0 :(得分:0)
好像有一个v2 api来获取该数据: https://docs.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/locations/regions
例如,击中https://api.linkedin.com/v2/regions/8172?oauth2_access_token=XXX
可以使您:
{
"country": "urn:li:country:pl",
"name": {
"locale": {
"country": "US",
"language": "en"
},
"value": "Warsaw, Masovian District, Poland"
},
"id": 8172,
"$URN": "urn:li:region:8172",
"states": []
}