[Article Search API] Data inconsistency
Closed this issue · 1 comments
fische commented
Hi !
I was trying to access to the Article Search API but when I tried to parse the response, I encountered some inconsistency in the data :
{
"response": {
"docs": [
{
"web_url": "http://www.nytimes.com/2016/06/15/t-magazine/fashion/duro-olowu-dress-ritual.html",
"byline": {
"person": [
{
"organization": "",
"role": "reported",
"firstname": "Aimee",
"rank": 1,
"lastname": "FARRELL"
}
],
"original": "By AIMEE FARRELL"
},
"type_of_material": "News",
"_id": "5761930938f0d81a0f68f3e0",
....
},
{
"web_url": "http://www.nytimes.com/slideshow/2016/07/10/travel/exploring-the-alsace-region-of-europe.html",
"byline": [],
"type_of_material": "Slideshow",
"_id": "577d07ea38f0d849682ddd8d",
....
},
....
]
}
}
As you can see, in the first article, the byline
field is an object, while it's an array in the second one. Is that an actual issue ? Or is it done on purpose ?
nyt-hughmandeville commented
Looks like byline is consistent now.
articlesearch.json?sort=newest&begin_date=20160605&end_date=20160605&fl=byline&page=3