-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adoption Report #5
Comments
QueryCREATE TEMPORARY FUNCTION GET_ADOPTION(
records ARRAY<STRUCT<
client STRING,
origins INT64
>>
) RETURNS STRUCT<
desktop INT64,
mobile INT64
> LANGUAGE js AS '''
return Object.fromEntries(records.map(({client, origins}) => {
return [client, origins];
}));
''';
SELECT
date,
app AS technology,
rank,
geo,
GET_ADOPTION(ARRAY_AGG(STRUCT(
client,
origins
))) AS adoption
FROM
`httparchive.core_web_vitals.technologies`
WHERE
date = '2023-07-01'
GROUP BY
date,
app,
rank,
geo Example record{
"date": "2023-07-01",
"technology": "WordPress",
"rank": "ALL",
"geo": "ALL",
"adoption": {
"desktop": "2040628",
"mobile": "3422903"
}
} |
@rviscomi, should we have any |
Maybe just:
@sarahfossheim WDYT? |
Example of how to consume this endpoint
|
Per our chat, try reformatting in the Python to this structure:
|
@rviscomi @sarahfossheim, all the changes discussed are already deployed. New URL Documentation: https://github.com/HTTPArchive/tech-report-apis#get-adoption |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you describe the origin/source of this data?
The goal is to create a script to query this data from BQ transform and save it in Firestore.
The text was updated successfully, but these errors were encountered: