You can use apacite
like here:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{Statista2017,
author = {Statista},
title = {{Global mobile data traffic from 2016 to 2021 (in exabytes per month)}},
url = {https://www.statista.com/statistics/271405/global-mobile-data-traffic-forecast/},
year = {2017},
}
@article{Dong2015,
abstract = {abstract},
author = {Dong, Wenqiang and Wang, Fulai and Huang, Yu and
Xu, Guangluan and Guo, Zhi and Fu, Xingyu and Fu, Kun},
doi = {10.1016/j.cag.2014.10.001},
file = {fileaddress},
isbn = {1880148536},
issn = {00978493},
journal = {Computers and Graphics (Pergamon)},
keywords = {Force-directed,Graph drawing,Graph visualization,PageRank},
pages = {24--33},
publisher = {Elsevier},
title = {{An advanced pre-positioning method for the force-directed graph visualization based on pagerank algorithm}},
url = {http://dx.doi.org/10.1016/j.cag.2014.10.001},
volume = {47},
year = {2015},
}
\end{filecontents*}
\documentclass{article}
%\usepackage[square,sort,comma,numbers]{natbib}
\usepackage[%
% numberedbib,
natbibapa
]{apacite}
\usepackage[hyphens]{url}
\begin{document}
As said \citet{Dong2015} and \citet{Statista2017}, this is a test.
\bibliographystyle{apacite}
\bibliography{\jobname}
\end{document}
with the result:

or you can use biblatex
and biber
like here:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{Statista2017,
author = {Statista},
title = {{Global mobile data traffic from 2016 to 2021 (in exabytes per month)}},
url = {https://www.statista.com/statistics/271405/global-mobile-data-traffic-forecast/},
year = {2017},
}
@article{Dong2015,
abstract = {abstract},
author = {Dong, Wenqiang and Wang, Fulai and Huang, Yu and
Xu, Guangluan and Guo, Zhi and Fu, Xingyu and Fu, Kun},
doi = {10.1016/j.cag.2014.10.001},
file = {fileaddress},
isbn = {1880148536},
issn = {00978493},
journal = {Computers and Graphics (Pergamon)},
keywords = {Force-directed,Graph drawing,Graph visualization,PageRank},
pages = {24--33},
publisher = {Elsevier},
title = {{An advanced pre-positioning method for the force-directed graph visualization based on pagerank algorithm}},
url = {http://dx.doi.org/10.1016/j.cag.2014.10.001},
volume = {47},
year = {2015},
}
\end{filecontents*}
\documentclass{article}
\usepackage[%
backend=biber,
style=apa,
natbib=true
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
As said \citet{Dong2015} and \citet{Statista2017}, this is a test.
\printbibliography
\end{document}
with the result:

Best Answer
The
apalike
bibliography style has been around more or less unchanged since 1988. Back then, web pages didn't exist yet -- at least not as items that might be cited in bibliographies. The entry type@misc
thus doesn't recognize, and hence blissfully ignores, fields namedurl
,urldate
, andlastchecked
.A workaround involves these steps:
Lastchecked
tonote
,note
field fromNov 01, 2013
toLast accessed on Nov 01, 2013
, and (optionally)howpublished
field in a\url{...}
wrapper.Separately, you should also encase the contents of the
author
andtitle
fields in pairs of curly braces. This prevents BibTeX from (a) misinterpreting the author as a person with first nameEditor
and last nameCNN
and (b) lowercasing the wordsSupreme
,Court
, andEmanuel
in thetitle
field.Aside: If you need to cite a lot of web pages, you may be better off in the long run choosing a bibliography style which does know what to do with fields named
url
,urldate
, andlastchecked
.Here's an MWE that implements these ideas. Note the changes I applied to the following fields:
author
,title
,howpublished
, andurldate
(renamed tonote
).