36 lines
753 B
JavaScript
36 lines
753 B
JavaScript
|
|
export default {
|
||
|
|
id: "google-pse",
|
||
|
|
alias: "gpse",
|
||
|
|
display: {
|
||
|
|
name: "Google PSE",
|
||
|
|
icon: "search",
|
||
|
|
color: "#4285F4",
|
||
|
|
textIcon: "GP",
|
||
|
|
website: "https://programmablesearchengine.google.com",
|
||
|
|
notice: {
|
||
|
|
apiKeyUrl: "https://programmablesearchengine.google.com/controlpanel/create"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
category: "apikey",
|
||
|
|
authType: "apikey",
|
||
|
|
serviceKinds: [
|
||
|
|
"webSearch"
|
||
|
|
],
|
||
|
|
searchConfig: {
|
||
|
|
baseUrl: "https://www.googleapis.com/customsearch/v1",
|
||
|
|
method: "GET",
|
||
|
|
authType: "apikey",
|
||
|
|
authHeader: "key",
|
||
|
|
costPerQuery: 0.005,
|
||
|
|
freeMonthlyQuota: 3000,
|
||
|
|
searchTypes: [
|
||
|
|
"web",
|
||
|
|
"news"
|
||
|
|
],
|
||
|
|
defaultMaxResults: 5,
|
||
|
|
maxMaxResults: 10,
|
||
|
|
timeoutMs: 10000,
|
||
|
|
cacheTTLMs: 300000
|
||
|
|
}
|
||
|
|
};
|