Endpoints
Extract
Endpoints
Extract
POST
/
extract
curl --request POST \
--url https://gateway.allstream.ai/api/openapi/v1/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"url": "https://www.google.com/maps/place/?q=place_id:ChIJY03cf5lXwokRH7B0eMiTEh0",
"type": "google-maps",
"timeout": 25000,
"params": {
"hl": "en",
"gl": "us"
}
}'{
"requestId": "27043ee2-e26e-43c1-a6b8-2648b0bb1ac5",
"code": 0,
"errorCode": 200,
"message": "Success",
"timestamp": 1732175287036,
"data": {
"data": {
"about": "[]",
"cid": "16439372504468095453",
"ctx_city": "Gary",
"ctx_country": "US",
"ctx_state": "IN",
"google_address": "86 North Bridge St, Gary, IN 46404, United States",
"google_category": [
"General contractor"
],
"google_city": "Gary",
"google_claimed": false,
"google_company_name": "Danny's Construction Co",
"google_country_name": "United States",
"google_description": "",
"google_hours": [],
"google_image": null,
"google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJ--A6kdfCEYgR3QElezFiJOQ",
"google_menu_and_appointment_urls": [],
"google_orders_urls": [],
"google_permanently_closed": false,
"google_phone": "+1 219-883-8821",
"google_place_id": "ChIJ--A6kdfCEYgR3QElezFiJOQ",
"google_price_range": null,
"google_price_range_dollar_sign": null,
"google_rating": 5,
"google_reviews_count": 1,
"google_reviews_url": "https://search.google.com/local/reviews?placeid=ChIJ--A6kdfCEYgR3QElezFiJOQ&q=Danny's+Construction+Co&authuser=0&hl=en&gl=HK",
"google_state_abbr": "IN",
"google_state_name": "Indiana",
"google_street_address": "86 North Bridge St",
"google_temporarily_closed": false,
"google_website": "https://www.dannysconstruction.com/",
"google_zip_code": "46404",
"latitude": 41.610614999999996,
"longitude": -87.37462699999999,
"optional_popular_times": null,
"optional_questions_and_answers": null,
"optional_review_summary": null
},
"taskId": "2",
"status": "completed",
"params": {
"url": "https://www.google.com/maps/place/Danny's+Construction+Co/@41.610615,-87.374627,17z/data=!3m1!4b1!4m6!3m5!1s0x8811c2d7913ae0fb:0xe42462317b2501dd!8m2!3d41.610615!4d-87.374627!16s%2Fg%2F1wb8v8_f?hl=en&entry=ttu&g_ep=EgoyMDI0MTAyOS4wIKXMDSoASAFQAw%3D%3D",
"type": "google-maps",
"timeout": 25000
},
"stacktrace": ""
}
}Authorizations
Body
application/json
URL
Website type Optional values: amazon/google-maps/google-search/scrape
Timeout time default 25000ms
Parameters to be appended to the url
Response
200 - application/json
Success
Unique identifier for the request
Response code indicating the status of the request
ISO 8601 formatted timestamp of when the request was processed
Response data object, structure defined in the referenced schema
The main data object containing the response details.
A unique identifier for the task.
The current status of the task, which can be 'completed', 'failed', 'delayed', 'active', 'waiting', 'waiting-children', or 'unknown'.
An object containing the parameters used for the task.
A stack trace for debugging purposes, which will be null if no error occurred.
Object containing error code details, if applicable
curl --request POST \
--url https://gateway.allstream.ai/api/openapi/v1/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"url": "https://www.google.com/maps/place/?q=place_id:ChIJY03cf5lXwokRH7B0eMiTEh0",
"type": "google-maps",
"timeout": 25000,
"params": {
"hl": "en",
"gl": "us"
}
}'{
"requestId": "27043ee2-e26e-43c1-a6b8-2648b0bb1ac5",
"code": 0,
"errorCode": 200,
"message": "Success",
"timestamp": 1732175287036,
"data": {
"data": {
"about": "[]",
"cid": "16439372504468095453",
"ctx_city": "Gary",
"ctx_country": "US",
"ctx_state": "IN",
"google_address": "86 North Bridge St, Gary, IN 46404, United States",
"google_category": [
"General contractor"
],
"google_city": "Gary",
"google_claimed": false,
"google_company_name": "Danny's Construction Co",
"google_country_name": "United States",
"google_description": "",
"google_hours": [],
"google_image": null,
"google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJ--A6kdfCEYgR3QElezFiJOQ",
"google_menu_and_appointment_urls": [],
"google_orders_urls": [],
"google_permanently_closed": false,
"google_phone": "+1 219-883-8821",
"google_place_id": "ChIJ--A6kdfCEYgR3QElezFiJOQ",
"google_price_range": null,
"google_price_range_dollar_sign": null,
"google_rating": 5,
"google_reviews_count": 1,
"google_reviews_url": "https://search.google.com/local/reviews?placeid=ChIJ--A6kdfCEYgR3QElezFiJOQ&q=Danny's+Construction+Co&authuser=0&hl=en&gl=HK",
"google_state_abbr": "IN",
"google_state_name": "Indiana",
"google_street_address": "86 North Bridge St",
"google_temporarily_closed": false,
"google_website": "https://www.dannysconstruction.com/",
"google_zip_code": "46404",
"latitude": 41.610614999999996,
"longitude": -87.37462699999999,
"optional_popular_times": null,
"optional_questions_and_answers": null,
"optional_review_summary": null
},
"taskId": "2",
"status": "completed",
"params": {
"url": "https://www.google.com/maps/place/Danny's+Construction+Co/@41.610615,-87.374627,17z/data=!3m1!4b1!4m6!3m5!1s0x8811c2d7913ae0fb:0xe42462317b2501dd!8m2!3d41.610615!4d-87.374627!16s%2Fg%2F1wb8v8_f?hl=en&entry=ttu&g_ep=EgoyMDI0MTAyOS4wIKXMDSoASAFQAw%3D%3D",
"type": "google-maps",
"timeout": 25000
},
"stacktrace": ""
}
}